kexi
KexiProjectSelectorWidget Class Reference
#include <KexiProjectSelector.h>
Detailed Description
Widget that allows to select a kexi project (or database)
Definition at line 34 of file KexiProjectSelector.h.
Signals | |
void | projectExecuted (KexiProjectData *) |
void | selectionChanged (KexiProjectData *) |
Public Member Functions | |
KexiProjectSelectorWidget (QWidget *parent=0, const char *name=0, KexiProjectSet *prj_set=0, bool showProjectNameColumn=true, bool showConnectionColumns=true) | |
~KexiProjectSelectorWidget () | |
KexiProjectData * | selectedProjectData () const |
void | setProjectSet (KexiProjectSet *prj_set) |
KexiProjectSet * | projectSet () |
void | setSelectable (bool set) |
bool | isSelectable () const |
Protected Slots | |
void | slotItemExecuted (QListViewItem *) |
void | slotItemSelected () |
virtual void | languageChange () |
Protected Attributes | |
KexiProjectSet * | m_prj_set |
KexiProjectSelectorWidgetPrivate * | d |
Friends | |
class | ProjectDataLVItem |
Constructor & Destructor Documentation
KexiProjectSelectorWidget::KexiProjectSelectorWidget | ( | QWidget * | parent = 0 , |
|
const char * | name = 0 , |
|||
KexiProjectSet * | prj_set = 0 , |
|||
bool | showProjectNameColumn = true , |
|||
bool | showConnectionColumns = true | |||
) |
Constructs a project selector widget. If showProjectNameColumn is true (the default) project names' column is visible. If showConnectionColumns is true (the default) information about database driver and connection columns are added. prj_set may be NULL - you can assign a set later with setProjectSet().
Definition at line 97 of file KexiProjectSelector.cpp.
KexiProjectSelectorWidget::~KexiProjectSelectorWidget | ( | ) |
Destroys the object and frees any allocated resources
Definition at line 132 of file KexiProjectSelector.cpp.
Member Function Documentation
KexiProjectData * KexiProjectSelectorWidget::selectedProjectData | ( | ) | const |
- Returns:
- data of selected project. Returns NULL if no selection has been made.
Definition at line 137 of file KexiProjectSelector.cpp.
void KexiProjectSelectorWidget::setProjectSet | ( | KexiProjectSet * | prj_set | ) |
Assigns a new project set prj_set. Old project set is not destoyed
- it is just left unassigned. If new project set is in error state (Object::error() == true), nothing is displayed.
Definition at line 162 of file KexiProjectSelector.cpp.
KexiProjectSet* KexiProjectSelectorWidget::projectSet | ( | ) | [inline] |
- Returns:
- currently assigned project set or NULL if no project set is assigned.
Definition at line 63 of file KexiProjectSelector.h.
void KexiProjectSelectorWidget::setSelectable | ( | bool | set | ) |
Sets selectable state on or off. In this state one project item can be selected and executed by mouse double clicking or return key pressing. The property is true by default.
Definition at line 201 of file KexiProjectSelector.cpp.
bool KexiProjectSelectorWidget::isSelectable | ( | ) | const |
- Returns:
- if a witget has selectable state set.
Definition at line 213 of file KexiProjectSelector.cpp.
The documentation for this class was generated from the following files: