|
Code::Blocks
SVN r11506
|
#include <recentitemslist.h>
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 wxFileHistory * | GetFileHistory () const |
| bool | Empty () const |
Private Member Functions | |
| void | BuildMenu (wxMenu *menu) |
| void | ClearMenu (wxMenu *menu) |
| wxMenu * | GetMenu () |
| void | RefreshStartHerePage () |
Private Attributes | |
| wxFileHistory * | m_list |
| wxString | m_menuName |
| wxString | m_configPath |
| int | m_menuID |
| int | m_firstMenuItemID |
Definition at line 10 of file recentitemslist.h.
| RecentItemsList::RecentItemsList | ( | const wxString & | menuName, |
| const wxString & | configPath, | ||
| int | menuID, | ||
| int | firstMenuItemID | ||
| ) |
Definition at line 26 of file recentitemslist.cpp.
| void RecentItemsList::AddToHistory | ( | const wxString & | FileName | ) |
Definition at line 35 of file recentitemslist.cpp.
References wxFileHistory::AddFileToHistory(), BuildMenu(), ClearMenu(), wxFileHistory::GetCount(), wxFileHistory::GetHistoryFile(), GetMenu(), wxString::Lower(), m_list, and RefreshStartHerePage().
| void RecentItemsList::AskToRemoveFileFromHistory | ( | size_t | id, |
| bool | cannot_open = true |
||
| ) |
Definition at line 76 of file recentitemslist.cpp.
References _(), _T, BuildMenu(), ClearMenu(), wxFileHistory::GetCount(), GetMenu(), m_list, PlaceWindow(), RefreshStartHerePage(), wxFileHistory::RemoveFileFromHistory(), AnnoyingDialog::rtYES, AnnoyingDialog::ShowModal(), wxART_QUESTION, and wxEmptyString.
Referenced by MainFrame::OnStartHereLink().
|
private |
Definition at line 158 of file recentitemslist.cpp.
References _T, wxString::Format(), wxFileHistory::GetCount(), wxFileHistory::GetHistoryFile(), wxMenu::GetMenuItemCount(), wxMenu::Insert(), wxMenu::InsertSeparator(), m_firstMenuItemID, and m_list.
Referenced by AddToHistory(), AskToRemoveFileFromHistory(), Empty(), and Initialize().
| void RecentItemsList::ClearHistory | ( | ) |
Definition at line 106 of file recentitemslist.cpp.
References _T, ConfigManager::DeleteSubPath(), Manager::Get(), Manager::GetConfigManager(), wxFileHistory::GetCount(), Initialize(), m_configPath, m_list, RefreshStartHerePage(), and wxFileHistory::RemoveFileFromHistory().
|
private |
Definition at line 172 of file recentitemslist.cpp.
References wxMenu::Delete(), wxMenu::GetMenuItemCount(), and wxMenu::GetMenuItems().
Referenced by AddToHistory(), AskToRemoveFileFromHistory(), Empty(), and TerminateHistory().
|
inline |
Definition at line 25 of file recentitemslist.h.
References BuildMenu(), ClearMenu(), wxFileHistory::GetCount(), GetMenu(), m_list, and RefreshStartHerePage().
|
inline |
Definition at line 24 of file recentitemslist.h.
References m_list.
Referenced by StartHerePage::Reload().
| 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().
|
private |
Definition at line 178 of file recentitemslist.cpp.
References wxMenu::FindItem(), wxMenuBar::FindMenu(), Manager::Get(), Manager::GetAppFrame(), wxMenuBar::GetMenu(), m_menuID, m_menuName, and wxNOT_FOUND.
Referenced by AddToHistory(), AskToRemoveFileFromHistory(), Empty(), Initialize(), and TerminateHistory().
| void RecentItemsList::Initialize | ( | ) |
Definition at line 116 of file recentitemslist.cpp.
References _T, wxFileHistory::AddFileToHistory(), BuildMenu(), Manager::Get(), Manager::GetConfigManager(), wxArrayString::GetCount(), GetMenu(), m_configPath, m_firstMenuItemID, m_list, ConfigManager::ReadArrayString(), TerminateHistory(), and wxFileExists().
Referenced by ClearHistory().
|
private |
Definition at line 192 of file recentitemslist.cpp.
References g_StartHereTitle, Manager::Get(), EditorManager::GetEditor(), and Manager::GetEditorManager().
Referenced by AddToHistory(), AskToRemoveFileFromHistory(), ClearHistory(), and Empty().
| void RecentItemsList::TerminateHistory | ( | ) |
Definition at line 136 of file recentitemslist.cpp.
References _T, wxArrayString::Add(), ClearMenu(), Manager::Get(), Manager::GetConfigManager(), wxFileHistory::GetCount(), wxFileHistory::GetHistoryFile(), GetMenu(), Manager::IsAppShuttingDown(), m_configPath, m_list, wxFileHistory::RemoveMenu(), and ConfigManager::Write().
Referenced by Initialize().
|
private |
Definition at line 33 of file recentitemslist.h.
Referenced by ClearHistory(), Initialize(), and TerminateHistory().
|
private |
Definition at line 34 of file recentitemslist.h.
Referenced by BuildMenu(), and Initialize().
|
private |
Definition at line 32 of file recentitemslist.h.
Referenced by AddToHistory(), AskToRemoveFileFromHistory(), BuildMenu(), ClearHistory(), Empty(), GetFileHistory(), GetHistoryFile(), Initialize(), and TerminateHistory().
|
private |
Definition at line 34 of file recentitemslist.h.
Referenced by GetMenu().
|
private |
Definition at line 33 of file recentitemslist.h.
Referenced by GetMenu().
1.8.13