Classes | |
class | sptk::DirectoryDS |
Directory datasource. More... | |
class | sptk::CBox |
class | sptk::CBaseButton |
class | sptk::CButton |
class | sptk::CSmallButton |
class | sptk::CButtonGroup |
class | sptk::CCalendar |
Calendar widget. More... | |
class | sptk::CPopupCalendar |
Popup Calendar. More... | |
class | sptk::CCheckButton |
The check button. More... | |
class | sptk::CCheckButtons |
A set of check buttons. More... | |
class | sptk::CColorSchema |
Stores and restores the color schema. More... | |
class | sptk::CColumn |
Class CColumn represents a column descriptor for CListView. More... | |
class | sptk::CColumnList |
class | sptk::CBaseListBox |
Base list box widget. More... | |
class | sptk::CComboBox |
Combo box widget. More... | |
class | sptk::CListBox |
List Box widget. More... | |
class | sptk::CControl |
Base class for most of SPTK widgets. More... | |
class | sptk::CControlList |
List of CControl object pointers in Fl_Group. More... | |
class | sptk::CDateControl |
Date input widget. More... | |
class | sptk::CDateIntervalInput |
Date interval input widget. More... | |
class | sptk::CDateTimeBaseInput |
Base date and time input widget. More... | |
class | sptk::CDateInput |
Date input widget. More... | |
class | sptk::CTimeInput |
Time input widget. More... | |
class | sptk::CDateTimeInput |
Date and time input widget. More... | |
class | sptk::CDBListView |
List view widget with extended database support. More... | |
class | sptk::CDialogTabs |
class | sptk::CDialog |
class | sptk::CDirOpenDialog |
Select Directory Window. More... | |
class | sptk::CDBDropDownListView |
Drop-down list view. More... | |
class | sptk::CDBDropDownList |
Drop-down window with CListView widget inside. More... | |
class | sptk::CEditor |
Text editor widget. More... | |
class | sptk::CSpellOption |
class | sptk::CSpellOptions |
class | sptk::CSpellChecker |
class | sptk::CEditorSpellChecker |
class | sptk::CEventInfo |
class | sptk::CFileDialog |
Base class for CFileOpenDialog and CFileSaveDialog. More... | |
class | sptk::CFileOpenDialog |
File Open Window. More... | |
class | sptk::CFileSaveDialog |
File Save Window. More... | |
class | sptk::CFloatInput |
Floating point value input widget. More... | |
class | sptk::CFont |
Font information. More... | |
class | sptk::CFontsMap |
CFontsMap is a map font names to fonts. More... | |
class | sptk::CFontsVector |
CFontsVector is a map font names to fonts. More... | |
class | sptk::CFontComboBox |
Font combobox widget. More... | |
class | sptk::CFrame |
Frame information class. More... | |
class | sptk::CFrames |
Frame images collection. More... | |
class | sptk::CGroup |
SPTK group widget. More... | |
class | sptk::CHtmlBox |
Simple HTML viewer. More... | |
class | sptk::CIcon |
Class CIcon provides a storage of PNG image. More... | |
class | sptk::CIconMap |
A map of theme icon names to theme icons. More... | |
class | sptk::CInput_ |
class | sptk::CInput |
class | sptk::CIntegerInput |
Integer value input widget. More... | |
class | sptk::CLayoutClient |
class | sptk::CLayoutManager |
Layout Manager. More... | |
class | sptk::CListView |
List view widget. More... | |
class | sptk::CListViewRows |
class | sptk::CSelection |
List view & friend items selection. More... | |
class | sptk::CMemoInput |
class | sptk::CMenuBar |
Menu bar. More... | |
class | sptk::CAskDialog |
A Yes/No dialog box. More... | |
class | sptk::CMessageDialog |
An information dialog box. More... | |
class | sptk::CInputDialog |
A single input Yes/No dialog box. More... | |
class | sptk::CPasswordInput |
Password input widget. More... | |
class | sptk::CPhoneNumberInput |
class | sptk::CPopupWindow |
Base popup window. More... | |
class | sptk::CProgressBar |
class | sptk::CRadioButtons |
Radio buttons widget. More... | |
class | sptk::CRect |
class | sptk::CScroll |
Scroll area widget. More... | |
class | sptk::CScrollBar |
class | sptk::CShapePoint |
A point to define a shape. More... | |
class | sptk::CSplitter |
Splitter widget. More... | |
class | sptk::CTabImage |
An image representing one of three required images for theme tabs. More... | |
class | sptk::CTabImages |
class | sptk::CTabs |
Tabs widget. More... | |
class | sptk::CThemeColorCollection |
class | sptk::CThemeImageCollection |
A collection of theme images. More... | |
class | sptk::CThemes |
Widget themes. More... | |
class | sptk::CScrollBarImages |
The complete set of four images to draw a scroll bar. More... | |
class | sptk::CThemeScrollBar |
class | sptk::CToolBar |
Toolbar widget. More... | |
class | sptk::CTreeItem |
Tree widget item. More... | |
class | sptk::CTreeControl |
Tree widget. More... | |
class | sptk::CTreeView |
Tree view widget. More... | |
class | sptk::CWindow |
Window widget. More... | |
class | sptk::CWindowShape |
Window non-rectangular shape support. More... | |
class | sptk::MemoryDS |
Base (memory) datasource. More... | |
class | sptk::ImapDS |
IMAP datasource. More... | |
class | sptk::CPackedStrings |
Packed strings list. More... | |
Typedefs | |
using | sptk::CStringControlMap = std::map< std::string, CControl *, CaseInsensitiveCompare > |
String to Control map. Uses strings and pointers to CControl. Strings are control field names. | |
using | sptk::createControlCallback = CLayoutClient *(*)(const xdoc::SNode &node) |
A callback that creates a control of the required type. More... | |
using | sptk::createControlCallbackMap = std::map< std::string, createControlCallback > |
A callback map that stores type names and control create functions. | |
using | sptk::CWidgetNamesMap = std::map< std::string, Fl_Widget * > |
a map of widget names to widgets | |
using | sptk::COORD = int16_t |
Coordinate type for shapes. | |
using | sptk::gtk_color_function = Fl_Color(*)(const String &expression) |
using | sptk::CTreeItemCreator = CLayoutClient *(*)(CTreeItem *item) |
A callback that allows to create a widget of required type and use it as an item body. More... | |
using | sptk::CTreeItemVector = std::vector< CTreeItem * > |
Vector of CTreeItem pointers. | |
using | sptk::ProgressCallback = std::function< void(int total, int progress)> |
using | sptk::pchar = char * |
using | sptk::cpchar = const char * |
Functions | |
SP_EXPORT bool | sptk::checkFieldName (const String &fldName) |
Internal field name validation. | |
CControl * | sptk::createControl (CControlKind controlKind, const String &label, const String &fieldName, int layoutSize) |
Creates a single control. More... | |
void | sptk::createControls (const xdoc::SNode &xmlControls) |
Create a control or a group of controls. More... | |
SP_EXPORT int | sptk::spAsk (const String &message) |
A Yes/No dialog box function. More... | |
SP_EXPORT int | sptk::spWarning (const String &message) |
A warning information dialog box warning function. More... | |
SP_EXPORT int | sptk::spError (const String &message) |
An error information dialog box function. More... | |
int SP_EXPORT | sptk::spInformation (const String &message) |
An information dialog box function. More... | |
int SP_EXPORT | sptk::spInput (const String &message, String &inputText) |
A single input Yes/No dialog box. More... | |
Variables | |
const Strings | sptk::smallPixmapIDs |
A list of predefined icon names used by ListView, primarily. | |
constexpr int | sptk::SINGLE_EDIT_ENTRY_HEIGHT = 23 |
Default height for the single-row edit control. | |
using sptk::cpchar = typedef const char* |
Type definition for cpchar
using sptk::createControlCallback = typedef CLayoutClient* (*) (const xdoc::SNode& node) |
A callback that creates a control of the required type.
The information (layout,style,etc) is provided by the XML node
using sptk::CTreeItemCreator = typedef CLayoutClient* (*) (CTreeItem* item) |
A callback that allows to create a widget of required type and use it as an item body.
An item body should be any CLayoutClient-derived widget. By default (if that callback isn't redefined, SPTK creates CBox widget.
item | CTreeItem*, a tree item that would be a parent for the new item |
using sptk::pchar = typedef char* |
Type definition for pchar
using sptk::ProgressCallback = typedef std::function<void(int total, int progress)> |
Progression callback function prototype
|
strong |
Button widget kind
The button kind defines a picture and a default label for the button.
|
strong |
Control kind is the constant to report the internal SPTK RTTI.
|
strong |
The closing dialog result value.
You can check it after the dialog exits the modal state, using modalResult() method. If the Ok button was pressed, it would return DMR_OK. For Cancel button it would return DMR_CANCEL. And, for user buttons, it would be DMR_USER.
Enumerator | |
---|---|
NONE | Modal result undefined |
OK | Ok button pressed |
CANCEL | Cancel button pressed |
USER | User-added button pressed |
|
strong |
Event type constants
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
The data mode for the data() methods.
Enumerator | |
---|---|
LV_DATA_UNDEFINED | data() sets/returns item caption. If the data connection is defined (in CDBListView) - it flips to LV_DATA_KEY mode. |
LV_DATA_KEY | data() sets/returns item key value |
LV_DATA_INDEX | data() sets/returns item index |
LV_DATA_CAPTION | data() sets/returns item caption |
|
strong |
|
strong |
A list of predefined small pixmaps
|
strong |
CControl * sptk::createControl | ( | CControlKind | controlKind, |
const String & | label, | ||
const String & | fieldName, | ||
int | layoutSize | ||
) |
Creates a single control.
The utility function that allows to create a control with one step
controlKind | int, a control kind |
label | std::string, a control label |
fieldName | std::string, a control field name |
layoutSize | int, a control layout size |
void sptk::createControls | ( | const xdoc::SNode & | xmlControls | ) |
Create a control or a group of controls.
Every XML node in xmlControls should be CONTROL node and may contain the following elements: type a control type, one of the { AREA CODE, CURRENCY, CREDIT CARD, COMBO, CHOICE, CHECK BUTTONS, DATE, DATE AND TIME, FLOAT, GROUP, HTML, INTEGER, LABEL, LONG ZIP CODE, MASK, MULTIPLE CHOICE, MONEY, PHONE, PHONE EXT, PLAIN TEXT, PHONE NUMBER, PHONE EXTENSION, SIMPLE, STRING, SSN, TIME, ZIP CODE } label a label, optional fieldName a field name, optional values a list of values separated with '|' for list-based controls, string, optional sqlValues an SQL query to build the list values, string, optional, presented as a sub-node with CDATA visible visibility flag, optional, true or false (1/0) enable enable flage, optional, true or false (1/0) align layout align, optional, one of { top,bottom,left,right,client}, the default is top size layout size in pixels, optional
The group node may contain other controls. If the control type or parameter is not recognized, the exception is thrown.
xmlControls | The controls description in XML |
SP_EXPORT int sptk::spAsk | ( | const String & | message | ) |
A Yes/No dialog box function.
Creates a dialog with the text or HTML text of question (message) and two buttons (Ok/Cancel)
SP_EXPORT int sptk::spError | ( | const String & | message | ) |
An error information dialog box function.
Creates a dialog with the text or HTML text of message and one button (Ok)
int SP_EXPORT sptk::spInformation | ( | const String & | message | ) |
An information dialog box function.
Creates a dialog with the text or HTML text of message and one button (Ok)
A single input Yes/No dialog box.
Creates a dialog with the text or HTML text of question (message), two buttons (Ok/Cancel), and input box
SP_EXPORT int sptk::spWarning | ( | const String & | message | ) |
A warning information dialog box warning function.
Creates a dialog with the text or HTML text of message and one button (Ok)