Ember
Loading...
Searching...
No Matches
HistoryPopup Class Reference
Inheritance diagram for HistoryPopup:

Classes

struct  HistoryItem

Public Member Functions

 HistoryPopup (wxWindow *parent, const std::vector< wxString > &backStack, const std::vector< wxString > &forwardStack, const wxString &currentPath, std::function< void(const wxString &)> onNavigate)

Private Types

enum class  ItemType { BACK , CURRENT , FORWARD }

Private Member Functions

wxPanel * CreateHistoryItem (wxWindow *parent, const HistoryItem &item, size_t index, bool isCurrent)

Private Attributes

std::function< void(const wxString &)> m_onNavigate
std::vector< HistoryItemm_items
size_t m_hoveredIndex

Detailed Description

Definition at line 48 of file FileExplorerTab.cpp.

Member Enumeration Documentation

◆ ItemType

enum class HistoryPopup::ItemType
strongprivate
Enumerator
BACK 
CURRENT 
FORWARD 

Definition at line 119 of file FileExplorerTab.cpp.

Constructor & Destructor Documentation

◆ HistoryPopup()

HistoryPopup::HistoryPopup ( wxWindow * parent,
const std::vector< wxString > & backStack,
const std::vector< wxString > & forwardStack,
const wxString & currentPath,
std::function< void(const wxString &)> onNavigate )
inline

Definition at line 50 of file FileExplorerTab.cpp.

Member Function Documentation

◆ CreateHistoryItem()

wxPanel * HistoryPopup::CreateHistoryItem ( wxWindow * parent,
const HistoryItem & item,
size_t index,
bool isCurrent )
inlineprivate

Definition at line 126 of file FileExplorerTab.cpp.

Member Data Documentation

◆ m_hoveredIndex

size_t HistoryPopup::m_hoveredIndex
private

Definition at line 210 of file FileExplorerTab.cpp.

◆ m_items

std::vector<HistoryItem> HistoryPopup::m_items
private

Definition at line 209 of file FileExplorerTab.cpp.

◆ m_onNavigate

std::function<void(const wxString &)> HistoryPopup::m_onNavigate
private

Definition at line 208 of file FileExplorerTab.cpp.


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