Ember
Loading...
Searching...
No Matches
FileExplorerTab Class Reference

Tab for browsing files in the executable's directory. More...

#include <FileExplorerTab.h>

Inheritance diagram for FileExplorerTab:
ITab

Classes

struct  ActivityEntry
struct  GridItem

Public Member Functions

 FileExplorerTab (wxWindow *parent)
 Constructor.
virtual ~FileExplorerTab ()
 Destructor.
 FileExplorerTab (const FileExplorerTab &)=delete
FileExplorerTaboperator= (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 &parameter="")
 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

Private Attributes

wxPanel * m_panel
wxSearchCtrl * m_treeSearchCtrl
wxSearchCtrl * m_gridSearchCtrl
wxTreeCtrl * m_treeCtrl
wxSplitterWindow * m_splitter
wxPanel * m_leftPanel
wxPanel * m_rightPanel
wxScrolledWindow * m_gridCtrl
wxWrapSizer * m_gridSizer
wxScrolledWindow * m_historyPanel
wxPanel * m_breadcrumbContainerPanel
wxPanel * m_navigationPanel
wxPanel * m_breadcrumbPanel
wxPanel * m_functionalPanel
wxBoxSizer * m_breadcrumbSizer
wxBoxSizer * m_contentSizer
wxToggleButton * m_treeToggleBtn
wxToggleButton * m_gridToggleBtn
wxToggleButton * m_xmlFilterBtn
wxToggleButton * m_pngFilterBtn
wxToggleButton * m_jsonFilterBtn
wxBitmapButton * m_gridBackButton
wxBitmapButton * m_gridForwardButton
wxBitmapButton * m_historyButton
wxString m_rootPath
wxString m_currentGridPath
wxString m_activeFilter
bool m_isInitialized
bool m_syncInProgress
bool m_treeVisible
bool m_gridVisible
std::vector< wxString > m_backStack
std::vector< wxString > m_forwardStack
bool m_isNavigatingHistory
bool m_isHistoryVisible
std::vector< ActivityEntrym_activityHistory
wxImageList * m_imageList
int m_folderIcon
int m_fileIcon
std::map< wxString, wxBitmap > m_gridIcons
std::vector< GridItemm_gridItems
wxWindow * m_selectedGridItem
bool m_isDragging
wxPoint m_dragStartPos
wxWindow * m_dragWindow
wxString m_contextMenuPath
wxString m_clipboardPath
bool m_clipboardIsCut
bool m_showBreadcrumb
bool m_showHistory
bool m_treeShowHiddenFiles
bool m_treeShowFileExtensions
int m_treeSortFilesBy
int m_treeItemSize
bool m_gridShowHiddenFiles
bool m_gridShowFileExtensions
int m_gridSortFilesBy
int m_gridIconSize

Static Private Attributes

static const size_t MAX_ACTIVITY_ENTRIES = 100

Detailed Description

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.

Member Enumeration Documentation

◆ ActivityType

enum class FileExplorerTab::ActivityType
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.

◆ ContextMenuID

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.

Constructor & Destructor Documentation

◆ FileExplorerTab() [1/2]

FileExplorerTab::FileExplorerTab ( wxWindow * parent)
explicit

Constructor.

Parameters
parentParent window (usually the notebook)

Definition at line 213 of file FileExplorerTab.cpp.

◆ ~FileExplorerTab()

FileExplorerTab::~FileExplorerTab ( )
virtual

Destructor.

Definition at line 287 of file FileExplorerTab.cpp.

◆ FileExplorerTab() [2/2]

FileExplorerTab::FileExplorerTab ( const FileExplorerTab & )
delete

Member Function Documentation

◆ AddDirectoryToTree()

void FileExplorerTab::AddDirectoryToTree ( const wxString & path,
wxTreeItemId parentItem )
private

Definition at line 786 of file FileExplorerTab.cpp.

◆ AddGridItem()

void FileExplorerTab::AddGridItem ( const wxString & name,
const wxString & fullPath,
bool isDirectory )
private

Definition at line 1438 of file FileExplorerTab.cpp.

◆ AddToNavigationHistory()

void FileExplorerTab::AddToNavigationHistory ( const wxString & path)
private

Definition at line 3165 of file FileExplorerTab.cpp.

◆ CanClose()

bool FileExplorerTab::CanClose ( ) const
overridevirtual

Returns true if the tab can be closed.

Reimplemented from ITab.

Definition at line 961 of file FileExplorerTab.cpp.

◆ CanMove()

bool FileExplorerTab::CanMove ( ) const
overridevirtual

Returns true if the tab can be moved/reordered.

Reimplemented from ITab.

Definition at line 963 of file FileExplorerTab.cpp.

◆ ClearGrid()

void FileExplorerTab::ClearGrid ( )
private

Definition at line 1413 of file FileExplorerTab.cpp.

◆ CopyFile()

bool FileExplorerTab::CopyFile ( const wxString & sourcePath,
const wxString & destPath )
private

Definition at line 3031 of file FileExplorerTab.cpp.

◆ CopyFolder()

bool FileExplorerTab::CopyFolder ( const wxString & sourcePath,
const wxString & destPath )
private

Definition at line 2907 of file FileExplorerTab.cpp.

◆ CountFilesInDirectory()

int FileExplorerTab::CountFilesInDirectory ( const wxString & path,
bool recursive = true ) const
private

Definition at line 2870 of file FileExplorerTab.cpp.

◆ CreateBreadcrumb()

void FileExplorerTab::CreateBreadcrumb ( wxPanel * rightPanel,
wxBoxSizer * rightSizer )
private

Definition at line 557 of file FileExplorerTab.cpp.

◆ CreateFavoritesBar()

void FileExplorerTab::CreateFavoritesBar ( wxBoxSizer * parentSizer)
private

Definition at line 401 of file FileExplorerTab.cpp.

◆ CreateHistoryPanel()

void FileExplorerTab::CreateHistoryPanel ( wxPanel * rightPanel,
wxBoxSizer * rightSizer )
private

Definition at line 686 of file FileExplorerTab.cpp.

◆ CreateIconGrid()

void FileExplorerTab::CreateIconGrid ( wxPanel * rightPanel,
wxBoxSizer * rightSizer )
private

Definition at line 660 of file FileExplorerTab.cpp.

◆ CreateLayout()

void FileExplorerTab::CreateLayout ( )
private

Definition at line 388 of file FileExplorerTab.cpp.

◆ CreateNewFolder()

bool FileExplorerTab::CreateNewFolder ( const wxString & parentPath,
const wxString & folderName )
private

Definition at line 2728 of file FileExplorerTab.cpp.

◆ CreateSplitLayout()

void FileExplorerTab::CreateSplitLayout ( wxBoxSizer * parentSizer)
private

Definition at line 478 of file FileExplorerTab.cpp.

◆ DeleteFile()

bool FileExplorerTab::DeleteFile ( const wxString & filePath)
private

Definition at line 3018 of file FileExplorerTab.cpp.

◆ DeleteFolder()

bool FileExplorerTab::DeleteFolder ( const wxString & folderPath)
private

Definition at line 2772 of file FileExplorerTab.cpp.

◆ DirectoryContainsFilteredFiles()

bool FileExplorerTab::DirectoryContainsFilteredFiles ( const wxString & path) const
private

Definition at line 2180 of file FileExplorerTab.cpp.

◆ DirectoryContainsMatchingFiles()

bool FileExplorerTab::DirectoryContainsMatchingFiles ( const wxString & dirPath) const
private

Definition at line 1192 of file FileExplorerTab.cpp.

◆ ExpandAllMatching()

void FileExplorerTab::ExpandAllMatching ( wxTreeItemId item,
const wxString & searchText,
bool & foundAny )
private

Definition at line 1126 of file FileExplorerTab.cpp.

◆ FilterGrid()

void FileExplorerTab::FilterGrid ( const wxString & searchText)
private

Definition at line 1232 of file FileExplorerTab.cpp.

◆ FilterTree()

void FileExplorerTab::FilterTree ( const wxString & searchText)
private

Definition at line 1098 of file FileExplorerTab.cpp.

◆ FindTreeItemByPath()

wxTreeItemId FileExplorerTab::FindTreeItemByPath ( const wxString & path,
wxTreeItemId parent = wxTreeItemId() )
private

Definition at line 2038 of file FileExplorerTab.cpp.

◆ GetDirectorySize()

wxString FileExplorerTab::GetDirectorySize ( const wxString & path) const
private

Definition at line 2824 of file FileExplorerTab.cpp.

◆ GetDisplayName()

wxString FileExplorerTab::GetDisplayName ( const wxString & filename,
bool isDirectory,
bool isTreeView ) const
private

Definition at line 346 of file FileExplorerTab.cpp.

◆ GetExecutableDirectory()

wxString FileExplorerTab::GetExecutableDirectory ( ) const
private

Definition at line 309 of file FileExplorerTab.cpp.

◆ GetIcon()

wxBitmap FileExplorerTab::GetIcon ( ) const
overridevirtual

Returns the tab icon bitmap; defaults to null.

Reimplemented from ITab.

Definition at line 933 of file FileExplorerTab.cpp.

◆ GetSelectedFile()

wxString FileExplorerTab::GetSelectedFile ( ) const

Get the current selected file path.

Returns
wxString The full path of the selected file, or empty string if none

Definition at line 965 of file FileExplorerTab.cpp.

◆ GetTabType()

wxString FileExplorerTab::GetTabType ( ) const
overridevirtual

Returns the tab type identifier.

Implements ITab.

Definition at line 931 of file FileExplorerTab.cpp.

◆ GetTitle()

wxString FileExplorerTab::GetTitle ( ) const
overridevirtual

Returns the display title of the tab.

Implements ITab.

Definition at line 929 of file FileExplorerTab.cpp.

◆ GetWidget()

wxWindow * FileExplorerTab::GetWidget ( )
overridevirtual

Returns the wxWidgets window used as the tab content.

Implements ITab.

Definition at line 927 of file FileExplorerTab.cpp.

◆ Initialize()

void FileExplorerTab::Initialize ( )
overridevirtual

Called once when the tab is first created.

Reimplemented from ITab.

Definition at line 363 of file FileExplorerTab.cpp.

◆ IsValid()

bool FileExplorerTab::IsValid ( ) const
overridevirtual

Returns true if the tab is in a valid state.

Reimplemented from ITab.

Definition at line 959 of file FileExplorerTab.cpp.

◆ ItemMatchesSearch()

bool FileExplorerTab::ItemMatchesSearch ( wxTreeItemId item,
const wxString & searchText ) const
private

Definition at line 1180 of file FileExplorerTab.cpp.

◆ LoadGridIcon()

wxBitmap FileExplorerTab::LoadGridIcon ( const wxString & iconType,
const wxSize & size )
private

Definition at line 697 of file FileExplorerTab.cpp.

◆ LoadSettings()

void FileExplorerTab::LoadSettings ( )
private

Definition at line 319 of file FileExplorerTab.cpp.

◆ LoadTreeIcon()

wxIcon FileExplorerTab::LoadTreeIcon ( const wxString & iconType)
private

Definition at line 742 of file FileExplorerTab.cpp.

◆ LogActivity()

void FileExplorerTab::LogActivity ( ActivityType type,
const wxString & path,
const wxString & details = "" )
private

Definition at line 3594 of file FileExplorerTab.cpp.

◆ MoveFile()

bool FileExplorerTab::MoveFile ( const wxString & sourcePath,
const wxString & destPath )
private

Definition at line 3049 of file FileExplorerTab.cpp.

◆ MoveFolder()

bool FileExplorerTab::MoveFolder ( const wxString & sourcePath,
const wxString & destPath )
private

Definition at line 2964 of file FileExplorerTab.cpp.

◆ NavigateToPath()

void FileExplorerTab::NavigateToPath ( const wxString & path,
bool recordHistory = true )
private

Definition at line 2004 of file FileExplorerTab.cpp.

◆ OnActivated()

void FileExplorerTab::OnActivated ( )
overridevirtual

Called when the tab becomes active.

Reimplemented from ITab.

Definition at line 953 of file FileExplorerTab.cpp.

◆ OnBackButton()

void FileExplorerTab::OnBackButton ( wxCommandEvent & event)
private

Definition at line 3210 of file FileExplorerTab.cpp.

◆ OnBeginDrag()

void FileExplorerTab::OnBeginDrag ( wxTreeEvent & event)
private

Definition at line 1025 of file FileExplorerTab.cpp.

◆ OnBreadcrumbClick()

void FileExplorerTab::OnBreadcrumbClick ( wxCommandEvent & event)
private

Definition at line 1983 of file FileExplorerTab.cpp.

◆ OnClosed()

void FileExplorerTab::OnClosed ( )
overridevirtual

Called when the tab is closed.

Reimplemented from ITab.

Definition at line 957 of file FileExplorerTab.cpp.

◆ OnContextMenuCopy()

void FileExplorerTab::OnContextMenuCopy ( wxCommandEvent & event)
private

Definition at line 2572 of file FileExplorerTab.cpp.

◆ OnContextMenuCut()

void FileExplorerTab::OnContextMenuCut ( wxCommandEvent & event)
private

Definition at line 2592 of file FileExplorerTab.cpp.

◆ OnContextMenuDelete()

void FileExplorerTab::OnContextMenuDelete ( wxCommandEvent & event)
private

Definition at line 2515 of file FileExplorerTab.cpp.

◆ OnContextMenuNewFolder()

void FileExplorerTab::OnContextMenuNewFolder ( wxCommandEvent & event)
private

Definition at line 2433 of file FileExplorerTab.cpp.

◆ OnContextMenuOpen()

void FileExplorerTab::OnContextMenuOpen ( wxCommandEvent & event)
private

Definition at line 2409 of file FileExplorerTab.cpp.

◆ OnContextMenuPaste()

void FileExplorerTab::OnContextMenuPaste ( wxCommandEvent & event)
private

Definition at line 2612 of file FileExplorerTab.cpp.

◆ OnContextMenuProperties()

void FileExplorerTab::OnContextMenuProperties ( wxCommandEvent & event)
private

Definition at line 2707 of file FileExplorerTab.cpp.

◆ OnContextMenuRefresh()

void FileExplorerTab::OnContextMenuRefresh ( wxCommandEvent & event)
private

Definition at line 2696 of file FileExplorerTab.cpp.

◆ OnContextMenuRename()

void FileExplorerTab::OnContextMenuRename ( wxCommandEvent & event)
private

Definition at line 2461 of file FileExplorerTab.cpp.

◆ OnDeactivated()

void FileExplorerTab::OnDeactivated ( )
overridevirtual

Called when the tab becomes inactive.

Reimplemented from ITab.

Definition at line 955 of file FileExplorerTab.cpp.

◆ OnFavoriteFilter()

void FileExplorerTab::OnFavoriteFilter ( wxCommandEvent & event)
private

Definition at line 1696 of file FileExplorerTab.cpp.

◆ OnForwardButton()

void FileExplorerTab::OnForwardButton ( wxCommandEvent & event)
private

Definition at line 3238 of file FileExplorerTab.cpp.

◆ OnGridBackgroundContextMenu()

void FileExplorerTab::OnGridBackgroundContextMenu ( wxMouseEvent & event)
private

Definition at line 2283 of file FileExplorerTab.cpp.

◆ OnGridContextMenu()

void FileExplorerTab::OnGridContextMenu ( wxMouseEvent & event)
private

Definition at line 2318 of file FileExplorerTab.cpp.

◆ OnGridItemDoubleClick()

void FileExplorerTab::OnGridItemDoubleClick ( wxMouseEvent & event)
private

Definition at line 1539 of file FileExplorerTab.cpp.

◆ OnGridItemMouseDown()

void FileExplorerTab::OnGridItemMouseDown ( wxMouseEvent & event)
private

Definition at line 1573 of file FileExplorerTab.cpp.

◆ OnGridItemMouseMove()

void FileExplorerTab::OnGridItemMouseMove ( wxMouseEvent & event)
private

Definition at line 1612 of file FileExplorerTab.cpp.

◆ OnGridItemMouseUp()

void FileExplorerTab::OnGridItemMouseUp ( wxMouseEvent & event)
private

Definition at line 1684 of file FileExplorerTab.cpp.

◆ OnGridSearchCancel()

void FileExplorerTab::OnGridSearchCancel ( wxCommandEvent & event)
private

Definition at line 1093 of file FileExplorerTab.cpp.

◆ OnGridSearchTextChanged()

void FileExplorerTab::OnGridSearchTextChanged ( wxCommandEvent & event)
private

Definition at line 1088 of file FileExplorerTab.cpp.

◆ OnGridToggle()

void FileExplorerTab::OnGridToggle ( wxCommandEvent & event)
private

Definition at line 1766 of file FileExplorerTab.cpp.

◆ OnHistoryButton()

void FileExplorerTab::OnHistoryButton ( wxCommandEvent & event)
private

Definition at line 3266 of file FileExplorerTab.cpp.

◆ OnItemActivated()

void FileExplorerTab::OnItemActivated ( wxTreeEvent & event)
private

Definition at line 999 of file FileExplorerTab.cpp.

◆ OnItemExpanding()

void FileExplorerTab::OnItemExpanding ( wxTreeEvent & event)
private

Definition at line 903 of file FileExplorerTab.cpp.

◆ OnNavigationKeyDown()

void FileExplorerTab::OnNavigationKeyDown ( wxKeyEvent & event)
private

Definition at line 3271 of file FileExplorerTab.cpp.

◆ OnSelectionChanged()

void FileExplorerTab::OnSelectionChanged ( wxTreeEvent & event)
private

Definition at line 985 of file FileExplorerTab.cpp.

◆ OnSplitterSashPosChanged()

void FileExplorerTab::OnSplitterSashPosChanged ( wxSplitterEvent & event)
private

Definition at line 1806 of file FileExplorerTab.cpp.

◆ OnSplitterSashPosChanging()

void FileExplorerTab::OnSplitterSashPosChanging ( wxSplitterEvent & event)
private

Definition at line 1811 of file FileExplorerTab.cpp.

◆ OnTreeContextMenu()

void FileExplorerTab::OnTreeContextMenu ( wxTreeEvent & event)
private

Definition at line 2224 of file FileExplorerTab.cpp.

◆ OnTreeSearchCancel()

void FileExplorerTab::OnTreeSearchCancel ( wxCommandEvent & event)
private

Definition at line 1083 of file FileExplorerTab.cpp.

◆ OnTreeSearchTextChanged()

void FileExplorerTab::OnTreeSearchTextChanged ( wxCommandEvent & event)
private

Definition at line 1078 of file FileExplorerTab.cpp.

◆ OnTreeToggle()

void FileExplorerTab::OnTreeToggle ( wxCommandEvent & event)
private

Definition at line 1751 of file FileExplorerTab.cpp.

◆ OpenFile()

void FileExplorerTab::OpenFile ( const wxString & filePath)
private

Definition at line 3127 of file FileExplorerTab.cpp.

◆ operator=()

FileExplorerTab & FileExplorerTab::operator= ( const FileExplorerTab & )
delete

◆ PassesFilter()

bool FileExplorerTab::PassesFilter ( const wxString & filename) const
private

Definition at line 2162 of file FileExplorerTab.cpp.

◆ PopulateGrid()

void FileExplorerTab::PopulateGrid ( const wxString & path)
private

Definition at line 1289 of file FileExplorerTab.cpp.

◆ PopulateHistoryPanel()

void FileExplorerTab::PopulateHistoryPanel ( )
private

Definition at line 3331 of file FileExplorerTab.cpp.

◆ PopulateTree()

void FileExplorerTab::PopulateTree ( )
private

Definition at line 762 of file FileExplorerTab.cpp.

◆ Refresh()

void FileExplorerTab::Refresh ( )
overridevirtual

Refreshes the tab content.

Reimplemented from ITab.

Definition at line 935 of file FileExplorerTab.cpp.

◆ RenameFile()

bool FileExplorerTab::RenameFile ( const wxString & oldPath,
const wxString & newName )
private

Definition at line 2995 of file FileExplorerTab.cpp.

◆ RenameFolder()

bool FileExplorerTab::RenameFolder ( const wxString & oldPath,
const wxString & newName )
private

Definition at line 2749 of file FileExplorerTab.cpp.

◆ SetRootDirectory()

void FileExplorerTab::SetRootDirectory ( const wxString & path)

Set the root directory to display.

Parameters
pathThe directory path to use as root

Definition at line 978 of file FileExplorerTab.cpp.

◆ ShowFileProperties()

void FileExplorerTab::ShowFileProperties ( const wxString & filePath)
private

Definition at line 3075 of file FileExplorerTab.cpp.

◆ ShowFolderProperties()

void FileExplorerTab::ShowFolderProperties ( const wxString & folderPath)
private

Definition at line 2786 of file FileExplorerTab.cpp.

◆ SyncToolbarWithSplitter()

void FileExplorerTab::SyncToolbarWithSplitter ( )
private

Definition at line 1816 of file FileExplorerTab.cpp.

◆ ToggleHistoryView()

void FileExplorerTab::ToggleHistoryView ( )
private

Definition at line 3295 of file FileExplorerTab.cpp.

◆ UpdateBreadcrumb()

void FileExplorerTab::UpdateBreadcrumb ( )
private

Definition at line 2079 of file FileExplorerTab.cpp.

◆ UpdateBreadcrumbVisibility()

void FileExplorerTab::UpdateBreadcrumbVisibility ( )
private

Definition at line 1848 of file FileExplorerTab.cpp.

◆ UpdateHistoryVisibility()

void FileExplorerTab::UpdateHistoryVisibility ( )
private

Definition at line 1870 of file FileExplorerTab.cpp.

◆ UpdateNavigationButtons()

void FileExplorerTab::UpdateNavigationButtons ( )
private

Definition at line 3183 of file FileExplorerTab.cpp.

◆ UpdateToggleButtonAppearance()

void FileExplorerTab::UpdateToggleButtonAppearance ( )
private

Definition at line 1781 of file FileExplorerTab.cpp.

◆ UpdateTreeImageList()

void FileExplorerTab::UpdateTreeImageList ( )
private

Definition at line 1891 of file FileExplorerTab.cpp.

◆ UpdateViewVisibility()

void FileExplorerTab::UpdateViewVisibility ( )
private

Definition at line 1932 of file FileExplorerTab.cpp.

Member Data Documentation

◆ m_activeFilter

wxString FileExplorerTab::m_activeFilter
private

Definition at line 222 of file FileExplorerTab.h.

◆ m_activityHistory

std::vector<ActivityEntry> FileExplorerTab::m_activityHistory
private

Definition at line 255 of file FileExplorerTab.h.

◆ m_backStack

std::vector<wxString> FileExplorerTab::m_backStack
private

Definition at line 229 of file FileExplorerTab.h.

◆ m_breadcrumbContainerPanel

wxPanel* FileExplorerTab::m_breadcrumbContainerPanel
private

Definition at line 198 of file FileExplorerTab.h.

◆ m_breadcrumbPanel

wxPanel* FileExplorerTab::m_breadcrumbPanel
private

Definition at line 200 of file FileExplorerTab.h.

◆ m_breadcrumbSizer

wxBoxSizer* FileExplorerTab::m_breadcrumbSizer
private

Definition at line 202 of file FileExplorerTab.h.

◆ m_clipboardIsCut

bool FileExplorerTab::m_clipboardIsCut
private

Definition at line 288 of file FileExplorerTab.h.

◆ m_clipboardPath

wxString FileExplorerTab::m_clipboardPath
private

Definition at line 287 of file FileExplorerTab.h.

◆ m_contentSizer

wxBoxSizer* FileExplorerTab::m_contentSizer
private

Definition at line 203 of file FileExplorerTab.h.

◆ m_contextMenuPath

wxString FileExplorerTab::m_contextMenuPath
private

Definition at line 284 of file FileExplorerTab.h.

◆ m_currentGridPath

wxString FileExplorerTab::m_currentGridPath
private

Definition at line 221 of file FileExplorerTab.h.

◆ m_dragStartPos

wxPoint FileExplorerTab::m_dragStartPos
private

Definition at line 280 of file FileExplorerTab.h.

◆ m_dragWindow

wxWindow* FileExplorerTab::m_dragWindow
private

Definition at line 281 of file FileExplorerTab.h.

◆ m_fileIcon

int FileExplorerTab::m_fileIcon
private

Definition at line 263 of file FileExplorerTab.h.

◆ m_folderIcon

int FileExplorerTab::m_folderIcon
private

Definition at line 262 of file FileExplorerTab.h.

◆ m_forwardStack

std::vector<wxString> FileExplorerTab::m_forwardStack
private

Definition at line 230 of file FileExplorerTab.h.

◆ m_functionalPanel

wxPanel* FileExplorerTab::m_functionalPanel
private

Definition at line 201 of file FileExplorerTab.h.

◆ m_gridBackButton

wxBitmapButton* FileExplorerTab::m_gridBackButton
private

Definition at line 215 of file FileExplorerTab.h.

◆ m_gridCtrl

wxScrolledWindow* FileExplorerTab::m_gridCtrl
private

Definition at line 195 of file FileExplorerTab.h.

◆ m_gridForwardButton

wxBitmapButton* FileExplorerTab::m_gridForwardButton
private

Definition at line 216 of file FileExplorerTab.h.

◆ m_gridIcons

std::map<wxString, wxBitmap> FileExplorerTab::m_gridIcons
private

Definition at line 266 of file FileExplorerTab.h.

◆ m_gridIconSize

int FileExplorerTab::m_gridIconSize
private

Definition at line 304 of file FileExplorerTab.h.

◆ m_gridItems

std::vector<GridItem> FileExplorerTab::m_gridItems
private

Definition at line 275 of file FileExplorerTab.h.

◆ m_gridSearchCtrl

wxSearchCtrl* FileExplorerTab::m_gridSearchCtrl
private

Definition at line 190 of file FileExplorerTab.h.

◆ m_gridShowFileExtensions

bool FileExplorerTab::m_gridShowFileExtensions
private

Definition at line 302 of file FileExplorerTab.h.

◆ m_gridShowHiddenFiles

bool FileExplorerTab::m_gridShowHiddenFiles
private

Definition at line 301 of file FileExplorerTab.h.

◆ m_gridSizer

wxWrapSizer* FileExplorerTab::m_gridSizer
private

Definition at line 196 of file FileExplorerTab.h.

◆ m_gridSortFilesBy

int FileExplorerTab::m_gridSortFilesBy
private

Definition at line 303 of file FileExplorerTab.h.

◆ m_gridToggleBtn

wxToggleButton* FileExplorerTab::m_gridToggleBtn
private

Definition at line 207 of file FileExplorerTab.h.

◆ m_gridVisible

bool FileExplorerTab::m_gridVisible
private

Definition at line 226 of file FileExplorerTab.h.

◆ m_historyButton

wxBitmapButton* FileExplorerTab::m_historyButton
private

Definition at line 217 of file FileExplorerTab.h.

◆ m_historyPanel

wxScrolledWindow* FileExplorerTab::m_historyPanel
private

Definition at line 197 of file FileExplorerTab.h.

◆ m_imageList

wxImageList* FileExplorerTab::m_imageList
private

Definition at line 261 of file FileExplorerTab.h.

◆ m_isDragging

bool FileExplorerTab::m_isDragging
private

Definition at line 279 of file FileExplorerTab.h.

◆ m_isHistoryVisible

bool FileExplorerTab::m_isHistoryVisible
private

Definition at line 232 of file FileExplorerTab.h.

◆ m_isInitialized

bool FileExplorerTab::m_isInitialized
private

Definition at line 223 of file FileExplorerTab.h.

◆ m_isNavigatingHistory

bool FileExplorerTab::m_isNavigatingHistory
private

Definition at line 231 of file FileExplorerTab.h.

◆ m_jsonFilterBtn

wxToggleButton* FileExplorerTab::m_jsonFilterBtn
private

Definition at line 212 of file FileExplorerTab.h.

◆ m_leftPanel

wxPanel* FileExplorerTab::m_leftPanel
private

Definition at line 193 of file FileExplorerTab.h.

◆ m_navigationPanel

wxPanel* FileExplorerTab::m_navigationPanel
private

Definition at line 199 of file FileExplorerTab.h.

◆ m_panel

wxPanel* FileExplorerTab::m_panel
private

Definition at line 188 of file FileExplorerTab.h.

◆ m_pngFilterBtn

wxToggleButton* FileExplorerTab::m_pngFilterBtn
private

Definition at line 211 of file FileExplorerTab.h.

◆ m_rightPanel

wxPanel* FileExplorerTab::m_rightPanel
private

Definition at line 194 of file FileExplorerTab.h.

◆ m_rootPath

wxString FileExplorerTab::m_rootPath
private

Definition at line 220 of file FileExplorerTab.h.

◆ m_selectedGridItem

wxWindow* FileExplorerTab::m_selectedGridItem
private

Definition at line 276 of file FileExplorerTab.h.

◆ m_showBreadcrumb

bool FileExplorerTab::m_showBreadcrumb
private

Definition at line 291 of file FileExplorerTab.h.

◆ m_showHistory

bool FileExplorerTab::m_showHistory
private

Definition at line 292 of file FileExplorerTab.h.

◆ m_splitter

wxSplitterWindow* FileExplorerTab::m_splitter
private

Definition at line 192 of file FileExplorerTab.h.

◆ m_syncInProgress

bool FileExplorerTab::m_syncInProgress
private

Definition at line 224 of file FileExplorerTab.h.

◆ m_treeCtrl

wxTreeCtrl* FileExplorerTab::m_treeCtrl
private

Definition at line 191 of file FileExplorerTab.h.

◆ m_treeItemSize

int FileExplorerTab::m_treeItemSize
private

Definition at line 298 of file FileExplorerTab.h.

◆ m_treeSearchCtrl

wxSearchCtrl* FileExplorerTab::m_treeSearchCtrl
private

Definition at line 189 of file FileExplorerTab.h.

◆ m_treeShowFileExtensions

bool FileExplorerTab::m_treeShowFileExtensions
private

Definition at line 296 of file FileExplorerTab.h.

◆ m_treeShowHiddenFiles

bool FileExplorerTab::m_treeShowHiddenFiles
private

Definition at line 295 of file FileExplorerTab.h.

◆ m_treeSortFilesBy

int FileExplorerTab::m_treeSortFilesBy
private

Definition at line 297 of file FileExplorerTab.h.

◆ m_treeToggleBtn

wxToggleButton* FileExplorerTab::m_treeToggleBtn
private

Definition at line 206 of file FileExplorerTab.h.

◆ m_treeVisible

bool FileExplorerTab::m_treeVisible
private

Definition at line 225 of file FileExplorerTab.h.

◆ m_xmlFilterBtn

wxToggleButton* FileExplorerTab::m_xmlFilterBtn
private

Definition at line 210 of file FileExplorerTab.h.

◆ MAX_ACTIVITY_ENTRIES

const size_t FileExplorerTab::MAX_ACTIVITY_ENTRIES = 100
staticprivate

Definition at line 256 of file FileExplorerTab.h.


The documentation for this class was generated from the following files: