![]() |
Ember
|
Tab for browsing files in the executable's directory. More...
#include <FileExplorerTab.h>
Classes | |
| struct | ActivityEntry |
| struct | GridItem |
Public Member Functions | |
| FileExplorerTab (wxWindow *parent) | |
| Constructor. | |
| virtual | ~FileExplorerTab () |
| Destructor. | |
| FileExplorerTab (const FileExplorerTab &)=delete | |
| FileExplorerTab & | operator= (const FileExplorerTab &)=delete |
| wxWindow * | GetWidget () override |
| Returns the wxWidgets window used as the tab content. | |
| wxString | GetTitle () const override |
| Returns the display title of the tab. | |
| wxString | GetTabType () const override |
| Returns the tab type identifier. | |
| wxBitmap | GetIcon () const override |
| Returns the tab icon bitmap; defaults to null. | |
| void | Initialize () override |
| Called once when the tab is first created. | |
| void | Refresh () override |
| Refreshes the tab content. | |
| void | OnActivated () override |
| Called when the tab becomes active. | |
| void | OnDeactivated () override |
| Called when the tab becomes inactive. | |
| void | OnClosed () override |
| Called when the tab is closed. | |
| bool | IsValid () const override |
| Returns true if the tab is in a valid state. | |
| bool | CanClose () const override |
| Returns true if the tab can be closed. | |
| bool | CanMove () const override |
| Returns true if the tab can be moved/reordered. | |
| wxString | GetSelectedFile () const |
| Get the current selected file path. | |
| void | SetRootDirectory (const wxString &path) |
| Set the root directory to display. | |
| Public Member Functions inherited from ITab | |
| virtual | ~ITab ()=default |
| virtual wxString | SerializeState () const |
| Serializes tab state to a string for persistence. | |
| virtual void | DeserializeState (const wxString &state) |
| Restores tab state from a serialized string. | |
| virtual bool | HasUnsavedChanges () const |
| Returns true if the tab has unsaved changes. | |
| virtual bool | Save () |
| Saves the tab content; returns true on success. | |
| virtual bool | SupportsOperation (const wxString &operation) const |
| Returns true if the tab supports the given operation. | |
| virtual bool | ExecuteOperation (const wxString &operation, const wxString ¶meter="") |
| Executes an operation with optional parameter; returns true on success. | |
Private Types | |
| enum class | ActivityType { NAVIGATE , OPEN_FILE , CREATE_FOLDER , DELETE_FILE , DELETE_FOLDER , RENAME_FILE , RENAME_FOLDER , COPY , CUT , PASTE } |
| enum | ContextMenuID { ID_CONTEXT_OPEN = wxID_HIGHEST + 1000 , ID_CONTEXT_NEW_FOLDER , ID_CONTEXT_RENAME , ID_CONTEXT_DELETE , ID_CONTEXT_COPY , ID_CONTEXT_CUT , ID_CONTEXT_PASTE , ID_CONTEXT_REFRESH , ID_CONTEXT_PROPERTIES } |
Private Member Functions | |
| void | CreateLayout () |
| void | CreateFavoritesBar (wxBoxSizer *parentSizer) |
| void | CreateSplitLayout (wxBoxSizer *parentSizer) |
| void | CreateBreadcrumb (wxPanel *rightPanel, wxBoxSizer *rightSizer) |
| void | CreateIconGrid (wxPanel *rightPanel, wxBoxSizer *rightSizer) |
| void | CreateHistoryPanel (wxPanel *rightPanel, wxBoxSizer *rightSizer) |
| void | PopulateHistoryPanel () |
| void | ToggleHistoryView () |
| void | PopulateTree () |
| void | AddDirectoryToTree (const wxString &path, wxTreeItemId parentItem) |
| void | PopulateGrid (const wxString &path) |
| void | ClearGrid () |
| void | AddGridItem (const wxString &name, const wxString &fullPath, bool isDirectory) |
| wxBitmap | LoadGridIcon (const wxString &iconType, const wxSize &size) |
| wxIcon | LoadTreeIcon (const wxString &iconType) |
| void | OnSelectionChanged (wxTreeEvent &event) |
| void | OnItemActivated (wxTreeEvent &event) |
| void | OnItemExpanding (wxTreeEvent &event) |
| void | OnBeginDrag (wxTreeEvent &event) |
| void | OnGridItemDoubleClick (wxMouseEvent &event) |
| void | OnGridItemMouseDown (wxMouseEvent &event) |
| void | OnGridItemMouseMove (wxMouseEvent &event) |
| void | OnGridItemMouseUp (wxMouseEvent &event) |
| void | OnTreeToggle (wxCommandEvent &event) |
| void | OnGridToggle (wxCommandEvent &event) |
| void | UpdateViewVisibility () |
| void | UpdateToggleButtonAppearance () |
| void | OnSplitterSashPosChanged (wxSplitterEvent &event) |
| void | OnSplitterSashPosChanging (wxSplitterEvent &event) |
| void | SyncToolbarWithSplitter () |
| void | UpdateBreadcrumbVisibility () |
| void | UpdateHistoryVisibility () |
| void | UpdateTreeImageList () |
| void | OnFavoriteFilter (wxCommandEvent &event) |
| void | OnTreeSearchTextChanged (wxCommandEvent &event) |
| void | OnTreeSearchCancel (wxCommandEvent &event) |
| void | OnGridSearchTextChanged (wxCommandEvent &event) |
| void | OnGridSearchCancel (wxCommandEvent &event) |
| void | OnBreadcrumbClick (wxCommandEvent &event) |
| void | OnBackButton (wxCommandEvent &event) |
| void | OnForwardButton (wxCommandEvent &event) |
| void | OnHistoryButton (wxCommandEvent &event) |
| void | OnNavigationKeyDown (wxKeyEvent &event) |
| void | OnTreeContextMenu (wxTreeEvent &event) |
| void | OnGridContextMenu (wxMouseEvent &event) |
| void | OnGridBackgroundContextMenu (wxMouseEvent &event) |
| void | OnContextMenuOpen (wxCommandEvent &event) |
| void | OnContextMenuNewFolder (wxCommandEvent &event) |
| void | OnContextMenuRename (wxCommandEvent &event) |
| void | OnContextMenuDelete (wxCommandEvent &event) |
| void | OnContextMenuCopy (wxCommandEvent &event) |
| void | OnContextMenuCut (wxCommandEvent &event) |
| void | OnContextMenuPaste (wxCommandEvent &event) |
| void | OnContextMenuRefresh (wxCommandEvent &event) |
| void | OnContextMenuProperties (wxCommandEvent &event) |
| void | FilterTree (const wxString &searchText) |
| void | FilterGrid (const wxString &searchText) |
| void | ExpandAllMatching (wxTreeItemId item, const wxString &searchText, bool &foundAny) |
| bool | ItemMatchesSearch (wxTreeItemId item, const wxString &searchText) const |
| bool | DirectoryContainsMatchingFiles (const wxString &dirPath) const |
| wxString | GetExecutableDirectory () const |
| void | NavigateToPath (const wxString &path, bool recordHistory=true) |
| void | UpdateBreadcrumb () |
| bool | PassesFilter (const wxString &filename) const |
| bool | DirectoryContainsFilteredFiles (const wxString &path) const |
| wxTreeItemId | FindTreeItemByPath (const wxString &path, wxTreeItemId parent=wxTreeItemId()) |
| void | UpdateNavigationButtons () |
| void | AddToNavigationHistory (const wxString &path) |
| bool | CreateNewFolder (const wxString &parentPath, const wxString &folderName) |
| bool | RenameFolder (const wxString &oldPath, const wxString &newName) |
| bool | DeleteFolder (const wxString &folderPath) |
| bool | CopyFolder (const wxString &sourcePath, const wxString &destPath) |
| bool | MoveFolder (const wxString &sourcePath, const wxString &destPath) |
| void | ShowFolderProperties (const wxString &folderPath) |
| bool | RenameFile (const wxString &oldPath, const wxString &newName) |
| bool | DeleteFile (const wxString &filePath) |
| bool | CopyFile (const wxString &sourcePath, const wxString &destPath) |
| bool | MoveFile (const wxString &sourcePath, const wxString &destPath) |
| void | ShowFileProperties (const wxString &filePath) |
| void | OpenFile (const wxString &filePath) |
| wxString | GetDirectorySize (const wxString &path) const |
| int | CountFilesInDirectory (const wxString &path, bool recursive=true) const |
| void | LogActivity (ActivityType type, const wxString &path, const wxString &details="") |
| void | LoadSettings () |
| wxString | GetDisplayName (const wxString &filename, bool isDirectory, bool isTreeView) const |
Static Private Attributes | |
| static const size_t | MAX_ACTIVITY_ENTRIES = 100 |
Tab for browsing files in the executable's directory.
This tab provides a file browser interface starting from the directory where the executable is located.
Definition at line 23 of file FileExplorerTab.h.
|
strongprivate |
| Enumerator | |
|---|---|
| NAVIGATE | |
| OPEN_FILE | |
| CREATE_FOLDER | |
| DELETE_FILE | |
| DELETE_FOLDER | |
| RENAME_FILE | |
| RENAME_FOLDER | |
| COPY | |
| CUT | |
| PASTE | |
Definition at line 235 of file FileExplorerTab.h.
|
private |
| Enumerator | |
|---|---|
| ID_CONTEXT_OPEN | |
| ID_CONTEXT_NEW_FOLDER | |
| ID_CONTEXT_RENAME | |
| ID_CONTEXT_DELETE | |
| ID_CONTEXT_COPY | |
| ID_CONTEXT_CUT | |
| ID_CONTEXT_PASTE | |
| ID_CONTEXT_REFRESH | |
| ID_CONTEXT_PROPERTIES | |
Definition at line 313 of file FileExplorerTab.h.
|
explicit |
Constructor.
| parent | Parent window (usually the notebook) |
Definition at line 213 of file FileExplorerTab.cpp.
|
virtual |
Destructor.
Definition at line 287 of file FileExplorerTab.cpp.
|
delete |
|
private |
Definition at line 786 of file FileExplorerTab.cpp.
|
private |
Definition at line 1438 of file FileExplorerTab.cpp.
|
private |
Definition at line 3165 of file FileExplorerTab.cpp.
|
overridevirtual |
Returns true if the tab can be closed.
Reimplemented from ITab.
Definition at line 961 of file FileExplorerTab.cpp.
|
overridevirtual |
Returns true if the tab can be moved/reordered.
Reimplemented from ITab.
Definition at line 963 of file FileExplorerTab.cpp.
|
private |
Definition at line 1413 of file FileExplorerTab.cpp.
|
private |
Definition at line 3031 of file FileExplorerTab.cpp.
|
private |
Definition at line 2907 of file FileExplorerTab.cpp.
|
private |
Definition at line 2870 of file FileExplorerTab.cpp.
|
private |
Definition at line 557 of file FileExplorerTab.cpp.
|
private |
Definition at line 401 of file FileExplorerTab.cpp.
|
private |
Definition at line 686 of file FileExplorerTab.cpp.
|
private |
Definition at line 660 of file FileExplorerTab.cpp.
|
private |
Definition at line 388 of file FileExplorerTab.cpp.
|
private |
Definition at line 2728 of file FileExplorerTab.cpp.
|
private |
Definition at line 478 of file FileExplorerTab.cpp.
|
private |
Definition at line 3018 of file FileExplorerTab.cpp.
|
private |
Definition at line 2772 of file FileExplorerTab.cpp.
|
private |
Definition at line 2180 of file FileExplorerTab.cpp.
|
private |
Definition at line 1192 of file FileExplorerTab.cpp.
|
private |
Definition at line 1126 of file FileExplorerTab.cpp.
|
private |
Definition at line 1232 of file FileExplorerTab.cpp.
|
private |
Definition at line 1098 of file FileExplorerTab.cpp.
|
private |
Definition at line 2038 of file FileExplorerTab.cpp.
|
private |
Definition at line 2824 of file FileExplorerTab.cpp.
|
private |
Definition at line 346 of file FileExplorerTab.cpp.
|
private |
Definition at line 309 of file FileExplorerTab.cpp.
|
overridevirtual |
Returns the tab icon bitmap; defaults to null.
Reimplemented from ITab.
Definition at line 933 of file FileExplorerTab.cpp.
| wxString FileExplorerTab::GetSelectedFile | ( | ) | const |
Get the current selected file path.
Definition at line 965 of file FileExplorerTab.cpp.
|
overridevirtual |
Returns the tab type identifier.
Implements ITab.
Definition at line 931 of file FileExplorerTab.cpp.
|
overridevirtual |
Returns the display title of the tab.
Implements ITab.
Definition at line 929 of file FileExplorerTab.cpp.
|
overridevirtual |
Returns the wxWidgets window used as the tab content.
Implements ITab.
Definition at line 927 of file FileExplorerTab.cpp.
|
overridevirtual |
Called once when the tab is first created.
Reimplemented from ITab.
Definition at line 363 of file FileExplorerTab.cpp.
|
overridevirtual |
Returns true if the tab is in a valid state.
Reimplemented from ITab.
Definition at line 959 of file FileExplorerTab.cpp.
|
private |
Definition at line 1180 of file FileExplorerTab.cpp.
|
private |
Definition at line 697 of file FileExplorerTab.cpp.
|
private |
Definition at line 319 of file FileExplorerTab.cpp.
|
private |
Definition at line 742 of file FileExplorerTab.cpp.
|
private |
Definition at line 3594 of file FileExplorerTab.cpp.
|
private |
Definition at line 3049 of file FileExplorerTab.cpp.
|
private |
Definition at line 2964 of file FileExplorerTab.cpp.
|
private |
Definition at line 2004 of file FileExplorerTab.cpp.
|
overridevirtual |
Called when the tab becomes active.
Reimplemented from ITab.
Definition at line 953 of file FileExplorerTab.cpp.
|
private |
Definition at line 3210 of file FileExplorerTab.cpp.
|
private |
Definition at line 1025 of file FileExplorerTab.cpp.
|
private |
Definition at line 1983 of file FileExplorerTab.cpp.
|
overridevirtual |
Called when the tab is closed.
Reimplemented from ITab.
Definition at line 957 of file FileExplorerTab.cpp.
|
private |
Definition at line 2572 of file FileExplorerTab.cpp.
|
private |
Definition at line 2592 of file FileExplorerTab.cpp.
|
private |
Definition at line 2515 of file FileExplorerTab.cpp.
|
private |
Definition at line 2433 of file FileExplorerTab.cpp.
|
private |
Definition at line 2409 of file FileExplorerTab.cpp.
|
private |
Definition at line 2612 of file FileExplorerTab.cpp.
|
private |
Definition at line 2707 of file FileExplorerTab.cpp.
|
private |
Definition at line 2696 of file FileExplorerTab.cpp.
|
private |
Definition at line 2461 of file FileExplorerTab.cpp.
|
overridevirtual |
Called when the tab becomes inactive.
Reimplemented from ITab.
Definition at line 955 of file FileExplorerTab.cpp.
|
private |
Definition at line 1696 of file FileExplorerTab.cpp.
|
private |
Definition at line 3238 of file FileExplorerTab.cpp.
|
private |
Definition at line 2283 of file FileExplorerTab.cpp.
|
private |
Definition at line 2318 of file FileExplorerTab.cpp.
|
private |
Definition at line 1539 of file FileExplorerTab.cpp.
|
private |
Definition at line 1573 of file FileExplorerTab.cpp.
|
private |
Definition at line 1612 of file FileExplorerTab.cpp.
|
private |
Definition at line 1684 of file FileExplorerTab.cpp.
|
private |
Definition at line 1093 of file FileExplorerTab.cpp.
|
private |
Definition at line 1088 of file FileExplorerTab.cpp.
|
private |
Definition at line 1766 of file FileExplorerTab.cpp.
|
private |
Definition at line 3266 of file FileExplorerTab.cpp.
|
private |
Definition at line 999 of file FileExplorerTab.cpp.
|
private |
Definition at line 903 of file FileExplorerTab.cpp.
|
private |
Definition at line 3271 of file FileExplorerTab.cpp.
|
private |
Definition at line 985 of file FileExplorerTab.cpp.
|
private |
Definition at line 1806 of file FileExplorerTab.cpp.
|
private |
Definition at line 1811 of file FileExplorerTab.cpp.
|
private |
Definition at line 2224 of file FileExplorerTab.cpp.
|
private |
Definition at line 1083 of file FileExplorerTab.cpp.
|
private |
Definition at line 1078 of file FileExplorerTab.cpp.
|
private |
Definition at line 1751 of file FileExplorerTab.cpp.
|
private |
Definition at line 3127 of file FileExplorerTab.cpp.
|
delete |
|
private |
Definition at line 2162 of file FileExplorerTab.cpp.
|
private |
Definition at line 1289 of file FileExplorerTab.cpp.
|
private |
Definition at line 3331 of file FileExplorerTab.cpp.
|
private |
Definition at line 762 of file FileExplorerTab.cpp.
|
overridevirtual |
Refreshes the tab content.
Reimplemented from ITab.
Definition at line 935 of file FileExplorerTab.cpp.
|
private |
Definition at line 2995 of file FileExplorerTab.cpp.
|
private |
Definition at line 2749 of file FileExplorerTab.cpp.
| void FileExplorerTab::SetRootDirectory | ( | const wxString & | path | ) |
Set the root directory to display.
| path | The directory path to use as root |
Definition at line 978 of file FileExplorerTab.cpp.
|
private |
Definition at line 3075 of file FileExplorerTab.cpp.
|
private |
Definition at line 2786 of file FileExplorerTab.cpp.
|
private |
Definition at line 1816 of file FileExplorerTab.cpp.
|
private |
Definition at line 3295 of file FileExplorerTab.cpp.
|
private |
Definition at line 2079 of file FileExplorerTab.cpp.
|
private |
Definition at line 1848 of file FileExplorerTab.cpp.
|
private |
Definition at line 1870 of file FileExplorerTab.cpp.
|
private |
Definition at line 3183 of file FileExplorerTab.cpp.
|
private |
Definition at line 1781 of file FileExplorerTab.cpp.
|
private |
Definition at line 1891 of file FileExplorerTab.cpp.
|
private |
Definition at line 1932 of file FileExplorerTab.cpp.
|
private |
Definition at line 222 of file FileExplorerTab.h.
|
private |
Definition at line 255 of file FileExplorerTab.h.
|
private |
Definition at line 229 of file FileExplorerTab.h.
|
private |
Definition at line 198 of file FileExplorerTab.h.
|
private |
Definition at line 200 of file FileExplorerTab.h.
|
private |
Definition at line 202 of file FileExplorerTab.h.
|
private |
Definition at line 288 of file FileExplorerTab.h.
|
private |
Definition at line 287 of file FileExplorerTab.h.
|
private |
Definition at line 203 of file FileExplorerTab.h.
|
private |
Definition at line 284 of file FileExplorerTab.h.
|
private |
Definition at line 221 of file FileExplorerTab.h.
|
private |
Definition at line 280 of file FileExplorerTab.h.
|
private |
Definition at line 281 of file FileExplorerTab.h.
|
private |
Definition at line 263 of file FileExplorerTab.h.
|
private |
Definition at line 262 of file FileExplorerTab.h.
|
private |
Definition at line 230 of file FileExplorerTab.h.
|
private |
Definition at line 201 of file FileExplorerTab.h.
|
private |
Definition at line 215 of file FileExplorerTab.h.
|
private |
Definition at line 195 of file FileExplorerTab.h.
|
private |
Definition at line 216 of file FileExplorerTab.h.
|
private |
Definition at line 266 of file FileExplorerTab.h.
|
private |
Definition at line 304 of file FileExplorerTab.h.
|
private |
Definition at line 275 of file FileExplorerTab.h.
|
private |
Definition at line 190 of file FileExplorerTab.h.
|
private |
Definition at line 302 of file FileExplorerTab.h.
|
private |
Definition at line 301 of file FileExplorerTab.h.
|
private |
Definition at line 196 of file FileExplorerTab.h.
|
private |
Definition at line 303 of file FileExplorerTab.h.
|
private |
Definition at line 207 of file FileExplorerTab.h.
|
private |
Definition at line 226 of file FileExplorerTab.h.
|
private |
Definition at line 217 of file FileExplorerTab.h.
|
private |
Definition at line 197 of file FileExplorerTab.h.
|
private |
Definition at line 261 of file FileExplorerTab.h.
|
private |
Definition at line 279 of file FileExplorerTab.h.
|
private |
Definition at line 232 of file FileExplorerTab.h.
|
private |
Definition at line 223 of file FileExplorerTab.h.
|
private |
Definition at line 231 of file FileExplorerTab.h.
|
private |
Definition at line 212 of file FileExplorerTab.h.
|
private |
Definition at line 193 of file FileExplorerTab.h.
|
private |
Definition at line 199 of file FileExplorerTab.h.
|
private |
Definition at line 188 of file FileExplorerTab.h.
|
private |
Definition at line 211 of file FileExplorerTab.h.
|
private |
Definition at line 194 of file FileExplorerTab.h.
|
private |
Definition at line 220 of file FileExplorerTab.h.
|
private |
Definition at line 276 of file FileExplorerTab.h.
|
private |
Definition at line 291 of file FileExplorerTab.h.
|
private |
Definition at line 292 of file FileExplorerTab.h.
|
private |
Definition at line 192 of file FileExplorerTab.h.
|
private |
Definition at line 224 of file FileExplorerTab.h.
|
private |
Definition at line 191 of file FileExplorerTab.h.
|
private |
Definition at line 298 of file FileExplorerTab.h.
|
private |
Definition at line 189 of file FileExplorerTab.h.
|
private |
Definition at line 296 of file FileExplorerTab.h.
|
private |
Definition at line 295 of file FileExplorerTab.h.
|
private |
Definition at line 297 of file FileExplorerTab.h.
|
private |
Definition at line 206 of file FileExplorerTab.h.
|
private |
Definition at line 225 of file FileExplorerTab.h.
|
private |
Definition at line 210 of file FileExplorerTab.h.
|
staticprivate |
Definition at line 256 of file FileExplorerTab.h.