7 #ifndef __CF_COMBOBOX_H__ 8 #define __CF_COMBOBOX_H__ 10 #include "Gui/CFBin.h" 11 #include "Gui/CFEntry.h" 12 #include "Gui/CFEnums.h" 110 void setTitle(
const Glib::ustring& title);
239 void popup(
const Glib::RefPtr<Gdk::Device>& device);
314 #endif // __CF_COMBOBOX_H__ int getWrapWidth()
Returns the wrap width which is used to determine the number of columns for the popup menu...
bool getPopupFixedWidth()
Gets whether the popup uses a fixed width matching the allocated width of the combo box...
void setAddTearoffs(bool add_tearoffs=true)
Sets whether the popup menu should have a tearoff menu item.
void popdown()
Hides the menu or dropdown list of combo_box.
Glib::ustring getActiveId()
Returns the ID of the active row of combo_box.
int getColumnSpanColumn()
Returns the column with column span information for combo_box.
void setRowSpanColumn(int row_span)
Sets the column with row span information for combo_box to be row_span.
void setIdColumn(int id_column)
Sets the model column which combo_box should use to get string IDs for values from.
void setFocusOnClick(bool focus_on_click=true)
Sets whether the combo box will grab focus when it is clicked with the mouse.
Definition: CFComboBox.h:17
void setTitle(const Glib::ustring &title)
Sets the menu’s title in tearoff mode.
int getEntryTextColumn()
Returns the column which combo_box is using to get the strings from to display in the internal entry...
int getIdColumn()
Returns the column which combo_box is using to get string IDs for values from.
CFBin 一个只允许容纳一个控件的容器类.
Definition: CFBin.h:14
bool getFocusOnClick()
Returns whether the combo box grabs focus when it is clicked with the mouse.
int getRowSpanColumn()
Returns the column with row span information for combo_box.
bool getHasEntry()
Returns whether the combo box has an entry.
void unsetRowSeparatorFunc()
Causes no separators to be drawn.
int getActiveRowNumber()
Returns the index of the currently active item, or -1 if there’s no active item. ...
void setWrapWidth(int width)
Sets the wrap width of combo_box to be width.
void setActive(int index)
Sets the active item of combo_box to be the item at index.
Glib::ustring getTitle()
Gets the current title of the menu in tearoff mode.
CFSensitivityType getButtonSensitivity()
Returns whether the combo box sets the dropdown button sensitive or not when there are no items in th...
void popup()
Pops up the menu or dropdown list of combo_box.
CFSensitivityType
Definition: CFEnums.h:193
bool getAddTearoffs()
Gets the current title of the menu in tearoff mode.
void setButtonSensitivity(CFSensitivityType sensitivity)
Sets whether the dropdown button of the combo box should be always sensitive (CFSENSITIVITY_ON), never sensitive (CFSENSITIVITY_OFF) or only if there is at least one item to display (CFSENSITIVITY_AUTO).
void unsetActive()
Causes no item to be active.
void setEntryTextColumn(int text_column)
Sets the model column which combo_box should use to get strings from to be text_column.
CFComboBox(bool has_entry=false)
Creates a new empty ComboBox, optionally with an entry.
void setColumnSpanColumn(int column_span)
Sets the column with column span information for combo_box to be column_span.
void setPopupFixedWidth(bool fixed=true)
Specifies whether the popup’s width should be a fixed width matching the allocated width of the comb...
bool setActiveId(const Glib::ustring &active_id)
Changes the active row of the combo box to the one that has an ID equal to active_id.