ESettingsWidget to configure database host, type and database name.
More...
#include <edbsettingswidget.h>
|
static QStringList | sqlDrivers () |
| Returns all installed sql drivers on this system. More...
|
|
static QString | host () |
| Returns the database host from settings. More...
|
|
static QString | driver () |
| Returns the database driver from settings. More...
|
|
static QString | database () |
| Returns the database name from settings. More...
|
|
static bool | ssl () |
| Returns whether SSL is enabled or not from settings. More...
|
|
|
Ui::EDBSettingsWidget * | m_ui |
|
|
void | error (const QString &message) |
|
void | warning (const QString &message) |
|
void | information (const QString &message) |
|
void | reloadEnableActions () |
| Request reloading of enabled actions in EMainWindow. More...
|
|
void | addMenu (QMenu *newMenu, const QString &parent, QString before=QString()) |
|
void | addAction (QAction *newAction, const QString &parent, QString before=QString()) |
|
void | addToolBar (QToolBar *newToolBar, Qt::ToolBarArea area=Qt::TopToolBarArea) |
|
void | addNewDockWidget (QDockWidget *widget, const Qt::DockWidgetArea &area) |
| To add managed dock widgets, use addManagedDockWidget() instead. More...
|
|
void | setCentralWidget (QWidget *centralWidget) |
|
void | showSettings () |
|
void | showHelp (const QString &page) |
|
void | showStatusWidget (QWidget *widget) |
|
void | reloadSettingsRequest () |
| Indicates, that a reload of the settings is needed. More...
|
|
void | doReloadSettings () |
| Emitted to bring the reload request back to the farest child. More...
|
|
virtual void | errorByPass (const QString &message) |
|
virtual void | warningByPass (const QString &message) |
|
virtual void | informationByPass (const QString &message) |
|
virtual void | reloadEnableActionsByPass () |
|
virtual void | addMenuByPass (QMenu *newMenu, const QString &parent, QString before=QString()) |
|
virtual void | addActionByPass (QAction *newAction, const QString &parent, QString before=QString()) |
|
virtual void | addToolBarByPass (QToolBar *newToolBar, Qt::ToolBarArea area=Qt::TopToolBarArea) |
|
virtual void | addNewDockWidgetByPass (QDockWidget *widget, const Qt::DockWidgetArea &area) |
|
virtual void | setCentralWidgetByPass (QWidget *centralWidget) |
|
virtual void | showSettingsByPass () |
|
virtual void | showHelpByPass (const QString &page) |
|
virtual void | showStatusWidgetByPass (QWidget *widget) |
|
virtual void | reloadSettingsRequestByPass () |
|
void | addManagedDockWidget (QDockWidget *widget, const Qt::DockWidgetArea &area, QString actionLabel=QString(), QString actionParent=QString()) |
| Adds an dock widget via addNewDockWidget() and adds widget to the list of managed dock widgets. More...
|
|
QString | myName |
|
QString | name |
|
ESettingsWidget to configure database host, type and database name.
To use those settings, just call the appropriate function host(), driver() or database().
If you only want to show some of the sqlDrivers(), use setAvailableDrivers().
EDBSettingsWidget::EDBSettingsWidget |
( |
QWidget * |
parent = NULL , |
|
|
Qt::WindowFlags |
flags = 0 |
|
) |
| |
EDBSettingsWidget::~EDBSettingsWidget |
( |
| ) |
|
QString EDBSettingsWidget::database |
( |
| ) |
|
|
static |
Returns the database name from settings.
QString EDBSettingsWidget::driver |
( |
| ) |
|
|
static |
Returns the database driver from settings.
QString EDBSettingsWidget::host |
( |
| ) |
|
|
static |
Returns the database host from settings.
bool EDBSettingsWidget::saveSettings |
( |
QString & |
errorString | ) |
|
|
slot |
void EDBSettingsWidget::setAvailableDrivers |
( |
QStringList |
drivers | ) |
|
The list of drivers, which the user can choose one of.
If noe drivers are set (e.g. function is not called at all) sqlDrivers() is used.
QStringList EDBSettingsWidget::sqlDrivers |
( |
| ) |
|
|
static |
Returns all installed sql drivers on this system.
bool EDBSettingsWidget::ssl |
( |
| ) |
|
|
static |
Returns whether SSL is enabled or not from settings.
void EDBSettingsWidget::typeChanged |
( |
QString |
text | ) |
|
|
privateslot |
Ui::EDBSettingsWidget* EDBSettingsWidget::m_ui |
|
private |
The documentation for this class was generated from the following files: