#include <C4Gui.h>
Public Member Functions | |
virtual | ~ComboBox_FillCB ()=default |
void | FillDropDown (ComboBox *pComboBox, ContextMenu *pDropdownList) |
virtual void | FillDropDownCB ()=0 |
virtual bool | OnComboSelChange (ComboBox *pForCombo, int32_t idNewSelection)=0 |
void | AddEntry (const char *szText, int32_t id) |
bool | FindEntry (const char *szText) |
void | ClearEntries () |
void | SelectEntry (int32_t iEntry) |
|
virtualdefault |
void C4GUI::ComboBox_FillCB::AddEntry | ( | const char * | szText, |
int32_t | id | ||
) |
Definition at line 34 of file C4GuiComboBox.cpp.
References C4GUI::ContextMenu::AddItem(), FormatString(), C4GUI::Ico_Empty, LoadResStr(), and C4GUI::ComboBox::OnCtxComboSelect().
Referenced by C4TeamList::FillTeamDistOptions(), C4FileSelDlg::OnLocationComboFill(), and C4StartupModsDlg::OnSortComboFill().
void C4GUI::ComboBox_FillCB::ClearEntries | ( | ) |
Definition at line 56 of file C4GuiComboBox.cpp.
References C4GUI::Container::Clear().
|
inline |
Definition at line 1931 of file C4Gui.h.
References FillDropDownCB().
|
pure virtual |
Implemented in C4GUI::ComboBox_FillCallback< CB >.
Referenced by FillDropDown().
bool C4GUI::ComboBox_FillCB::FindEntry | ( | const char * | szText | ) |
Definition at line 43 of file C4GuiComboBox.cpp.
References C4GUI::ContextMenu::GetIndexedEntry(), C4GUI::ContextMenu::Entry::GetText(), and SEqual().
|
pure virtual |
Implemented in C4GUI::ComboBox_FillCallback< CB >.
Referenced by C4GUI::ComboBox::OnCtxComboSelect().
void C4GUI::ComboBox_FillCB::SelectEntry | ( | int32_t | iEntry | ) |
Definition at line 51 of file C4GuiComboBox.cpp.
References C4GUI::ContextMenu::SelectItem().