DatabaseGraphConfigurationWidget Class
(CDP::GraphWidgets::DatabaseGraphConfigurationWidget)The DB Graph Configuration widget is a button that opens DB Graph Signal Selector widget in a new window. More...
Header: | #include <cdp/graphwidgets/databasegraphconfigurationwidget.h> |
Properties
|
|
Public Functions
DatabaseGraphConfigurationWidget(QWidget *parent = 0) | |
virtual | ~DatabaseGraphConfigurationWidget() |
QString | cdpLoggerRouting() |
const QUrl & | databaseUrl() const |
QSize | dialogButtonMinSize() const |
int | dialogFontSize() const |
QSize | dialogMinSize() const |
const QSize & | itemSize() const |
bool | separateWindow() const |
void | setButtonMinSize(const QSize &size) |
void | setCdpLoggerRouting(const QString &routing) |
void | setDialogMinSize(const QSize &size) |
void | setFontSize(int size) |
void | setIQtCDPPointer(IQtCDP *pIQtCDP) |
void | setItemSize(const QSize &size) |
void | setSeparateWindow(bool separateWindow) |
void | setSignalContentType(SignalContent::Type type) |
void | setVirtualKeyboard(bool enabled) |
SignalContent::Type | signalContentType() const |
bool | virtualKeyboard() const |
Public Slots
void | reconnectToDatabase() |
void | setDatabaseUrl(const QUrl &url) |
Signals
void | signalSelectionChanged(const ColumnList &columns) |
Protected Functions
void | initDialog(bool separateDialogWindow) |
Detailed Description
The DB Graph Configuration widget is a button that opens DB Graph Signal Selector widget in a new window.
To use it set the databaseUrl
property to the same value as for DatabaseGraphWidget. The signalSelectionChanged signal should be connected to suitable slot of DatabaseGraphWidget.
Property Documentation
cdpLoggerRouting : QString
This property holds routing to CDP logger component that will override initial databaseUrl.
Access functions:
QString | cdpLoggerRouting() |
void | setCdpLoggerRouting(const QString &routing) |
See also databaseUrl.
databaseUrl : QUrl
This property holds connection string to the database.
Examples:
Target | Connection string |
---|---|
CDP Logger built-in server | ip://127.0.0.1:17000 |
CDPCompactDatastore file | file:///directory-path/log.db |
SQLite database file | file:///directory-path/database-file.db |
MySQL database | mysql://user:password@127.0.0.1:3306/database-name |
Note: Consider using cdpLoggerRouting instead of hardcoded string when connecting to CDP Logger built-in server.
Access functions:
const QUrl & | databaseUrl() const |
void | setDatabaseUrl(const QUrl &url) |
See also cdpLoggerRouting.
dialogButtonMinSize : QSize
Access functions:
QSize | dialogButtonMinSize() const |
void | setButtonMinSize(const QSize &size) |
dialogFontSize : int
Access functions:
int | dialogFontSize() const |
void | setFontSize(int size) |
dialogMinSize : QSize
Access functions:
QSize | dialogMinSize() const |
void | setDialogMinSize(const QSize &size) |
itemSize : QSize
This property holds the size of one item in the list of available columns.
For example this could be used to increase the height of each item in list to make it easier to use on a touchscreen.
Access functions:
const QSize & | itemSize() const |
void | setItemSize(const QSize &size) |
separateWindow : bool
Access functions:
bool | separateWindow() const |
void | setSeparateWindow(bool separateWindow) |
signalContentType : CDP::GraphWidgets::SignalContent::Type
This property specifies whether to display signal name or full path (when both are available).
Access functions:
SignalContent::Type | signalContentType() const |
void | setSignalContentType(SignalContent::Type type) |
virtualKeyboard : bool
This property holds whether or not to open a key pad when the filter is pressed.
Access functions:
bool | virtualKeyboard() const |
void | setVirtualKeyboard(bool enabled) |
Member Function Documentation
DatabaseGraphConfigurationWidget::DatabaseGraphConfigurationWidget(QWidget *parent = 0)
Constructs an instance of DatabaseGraphConfigurationWidget with parent
[virtual]
DatabaseGraphConfigurationWidget::~DatabaseGraphConfigurationWidget()
Destroys the instance of DatabaseGraphConfigurationWidget. The destructor is virtual.
[protected]
void DatabaseGraphConfigurationWidget::initDialog(bool separateDialogWindow)
[slot]
void DatabaseGraphConfigurationWidget::reconnectToDatabase()
Tries to reconnects if connection to database has been lost.
void DatabaseGraphConfigurationWidget::setIQtCDPPointer(IQtCDP *pIQtCDP)
[signal]
void DatabaseGraphConfigurationWidget::signalSelectionChanged(const ColumnList &columns)
Emits list of selected columns when Apply is clicked.
Should be connected to suitable slot of DatabaseGraphWidget.
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.