Class sh::ui::SearchPanelConfiguration

class sh::ui::SearchPanelConfiguration

Configuration for a search panel population.

It is populated with ui controls by the chosen search criterion. Later on those controls are used for updating the configuration data.

Subclassed by sh::ui::qt::QtSearchPanelConfiguration

Public Functions

SearchPanelConfiguration()
~SearchPanelConfiguration()
SearchPanelButton *addMenuButton(QString text, QStringList menu, std::function<void(int)> onchanged) = 0

Adds and returns a button for a menu. .

SearchPanelButton *addActionButton(QString text, std::function<void()> action) = 0

Adds and returns a button for an action. .

SearchPanelTextEditor *addTextEditor() = 0

Adds and returns a text editor. .

SearchPanelDateTimeEditor *addDateTimeEditor() = 0

Adds and returns a date/time editor. .

SearchPanelLabelEditor *addLabel() = 0

Adds and returns a label. .

SearchPanelSpacerEditor *addSpacer() = 0

Adds and returns a spacer. .

SearchPanelAbstractEditor *getEditorAt(int i) = 0

Returns the editor widget at a given position. .

void onDestroyed(std::function<void()> fctQObject *owner = 0, )

Sets a handler for panel removal (optionally bound to an owner lifetime).