|
| | CFontComboBox (const char *label=nullptr, int layoutSize=10, CLayoutAlign layoutAlign=CLayoutAlign::TOP) |
| |
| void | loadFonts () |
| |
| String | fontName () const |
| |
| void | fontName (const char *fn) |
| |
| Fl_Font | font () const |
| |
| String | className () const override |
| | Returns widget class name (internal SPTK RTTI). More...
|
| |
| | CComboBox (const char *label=nullptr, int layoutSize=10, CLayoutAlign layoutAlign=CLayoutAlign::TOP) |
| |
| | ~CComboBox () override |
| |
| CControlKind | kind () const override |
| |
| String | className () const override |
| |
| virtual void | clear () |
| |
| uint32_t | buttons () const |
| |
| void | buttons (uint32_t) |
| |
| Fl_Callback_p | buttonClicked () const |
| |
| void | buttonClicked (Fl_Callback *c) |
| |
| void | columns (const CColumnList &columnList) |
| |
| CColumnList & | columns () |
| |
| void | addColumn (std::string cname, VariantDataType type=VariantDataType::VAR_STRING, int16_t cwidth=70, bool cvisible=true) |
| |
| void | addRow (CPackedStrings *row) |
| |
| void | addRow (int rowId, const Strings &strings) |
| |
| void | addRows (std::string columnName, Strings rows) |
| |
| void | resize (int x, int y, int w, int h) override |
| |
| Variant | data () const override |
| |
| void | data (const Variant &v) override |
| |
| void | dataMode (CListViewDataMode dm) |
| |
| CListViewDataMode | dataMode () |
| |
| CPackedStrings * | findCaption (const String &caption) |
| |
| CPackedStrings * | findKey (int keyValue) |
| |
| PoolDatabaseConnection * | database () const |
| |
| void | database (PoolDatabaseConnection *db) |
| |
| String | sql () const |
| |
| void | sql (std::string s) |
| |
| std::string | keyField () const |
| |
| void | keyField (std::string keyFieldName) |
| |
| int | sortColumn () const |
| |
| void | sort () |
| |
| void | sortColumn (int sortColumn) |
| |
| void | setup (PoolDatabaseConnection *db, std::string sql, std::string keyField) |
| |
| QueryParameter & | param (const char *paramName) |
| |
| void | refreshData () |
| |
| int | findString (const std::string &str, bool select=true, uint32_t startRow=0, unsigned endRow=0) |
| |
| CPackedStrings * | selectedRow () const |
| |
| void | selectRow (unsigned rowNumber) |
| |
| void | showHeaders () |
| |
| void | hideHeaders () |
| |
| unsigned | size () const |
| |
| bool | preferredSize (int &w, int &h) override |
| |
| | CControl (const char *label, int layoutSize=20, CLayoutAlign layoutAlign=CLayoutAlign::TOP) |
| | Constructor in SPTK style. More...
|
| |
| void | resize (int x, int y, int w, int h) override |
| | Resizes the control and inside widgets. More...
|
| |
|
void | draw () override |
| | Draws the control.
|
| |
|
virtual int | tag () const |
| | Returns the control's user data tag.
|
| |
|
virtual void | tag (int t) |
| | Sets the control's user data tag.
|
| |
| virtual Fl_Font | textFont () const |
| | Returns the control's text font. More...
|
| |
| virtual void | textFont (Fl_Font) |
| | Sets the control's text font. More...
|
| |
| virtual uchar | textSize () const |
| | Returns the control's text font size. More...
|
| |
| virtual void | textSize (uchar) |
| | Sets the control's text font size. More...
|
| |
| virtual Fl_Color | textColor () const |
| | Returns the control's text color. More...
|
| |
| virtual void | textColor (Fl_Color) |
| | Sets the control's text color. More...
|
| |
|
virtual Fl_Color | labelColor () const |
| | Returns the control's label color.
|
| |
|
virtual void | labelColor (Fl_Color) |
| | Sets the control's label color.
|
| |
|
virtual Fl_Color | color () const |
| | Returns the control's background color.
|
| |
|
virtual void | color (Fl_Color) |
| | Sets the control's background color.
|
| |
|
uint32_t | flags () const |
| | Returns the control's flags.
|
| |
|
void | flags (uint32_t flags) |
| | Sets the control's flags.
|
| |
|
Fl_Widget * | control () const |
| | Returns main widget inside the container.
|
| |
| const String & | label () const override |
| | Returns control's label. More...
|
| |
| void | label (const String &) override |
| | Sets control's label. More...
|
| |
|
Fl_Menu_ * | menu () const |
| | Returns control's menu.
|
| |
|
void | menu (const Fl_Menu_Item *) |
| | Sets control's menu.
|
| |
|
Fl_Font | labelFont () const |
| | Returns control's label font.
|
| |
|
void | labelSize (Fl_Font f) |
| | Sets control's label font.
|
| |
|
uchar | labelSize () const |
| | Returns control's label font size.
|
| |
|
void | labelSize (uchar) |
| | Sets control's label font size.
|
| |
|
uint32_t | labelWidth () const |
| | Returns control's label width.
|
| |
|
void | labelWidth (uint32_t) |
| | Sets control's label width.
|
| |
| void | hint (const String &str) |
| | Sets control's hint (tooltip) More...
|
| |
|
String | hint () const |
| | Returns control's hint (tooltip)
|
| |
| virtual int | maxLength () const |
| | Returns control's max input length, if applicable. More...
|
| |
| virtual void | maxLength (int) |
| | Sets control's max input length, if applicable. More...
|
| |
|
virtual const String & | fieldName () const |
| | Returns control's field name for universal data connection.
|
| |
|
virtual void | fieldName (const String &) |
| | Sets control's field name for universal data connection.
|
| |
| virtual CControlKind | kind () const =0 |
| | Returns control's kind (internal SPTK RTTI). More...
|
| |
| String | className () const override |
| | Returns control's class name (internal SPTK RTTI). More...
|
| |
| virtual void | reset () |
| | Sets the control to empty text (for the input entries) More...
|
| |
| virtual void | load (Query *) |
| | Loads control data from query fields. More...
|
| |
| virtual void | save (Query *) |
| | Saves control data to query params. More...
|
| |
| void | load (const xdoc::SNode &node, CLayoutXMLmode xmlMode) override |
| | Loads control data from XML. More...
|
| |
| void | load (const xdoc::SNode &node) override |
| | Loads control data from XML. More...
|
| |
| void | save (const xdoc::SNode &node, CLayoutXMLmode xmlMode) const override |
| | Saves control data to XML. More...
|
| |
| virtual void | save (const xdoc::SNode &node) const |
| | Saves control data to XML. More...
|
| |
| virtual bool | valid () const =0 |
| | Returns true if the control state is valid, and the data is inside the limits (if applicable) More...
|
| |
| virtual Variant | data () const |
| | The universal data connector. More...
|
| |
| virtual void | data (const Variant &v) |
| | The universal data connector, sets control data. More...
|
| |
|
void | fireEvent (CEvent ev, int32_t arg) |
| | Fires the event generated by this control.
|
| |
|
const CEventInfo & | event () const |
| | Returns the last event fired by this control.
|
| |
|
CEvent | eventType () const |
| | Returns the event type for the last fired by this control.
|
| |
|
int | eventArgument () const |
| | Returns the event argument for the last fired by this control.
|
| |
|
CControl & | operator= (const String &str) |
| | Control data assignment.
|
| |
|
CControl & | operator= (const char *str) |
| | Control data assignment.
|
| |
|
CControl & | operator= (int32_t v) |
| | Control data assignment.
|
| |
|
CControl & | operator= (uint32_t v) |
| | Control data assignment.
|
| |
|
CControl & | operator= (int64_t v) |
| | Control data assignment.
|
| |
|
CControl & | operator= (float v) |
| | Control data assignment.
|
| |
|
CControl & | operator= (double v) |
| | Control data assignment.
|
| |
|
CControl & | operator= (const DateTime &dt) |
| | Control data assignment.
|
| |
|
CControl & | operator= (const Field &fld) |
| | Control data assignment.
|
| |
|
| operator String () const |
| | Control data conversion.
|
| |
|
| operator int32_t () const |
| | Control data conversion.
|
| |
|
| operator uint32_t () const |
| | Control data conversion.
|
| |
|
| operator int64_t () const |
| | Control data conversion.
|
| |
|
| operator uint64_t () const |
| | Control data conversion.
|
| |
|
| operator float () const |
| | Control data conversion.
|
| |
|
| operator double () const |
| | Control data conversion.
|
| |
|
| operator DateTime () const |
| | Control data conversion.
|
| |
| | CLayoutClient (Fl_Widget *widget, int layoutSize, CLayoutAlign ca) |
| |
| virtual | ~CLayoutClient () |
| |
| CLayoutAlign | layoutAlign () const |
| |
| void | layoutAlign (CLayoutAlign al) |
| |
| int | layoutSize () const |
| |
| void | layoutSize (int ls) |
| |
| virtual void | label (const String &l) |
| |
| virtual const String & | label () const |
| |
| void | name (const char *aname) |
| |
| void | name (const String &aname) |
| |
| const String & | name () const |
| |
| virtual bool | preferredSize (int &w, int &h) |
| |
| virtual bool | computeSize (int &w, int &h) |
| |
| virtual String | className () const |
| |
| Fl_Widget * | widget () const |
| |
| virtual void | load (const xdoc::SNode &node, CLayoutXMLmode xmlMode) |
| |
| virtual void | load (const std::shared_ptr< xdoc::Node > &node) |
| |
| virtual void | save (const std::shared_ptr< xdoc::Node > &node, CLayoutXMLmode xmlMode) const |
| |
Font combobox widget.
A combobox filled with the system fonts names