kexi
KexiConnSelectorWidget Class Reference
#include <KexiConnSelector.h>
Detailed Description
Widget that allows to select a database connection (without choosing database itself)
Definition at line 55 of file KexiConnSelector.h.
Public Types | |
enum | ConnType { FileBased = 1, ServerBased = 2 } |
Public Slots | |
void | showSimpleConn () |
void | showAdvancedConn () |
virtual void | setFocus () |
void | hideHelpers () |
void | hideConnectonIcon () |
Signals | |
void | connectionItemExecuted (ConnectionDataLVItem *item) |
void | connectionItemHighlighted (ConnectionDataLVItem *item) |
Public Member Functions | |
KexiConnSelectorWidget (KexiDBConnectionSet &conn_set, const QString &startDirOrVariable, QWidget *parent=0, const char *name=0) | |
virtual | ~KexiConnSelectorWidget () |
int | selectedConnectionType () const |
KexiDB::ConnectionData * | selectedConnectionData () const |
QString | selectedFileName () |
void | setSelectedFileName (const QString &fileName) |
QListView * | connectionsList () const |
void | setConfirmOverwrites (bool set) |
bool | confirmOverwrites () const |
Public Attributes | |
KexiConnSelectorBase * | m_remote |
KexiStartupFileDialog * | m_fileDlg |
Protected Slots | |
void | slotConnectionItemExecuted (QListViewItem *item) |
void | slotRemoteAddBtnClicked () |
void | slotRemoteEditBtnClicked () |
void | slotRemoteRemoveBtnClicked () |
void | slotConnectionSelectionChanged () |
void | slotPrjTypeSelected (int id) |
Constructor & Destructor Documentation
|
Constructs a KexiConnSelector which contain conn_set as connection set. conn_set can be altered, because Add/Edit/Remove buttons are available to users. startDirOrVariable can be provided to specify a start dir for file browser (it can also contain a configuration variable name with ":" prefix as described in KRecentDirs documentation). Definition at line 103 of file KexiConnSelector.cpp. |
Member Function Documentation
|
Hides helpers on the server based connection page (sometimes it's convenient not to have these):
Definition at line 336 of file KexiConnSelector.cpp. |
|
Definition at line 272 of file KexiConnSelector.cpp. |
|
After accepting this dialog this method returns wherher user selected file- or server- based connection (ConnType enum). Definition at line 252 of file KexiConnSelector.cpp. |
|
Definition at line 280 of file KexiConnSelector.cpp. |
|
If true, user will be asked to accept overwriting existing project. This is true by default. Definition at line 350 of file KexiConnSelector.cpp. |
|
Sets selected filename to fileName. Only works when selectedConnectionType()==FileBased. Definition at line 287 of file KexiConnSelector.cpp. |
|
Definition at line 369 of file KexiConnSelector.cpp. |
|
Definition at line 392 of file KexiConnSelector.cpp. |
The documentation for this class was generated from the following files: