Code::Blocks  SVN r11506
Public Member Functions | Private Member Functions | Private Attributes | List of all members
RecentItemsList Class Reference

#include <recentitemslist.h>

Collaboration diagram for RecentItemsList:

Public Member Functions

 RecentItemsList (const wxString &menuName, const wxString &configPath, int menuID, int firstMenuItemID)
 
void AddToHistory (const wxString &FileName)
 
void AskToRemoveFileFromHistory (size_t id, bool cannot_open=true)
 
wxString GetHistoryFile (size_t id) const
 
void ClearHistory ()
 
void Initialize ()
 
void TerminateHistory ()
 
const wxFileHistoryGetFileHistory () const
 
bool Empty () const
 

Private Member Functions

void BuildMenu (wxMenu *menu)
 
void ClearMenu (wxMenu *menu)
 
wxMenuGetMenu ()
 
void RefreshStartHerePage ()
 

Private Attributes

wxFileHistorym_list
 
wxString m_menuName
 
wxString m_configPath
 
int m_menuID
 
int m_firstMenuItemID
 

Detailed Description

Definition at line 10 of file recentitemslist.h.

Constructor & Destructor Documentation

◆ RecentItemsList()

RecentItemsList::RecentItemsList ( const wxString menuName,
const wxString configPath,
int  menuID,
int  firstMenuItemID 
)

Definition at line 26 of file recentitemslist.cpp.

Member Function Documentation

◆ AddToHistory()

void RecentItemsList::AddToHistory ( const wxString FileName)

◆ AskToRemoveFileFromHistory()

void RecentItemsList::AskToRemoveFileFromHistory ( size_t  id,
bool  cannot_open = true 
)

◆ BuildMenu()

void RecentItemsList::BuildMenu ( wxMenu menu)
private

◆ ClearHistory()

void RecentItemsList::ClearHistory ( )

◆ ClearMenu()

void RecentItemsList::ClearMenu ( wxMenu menu)
private

◆ Empty()

bool RecentItemsList::Empty ( ) const
inline

◆ GetFileHistory()

const wxFileHistory* RecentItemsList::GetFileHistory ( ) const
inline

Definition at line 24 of file recentitemslist.h.

References m_list.

Referenced by StartHerePage::Reload().

◆ GetHistoryFile()

wxString RecentItemsList::GetHistoryFile ( size_t  id) const

Definition at line 70 of file recentitemslist.cpp.

References wxFileHistory::GetHistoryFile(), m_list, and wxEmptyString.

Referenced by MainFrame::OnStartHereLink().

◆ GetMenu()

wxMenu * RecentItemsList::GetMenu ( )
private

◆ Initialize()

void RecentItemsList::Initialize ( )

◆ RefreshStartHerePage()

void RecentItemsList::RefreshStartHerePage ( )
private

◆ TerminateHistory()

void RecentItemsList::TerminateHistory ( )

Member Data Documentation

◆ m_configPath

wxString RecentItemsList::m_configPath
private

Definition at line 33 of file recentitemslist.h.

Referenced by ClearHistory(), Initialize(), and TerminateHistory().

◆ m_firstMenuItemID

int RecentItemsList::m_firstMenuItemID
private

Definition at line 34 of file recentitemslist.h.

Referenced by BuildMenu(), and Initialize().

◆ m_list

wxFileHistory* RecentItemsList::m_list
private

◆ m_menuID

int RecentItemsList::m_menuID
private

Definition at line 34 of file recentitemslist.h.

Referenced by GetMenu().

◆ m_menuName

wxString RecentItemsList::m_menuName
private

Definition at line 33 of file recentitemslist.h.

Referenced by GetMenu().


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