|
| CDBDropDownListView (const char *label, int layoutSize, CLayoutAlign layoutAlign) |
|
| CDBListView (const char *label=nullptr, int layoutSize=20, CLayoutAlign layoutAlign=CLayoutAlign::TOP) |
|
| ~CDBListView () override |
|
void | database (PoolDatabaseConnection *db) |
|
PoolDatabaseConnection * | database () const |
|
void | sql (const String &sql, const String &recordCountSql="", const String &fastRefreshSQL="") |
|
String | sql () |
|
QueryParameter & | param (const char *paramName, CRefreshKind refreshKind=CRefreshKind::LV_REFRESH_FULL) |
|
void | keyField (const String &fieldName) |
|
String | keyField () const |
|
void | setup (PoolDatabaseConnection *db, const String &sql, const String &keyField) |
|
void | refreshData (CRefreshKind refreshKind=CRefreshKind::LV_REFRESH_FULL) |
|
DateTime | lastRefresh () const |
|
void | maxRecords (uint32_t mr) |
|
uint32_t | maxRecords () const |
|
bool | recordsLimited () const |
|
| CListView (const char *label=nullptr, int layoutSize=20, CLayoutAlign layoutAlign=CLayoutAlign::TOP) |
| Constructor in SPTK style. More...
|
|
| ~CListView () override |
| Destructor.
|
|
int | handle (int) override |
| Overwritten handle()
|
|
void | resize (int x, int y, int w, int h) override |
| Resizes the control and inside widgets. More...
|
|
virtual void | removeRow (uint32_t index) |
| Removes row. More...
|
|
virtual void | addRow (CPackedStrings *row) |
| Adds new row. More...
|
|
virtual void | addRow (int ident, const Strings &row) |
| Adds new row. More...
|
|
virtual void | insertRow (uint32_t position, const Strings &row, int ident) |
| Inserts new row. More...
|
|
virtual void | updateRow (uint32_t position, CPackedStrings *row) |
| Updates a row. More...
|
|
virtual void | updateRow (uint32_t position, const Strings &row, int ident=0) |
| Updates a row. Optional row argument may be defined inside row parameter. More...
|
|
virtual void | clear () |
| Removes all the rows.
|
|
virtual uint32_t | size () const |
| Returns the row count.
|
|
virtual int | top () const |
| Returns the scroll position.
|
|
virtual void | top (int index) |
| Sets the scroll position. More...
|
|
int | selected (int index) const |
|
void | show (int index) |
|
void | show () override |
|
void | hide (int index) |
|
void | hide () override |
|
int | visible (int index) const |
|
int | visible () const |
|
std::string | textValue () const |
|
void | textValue (const std::string &text) |
|
void | dataMode (CListViewDataMode dm) |
|
CListViewDataMode | dataMode () const |
|
Variant | data () const override |
|
void | data (const Variant &v) override |
|
CPackedStrings * | row (uint32_t index) const |
|
const CSelection & | selection () const |
|
CPackedStrings * | selectedRow () const |
|
int | selectedIndex () const |
|
bool | selectRow (uint32_t index, bool sel=true) |
|
bool | displayed (uint32_t index) const |
|
virtual void | displayRow (uint32_t index) |
|
void | redrawRow (uint32_t index) |
|
void | columns (const CColumnList &columns) |
| Sets a new column list. More...
|
|
CColumnList & | columns () |
| Returns column list.
|
|
CColumn & | column (uint32_t col) |
| Returns column informartion. More...
|
|
CColumn & | column (const char *colname) |
| Returns column informartion. More...
|
|
void | addColumn (const CColumn &column) |
| Adds a new column as a copy of column. More...
|
|
void | addColumn (const String &colname, VariantDataType type, uint32_t cwidth=100, bool cvisible=true) |
| Adds a new column as a copy of column. More...
|
|
CControlKind | kind () const override |
| SPTK RTTI information. More...
|
|
bool | autoRowHeight () const |
| Returns auto row height mode as true/false.
|
|
void | autoRowHeight (bool arh) |
| Sets auto row height mode as true/false.
|
|
Fl_Font | textFont () const override |
| Returns text font type. More...
|
|
void | textFont (Fl_Font f) override |
| Sets text font type. More...
|
|
uchar | textSize () const override |
|
void | textSize (uchar s) override |
| Sets text font size. More...
|
|
Fl_Color | textColor () const override |
| Returns text color. More...
|
|
void | textColor (Fl_Color n) override |
| Sets text color. More...
|
|
bool | showGrid () const |
| Returns show grid mode.
|
|
void | showGrid (bool flag) |
| Sets show grid mode.
|
|
bool | showStripes () const |
| Returns show stripes.
|
|
void | showStripes (bool flag) |
| Sets show stripes mode.
|
|
bool | showSelection () const |
| Returns show selection mode.
|
|
void | showSelection (bool flag) |
| Sets show selection mode.
|
|
bool | multiSelect () const |
| Returns multiple selection enabled or disabled.
|
|
void | multiSelect (bool ms) |
| Sets multiple selection enabled or disabled.
|
|
void | getSelections (std::vector< uint64_t > &selection) const |
| Returns a selected rows ID list.
|
|
void | setSelections (const std::vector< uint64_t > &selection) |
| Sets a selected rows ID list.
|
|
CPackedStrings * | findCaption (const String &caption) |
| Finds an item with the caption (a string in the first column). More...
|
|
CPackedStrings * | findKey (int keyValue) |
| Finds an item with the key (an integer associated with the item - argument()). More...
|
|
uint32_t | fullWidth () const |
| Returns maximum width of all items including the header row.
|
|
uint32_t | fullHeight () const |
| Returns summary height of all items including the header row.
|
|
virtual int | findString (const std::string &str, bool select=true, uint32_t startRow=0, uint32_t endRow=0) |
| Finds a string in the sort column of list view defined with sortColumn() More...
|
|
String | sortColumnName () const |
| Returns sort column name.
|
|
void | sortColumn (int column, bool sortNow) |
| Sets the sort column. More...
|
|
int | sortColumn () const |
| Returns the sort column number.
|
|
bool | sortAscending () const |
| Returns the sort direction - ascending/descending.
|
|
void | sortAscending (bool ascending, bool sortNow) |
| Sets the sort direction - ascending/descending. More...
|
|
void | sort () |
| Sorts ListView rows using existing information about sort column and direction.
|
|
void | fill (DataSource &ds, const String &keyFieldName="", uint32_t recordsLimit=0, uint32_t recordsEstimated=0, CRefreshKind refreshKind=CRefreshKind::LV_REFRESH_FULL) |
| Fills the list view with the data from datasource. More...
|
|
void | loadList (const xdoc::SNode &node) |
| Fills the list with the data from XML node. More...
|
|
void | saveList (const xdoc::SNode &node) const |
| Saves the list data into XML node. More...
|
|
bool | preferredSize (int &w, int &h) override |
| Computes the optimal widgets size. More...
|
|
uint32_t | headerHeight () const |
| Returns header height.
|
|
void | headerHeight (uint32_t hh) |
| Sets the header height, 0 to hide headers.
|
|
uint32_t | activeRow () const |
| Returns the currently active row.
|
|
bool | capitalizeColumnNames () const |
| Returns true if column names are auto-capitilized.
|
|
void | capitalizeColumnNames (bool ccn) |
| Defines if column names should be auto-capitilized. More...
|
|
void | terminateFill () |
| Terminate the current fill() operation (if in progress)
|
|
String | className () const override |
| Returns widget class name (internal SPTK RTTI). More...
|
|
void | imageCollection (Strings &iconNames) |
| Sets the images that may be referred from items. More...
|
|
| 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 |
|
|
void | item_clicked (int mouse_btn) override |
|
void | onExit () override |
|
int | columnAt (int x) |
| Computes which column contains x-coordinate. More...
|
|
int | find_item (int y) |
| Finds an item in vertical position y. More...
|
|
void | bbox (int &X, int &Y, int &W, int &H) const |
| Returns the actual size of the drawing area (internal) More...
|
|
int | hposition () const |
| Returns horizontal position of the scroll.
|
|
void | hposition (int hpos) |
| Sets horizontal position of the scroll. More...
|
|
int | find_id (int id) const |
| Finds item with ID. More...
|
|
virtual int | get_focus () |
| Get focus callback (internal)
|
|
virtual bool | item_selected (uint32_t index) const |
| Returns true if item is selected. More...
|
|
virtual void | item_select (uint32_t index, bool select) |
| Selects or deselects the item. More...
|
|
virtual int | item_compute_height_all () |
| Recomputes all items height.
|
|
virtual int | item_compute_height (CPackedStrings *rowData) |
| Recomputes items height. More...
|
|
virtual int | item_height (uint32_t index) const |
| Recomputes items height. More...
|
|
virtual int | item_width (uint32_t index) const |
| Returns item width. More...
|
|
virtual void | item_draw (uint32_t index, const CPackedStrings *rowData, int x, int y, int w, int h, int focusMode, int verticalAlign, bool paintBackground) const |
| Draws a row in coordinates (internal) More...
|
|
virtual void | item_clicked (int mouse_btn) |
|
virtual Fl_Color | item_color (int column, const CPackedStrings &rowData) const |
| The function that allows to overwrite the default text color for the cell. More...
|
|
virtual void | header_draw (int x, int y, int hh) const |
| Draws header (internal) More...
|
|
virtual void | header_clicked (int x) |
| Header clicked mouse callback. More...
|
|
virtual bool | header_drag_position (int x) |
| Returns true if x is the drag-sensitive area.
|
|
virtual void | header_dragged (int x) |
| Header dragged to position x notification. More...
|
|
virtual void | header_released (int x) |
| Header released in position x notification. More...
|
|
void | redraw_line (uint32_t index) |
| Request to redraw line index. More...
|
|
void | redraw_lines () |
| Redraw all the lines.
|
|
void | draw () override |
| General draw function. Draws everything.
|
|
void | key_changed (uint32_t index) |
| Internal callback if selected another item with the different user _data (key).
|
|
void | load (Query *) override |
| Loads the key value from the query. More...
|
|
void | save (Query *) override |
| Saves the key value from the query. More...
|
|
void | load (const xdoc::SNode &node, CLayoutXMLmode xmlMode) override |
| Loads control data from XML. More...
|
|
void | save (const xdoc::SNode &node, CLayoutXMLmode xmlMode) const override |
| Saves control data to XML. More...
|
|
bool | valid () const override |
| True if the data is valid. More...
|
|
virtual uint32_t | cellBorderWidth () const |
| Returns the cell border width.
|
|
bool | select (uint32_t index, bool sel=true, int docallbacks=false) |
| Selects the row. Internal. More...
|
|
bool | select_only (uint32_t index, bool docallbacks=false) |
| Selects the only row. Internal. More...
|
|
bool | activate_row (uint32_t index) |
| Selects the row. Executes the callbacks. Internal. More...
|
|
bool | select_first () |
| Selects the first row. Executes the callbacks. Internal. More...
|
|
bool | select_last () |
| Selects the last row. Executes the callbacks. Internal. More...
|
|
bool | select_next () |
| Selects the next row. Executes the callbacks. Internal. More...
|
|
bool | select_prior () |
| Selects the prior row. Executes the callbacks. Internal. More...
|
|
bool | select_next_page () |
| Selects the next page row. Executes the callbacks. Internal. More...
|
|
bool | select_prior_page () |
| Selects the prior page row. Executes the callbacks. Internal. More...
|
|
bool | containsFocus () const |
| Does the control contain focus?
|
|
void | notifyFocus (bool gotFocus=true) |
| Internal focus notification on focus change.
|
|
virtual void | onEnter () |
| Internal focus notification on focus change.
|
|
virtual void | onExit () |
| Internal focus notification on focus change. More...
|
|
uint32_t | labelHeight () const |
| Computes the label height based on the labelFont() and labelWidth()
|
|
int | handle (int) override |
| Special handle() method.
|
|
int | lastPreferredH () const |
|
int | lastPreferredW () const |
|
void | lastPreferredH (int height) |
|
void | lastPreferredW (int width) |
|