Kexi API Documentation (2.0 alpha)

KexiNewProjectWizard Class Reference

#include <KexiNewProjectWizard.h>

Inheritance diagram for KexiNewProjectWizard:

KWizard List of all members.

Public Member Functions

 KexiNewProjectWizard (KexiDBConnectionSet &conn_set, QWidget *parent=0, const char *name=0, bool modal=false, WFlags f=0)
 ~KexiNewProjectWizard ()
QString projectDBName () const
QString projectCaption () const
KexiDB::ConnectionDataprojectConnectionData () const
virtual void show ()
void setConfirmOverwrites (bool set)

Protected Slots

void slotLvTypesSelected (QListViewItem *)
void slotLvTypesExecuted (QListViewItem *)
void slotServerDBCaptionTxtChanged (const QString &capt)
void slotServerDBNameTxtChanged (const QString &n)
virtual void done (int r)
virtual void next ()
virtual void accept ()

Protected Member Functions

virtual void showPage (QWidget *page)

Protected Attributes

KexiNewPrjTypeSelector * m_prjtype_sel
KexiDBTitlePagem_db_title
KexiServerDBNamePage * m_server_db_name
KexiProjectSelectorWidgetm_project_selector
KexiConnSelectorWidgetm_conn_sel
QWidgetm_conn_sel_widget
KexiNewProjectWizardPrivate * d

Constructor & Destructor Documentation

KexiNewProjectWizard::KexiNewProjectWizard KexiDBConnectionSet conn_set,
QWidget parent = 0,
const char *  name = 0,
bool  modal = false,
WFlags  f = 0
 

Definition at line 86 of file KexiNewProjectWizard.cpp.

References accept(), d, KexiDB::Driver::defaultFileBasedDriverMimeType(), GLUE_WIDGET, KexiConnSelectorWidget::hideHelpers(), m_conn_sel, m_conn_sel_widget, m_db_title, KexiConnSelectorWidget::m_fileDlg, m_prjtype_sel, m_project_selector, KexiConnSelectorWidget::m_remote, m_server_db_name, next(), KexiStartupFileDialog::SavingFileBasedDB, KexiStartupFileDialog::setMode(), KexiProjectSelectorWidget::setSelectable(), KexiConnSelectorWidget::showAdvancedConn(), KexiConnSelectorWidget::showSimpleConn(), slotLvTypesExecuted(), slotLvTypesSelected(), slotServerDBCaptionTxtChanged(), and slotServerDBNameTxtChanged().

KexiNewProjectWizard::~KexiNewProjectWizard  ) 
 

Definition at line 209 of file KexiNewProjectWizard.cpp.

References d.


Member Function Documentation

void KexiNewProjectWizard::accept  )  [protected, virtual, slot]
 

Definition at line 312 of file KexiNewProjectWizard.cpp.

References KexiStartupFileDialog::checkFileName(), KexiConnSelectorWidget::confirmOverwrites(), d, m_conn_sel, KexiConnSelectorWidget::m_fileDlg, m_prjtype_sel, m_project_selector, m_server_db_name, and KexiProjectSelectorWidget::projectSet().

Referenced by KexiNewProjectWizard().

void KexiNewProjectWizard::done int  r  )  [protected, virtual, slot]
 

Definition at line 357 of file KexiNewProjectWizard.cpp.

void KexiNewProjectWizard::next  )  [protected, virtual, slot]
 

Definition at line 283 of file KexiNewProjectWizard.cpp.

References d, m_conn_sel, m_conn_sel_widget, m_db_title, m_prjtype_sel, m_project_selector, m_server_db_name, and KexiConnSelectorWidget::selectedConnectionData().

Referenced by KexiNewProjectWizard(), and slotLvTypesExecuted().

QString KexiNewProjectWizard::projectCaption  )  const
 

Returns:
name for a new project. Used for both file- and serever- based projects.

Definition at line 379 of file KexiNewProjectWizard.cpp.

References d, m_db_title, m_prjtype_sel, and m_server_db_name.

Referenced by KexiMainWindowImpl::createBlankProjectData().

KexiDB::ConnectionData * KexiNewProjectWizard::projectConnectionData  )  const
 

Returns:
data of selected connection for new project, if server-based project type was selected. Returns NULL if no selection has been made or file-based project has been selected.

Definition at line 387 of file KexiNewProjectWizard.cpp.

References d, m_conn_sel, m_prjtype_sel, and KexiConnSelectorWidget::selectedConnectionData().

Referenced by KexiMainWindowImpl::createBlankProjectData().

QString KexiNewProjectWizard::projectDBName  )  const
 

Returns:
name for a new project's database if server-based project type was selected. Returns file name if file-based project was selected.

Definition at line 372 of file KexiNewProjectWizard.cpp.

References d, m_conn_sel, m_prjtype_sel, m_server_db_name, and KexiConnSelectorWidget::selectedFileName().

Referenced by KexiMainWindowImpl::createBlankProjectData().

void KexiNewProjectWizard::setConfirmOverwrites bool  set  ) 
 

If true, user will be asked to accept overwriting existing project. This is true by default.

Definition at line 415 of file KexiNewProjectWizard.cpp.

References m_conn_sel, and KexiConnSelectorWidget::setConfirmOverwrites().

Referenced by KexiMainWindowImpl::createBlankProjectData().

void KexiNewProjectWizard::show  )  [virtual]
 

Reimplemented for internal reasons

Definition at line 214 of file KexiNewProjectWizard.cpp.

void KexiNewProjectWizard::showPage QWidget page  )  [protected, virtual]
 

Definition at line 237 of file KexiNewProjectWizard.cpp.

References d, m_conn_sel, m_conn_sel_widget, m_db_title, KexiConnSelectorWidget::m_fileDlg, m_prjtype_sel, m_project_selector, m_server_db_name, KexiConnSelectorWidget::selectedConnectionData(), KexiConnSelectorWidget::setFocus(), KexiStartupFileDialog::setLocationText(), KexiProjectSelectorWidget::setProjectSet(), KexiConnSelectorWidget::showAdvancedConn(), KexiConnSelectorWidget::showSimpleConn(), and KexiUtils::string2FileName().

void KexiNewProjectWizard::slotLvTypesExecuted QListViewItem  )  [protected, slot]
 

Definition at line 220 of file KexiNewProjectWizard.cpp.

References next().

Referenced by KexiNewProjectWizard().

void KexiNewProjectWizard::slotLvTypesSelected QListViewItem  )  [protected, slot]
 

Definition at line 225 of file KexiNewProjectWizard.cpp.

References d, m_db_title, and m_server_db_name.

Referenced by KexiNewProjectWizard().

void KexiNewProjectWizard::slotServerDBCaptionTxtChanged const QString capt  )  [protected, slot]
 

Definition at line 394 of file KexiNewProjectWizard.cpp.

References d, m_server_db_name, and KexiUtils::string2Identifier().

Referenced by KexiNewProjectWizard().

void KexiNewProjectWizard::slotServerDBNameTxtChanged const QString n  )  [protected, slot]
 

Definition at line 406 of file KexiNewProjectWizard.cpp.

References d.

Referenced by KexiNewProjectWizard().


Member Data Documentation

KexiNewProjectWizardPrivate* KexiNewProjectWizard::d [protected]
 

Definition at line 86 of file KexiNewProjectWizard.h.

Referenced by accept(), KexiNewProjectWizard(), next(), projectCaption(), projectConnectionData(), projectDBName(), showPage(), slotLvTypesSelected(), slotServerDBCaptionTxtChanged(), slotServerDBNameTxtChanged(), and ~KexiNewProjectWizard().

KexiConnSelectorWidget* KexiNewProjectWizard::m_conn_sel [protected]
 

Definition at line 83 of file KexiNewProjectWizard.h.

Referenced by accept(), KexiNewProjectWizard(), next(), projectConnectionData(), projectDBName(), setConfirmOverwrites(), and showPage().

QWidget* KexiNewProjectWizard::m_conn_sel_widget [protected]
 

Definition at line 84 of file KexiNewProjectWizard.h.

Referenced by KexiNewProjectWizard(), next(), and showPage().

KexiDBTitlePage* KexiNewProjectWizard::m_db_title [protected]
 

Definition at line 79 of file KexiNewProjectWizard.h.

Referenced by KexiNewProjectWizard(), next(), projectCaption(), showPage(), and slotLvTypesSelected().

KexiNewPrjTypeSelector* KexiNewProjectWizard::m_prjtype_sel [protected]
 

Definition at line 78 of file KexiNewProjectWizard.h.

Referenced by accept(), KexiNewProjectWizard(), next(), projectCaption(), projectConnectionData(), projectDBName(), and showPage().

KexiProjectSelectorWidget* KexiNewProjectWizard::m_project_selector [protected]
 

Definition at line 81 of file KexiNewProjectWizard.h.

Referenced by accept(), KexiNewProjectWizard(), next(), and showPage().

KexiServerDBNamePage* KexiNewProjectWizard::m_server_db_name [protected]
 

Definition at line 80 of file KexiNewProjectWizard.h.

Referenced by accept(), KexiNewProjectWizard(), next(), projectCaption(), projectDBName(), showPage(), slotLvTypesSelected(), and slotServerDBCaptionTxtChanged().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:50:13 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003