#include <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 TQString &startDirOrVariable, TQWidget *parent=0, const char *name=0) | |
| int | selectedConnectionType () const |
| KexiDB::ConnectionData * | selectedConnectionData () const |
| TQString | selectedFileName () |
| void | setSelectedFileName (const TQString &fileName) |
| TQListView * | connectionsList () const |
| void | setConfirmOverwrites (bool set) |
| bool | confirmOverwrites () const |
Public Attributes | |
| KexiConnSelectorBase * | m_remote |
| KexiStartupFileDialog * | m_fileDlg |
Protected Slots | |
| void | slotConnectionItemExecuted (TQListViewItem *item) |
| void | slotRemoteAddBtnClicked () |
| void | slotRemoteEditBtnClicked () |
| void | slotRemoteRemoveBtnClicked () |
| void | slotConnectionSelectionChanged () |
| void | slotPrjTypeSelected (int id) |
Detailed Description
Widget that allows to select a database connection (without choosing database itself)
Definition at line 55 of file KexiConnSelector.h.
Member Enumeration Documentation
◆ ConnType
| enum KexiConnSelectorWidget::ConnType |
Definition at line 61 of file KexiConnSelector.h.
Constructor & Destructor Documentation
◆ KexiConnSelectorWidget()
| KexiConnSelectorWidget::KexiConnSelectorWidget | ( | KexiDBConnectionSet & | conn_set, |
| const TQString & | startDirOrVariable, | ||
| TQWidget * | parent = 0, | ||
| const char * | name = 0 ) |
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 TDERecentDirs documentation).
Definition at line 103 of file KexiConnSelector.cpp.
◆ ~KexiConnSelectorWidget()
|
virtual |
Definition at line 163 of file KexiConnSelector.cpp.
Member Function Documentation
◆ confirmOverwrites()
| bool KexiConnSelectorWidget::confirmOverwrites | ( | ) | const |
Definition at line 346 of file KexiConnSelector.cpp.
◆ connectionsList()
| TQListView * KexiConnSelectorWidget::connectionsList | ( | ) | const |
Definition at line 311 of file KexiConnSelector.cpp.
◆ hideConnectonIcon
|
slot |
Definition at line 426 of file KexiConnSelector.cpp.
◆ hideHelpers
|
slot |
Hides helpers on the server based connection page (sometimes it's convenient not to have these):
- "Select existing database server's connection..." (label at the top)
- "Click "Back" button" (label at the bottom)
- "Back" button itself
Definition at line 325 of file KexiConnSelector.cpp.
◆ selectedConnectionData()
| KexiDB::ConnectionData * KexiConnSelectorWidget::selectedConnectionData | ( | ) | const |
- Returns
- data of selected connection, if server-based connection was selected. Returns NULL if no selection has been made or file-based connection has been selected.
- See also
- selectedConnectionType()
Definition at line 261 of file KexiConnSelector.cpp.
◆ selectedConnectionType()
| int KexiConnSelectorWidget::selectedConnectionType | ( | ) | const |
After accepting this dialog this method returns wherher user selected file- or server- based connection (ConnType enum).
Definition at line 241 of file KexiConnSelector.cpp.
◆ selectedFileName()
| TQString KexiConnSelectorWidget::selectedFileName | ( | ) |
- Returns
- the name of database file, if file-based connection was selected. Returns null string if no selection has been made or server-based connection has been selected.
- See also
- selectedConnectionType()
Definition at line 269 of file KexiConnSelector.cpp.
◆ setConfirmOverwrites()
| void KexiConnSelectorWidget::setConfirmOverwrites | ( | bool | set | ) |
If true, user will be asked to accept overwriting existing project. This is true by default.
Definition at line 339 of file KexiConnSelector.cpp.
◆ setFocus
|
virtualslot |
Definition at line 316 of file KexiConnSelector.cpp.
◆ setSelectedFileName()
| void KexiConnSelectorWidget::setSelectedFileName | ( | const TQString & | fileName | ) |
Sets selected filename to fileName. Only works when selectedConnectionType()==FileBased.
Definition at line 276 of file KexiConnSelector.cpp.
◆ showAdvancedConn
|
slot |
Definition at line 173 of file KexiConnSelector.cpp.
◆ showSimpleConn
|
slot |
Definition at line 217 of file KexiConnSelector.cpp.
◆ slotConnectionItemExecuted
|
protectedslot |
Definition at line 283 of file KexiConnSelector.cpp.
◆ slotConnectionSelectionChanged
|
protectedslot |
Definition at line 288 of file KexiConnSelector.cpp.
◆ slotPrjTypeSelected
|
protectedslot |
Definition at line 180 of file KexiConnSelector.cpp.
◆ slotRemoteAddBtnClicked
|
protectedslot |
- Todo
- msg?
Definition at line 358 of file KexiConnSelector.cpp.
◆ slotRemoteEditBtnClicked
|
protectedslot |
- Todo
- msg?
Definition at line 381 of file KexiConnSelector.cpp.
◆ slotRemoteRemoveBtnClicked
|
protectedslot |
Definition at line 403 of file KexiConnSelector.cpp.
Member Data Documentation
◆ m_fileDlg
| KexiStartupFileDialog* KexiConnSelectorWidget::m_fileDlg |
Definition at line 103 of file KexiConnSelector.h.
◆ m_remote
| KexiConnSelectorBase* KexiConnSelectorWidget::m_remote |
Definition at line 101 of file KexiConnSelector.h.
The documentation for this class was generated from the following files:
