WorkspacePanel

class WorkspacePanel : DockWindow {
Workspace _workspace;
TreeWidget _tree;
Signal!WorkspaceActionHandler workspaceActionListener;
MenuItem _workspacePopupMenu;
MenuItem _projectPopupMenu;
MenuItem _folderPopupMenu;
MenuItem _filePopupMenu;
string _popupMenuSelectedItemId;
TreeItem _popupMenuSelectedItem;
bool[string] _itemStates;
bool _itemStatesDirty;
}

Members

Functions

addProjectItems
void addProjectItems(TreeItem root, ProjectItem items)

Adding elements to the tree

findKeyAction
Action findKeyAction(uint keyCode, uint flags)

map key to action

handleAction
bool handleAction(const Action a)

override to handle specific actions

hide
void hide()

hide workspace panel

restoreItemState
bool restoreItemState(string itemPath)

Is need to expand item?

saveItemState
void saveItemState(string itemPath, bool expanded)

Saving items collapse/expand state

Properties

selectedProjectItem
ProjectItem selectedProjectItem [@property getter]

returns currently selected project item

Variables

sourceFileSelectionListener
Signal!SourceFileSelectionHandler sourceFileSelectionListener;

handle source file selection change

Meta