Kexi API Documentation (2.0 alpha)

kexi.h File Reference

#include <qguardedptr.h>
#include <qfont.h>
#include <kexi_version.h>
#include "kexiprojectdata.h"
#include "kexipartmanager.h"
#include "kexidbconnectionset.h"
#include "kexiprojectset.h"
#include <kexidb/drivermanager.h>
#include <kexidb/driver.h>
#include <klocale.h>
#include <kmessagebox.h>

Go to the source code of this file.

Namespaces

namespace  Kexi

Defines

#define KEXI_UNFINISHED_SHARED_ACTION(action_name)   KEXI_UNFINISHED(sharedAction(action_name) ? sharedAction(action_name)->text() : QString::null)
 Like above - for use inside KexiActionProxy subclass - reuses feature name from shared action's text.

Enumerations

enum  ViewMode {
  AllViewModes = 0, NoViewMode = 0, DataViewMode = 1, DesignViewMode = 2,
  TextViewMode = 4
}

Functions

KEXICORE_EXPORT void initCmdLineArgs (int argc, char *argv[], KAboutData *aboutData=0)
KEXICORE_EXPORT QString nameForViewMode (int m)
 i18n'ed name of view mode m
KEXICORE_EXPORT KexiDBConnectionSetconnset ()
 A set of known connections.
KEXICORE_EXPORT KexiProjectSetrecentProjects ()
 A set avaiulable of project infos.
KEXICORE_EXPORT KexiDB::DriverManagerdriverManager ()
 shared driver manager
KEXICORE_EXPORT KexiPart::ManagerpartManager ()
 shared part manager
KEXICORE_EXPORT void deleteGlobalObjects ()
 can be called to delete global objects like driverManager and partManager (and thus, all loaded factories/plugins) before KLibrary::~KLibrary() do this for us
KEXICORE_EXPORT bool & tempShowForms ()
 false by default, flag loaded on main window startup
KEXICORE_EXPORT bool & tempShowReports ()
 false by default, flag loaded on main window startup
KEXICORE_EXPORT bool & tempShowMacros ()
 false by default, flag loaded on main window startup
KEXICORE_EXPORT bool & tempShowScripts ()
 false by default, flag loaded on main window startup
KEXICORE_EXPORT QFont smallFont (QWidget *init=0)
KEXICORE_EXPORT QString msgYouCanImproveData ()
KEXICORE_EXPORT void KEXI_UNFINISHED (const QString &feature_name, const QString &extra_text=QString::null)
 Displays information that feature "feature_name" is not availabe in the current application version.


Define Documentation

#define KEXI_UNFINISHED_SHARED_ACTION action_name   )     KEXI_UNFINISHED(sharedAction(action_name) ? sharedAction(action_name)->text() : QString::null)
 

Like above - for use inside KexiActionProxy subclass - reuses feature name from shared action's text.

Definition at line 144 of file kexi.h.


Enumeration Type Documentation

enum Kexi::ViewMode
 

Modes of view for the dialogs. Used mostly for parts and KexiDialogBase.

Enumeration values:
AllViewModes  Usable primarily in KexiPart::initInstanceActions().
NoViewMode  In KexiViewBase::afterSwitchFrom() and KexiViewBase::beforeSwitchTo() means that parent dialog of the view has not yet view defined.
DataViewMode 
DesignViewMode 
TextViewMode  Also known as SQL View Mode.

Definition at line 42 of file kexi.h.


Function Documentation

KEXICORE_EXPORT KexiDBConnectionSet& Kexi::connset  ) 
 

A set of known connections.

Referenced by KexiMainWindowImpl::createBlankProjectData(), KexiStartupHandler::init(), KexiMainWindowImpl::openProject(), KexiMainWindowImpl::openProjectInExternalKexiInstance(), KexiMainWindowImpl::slotProjectOpen(), and KexiMainWindowImpl::slotToolsCompactDatabase().

KEXICORE_EXPORT void Kexi::deleteGlobalObjects  ) 
 

can be called to delete global objects like driverManager and partManager (and thus, all loaded factories/plugins) before KLibrary::~KLibrary() do this for us

KEXICORE_EXPORT KexiDB::DriverManager& Kexi::driverManager  ) 
 

shared driver manager

Referenced by KexiProject::createConnection(), KexiStartupHandler::detectActionForFile(), KexiDBConnectionWidget::KexiDBConnectionWidget(), KexiProjectSet::KexiProjectSet(), and KexiMainWindowImpl::slotToolsCompactDatabase().

KEXICORE_EXPORT void Kexi::initCmdLineArgs int  argc,
char *  argv[],
KAboutData *  aboutData = 0
 

Referenced by KexiMainWindowImpl::create().

KEXICORE_EXPORT void KEXI_UNFINISHED const QString feature_name,
const QString extra_text = QString::null
 

Displays information that feature "feature_name" is not availabe in the current application version.

Definition at line 328 of file kexi.cpp.

References KEXI_APP_NAME, and KEXI_VERSION_STRING.

Referenced by KexiMainWindowImpl::slotImportFile(), KexiMainWindowImpl::slotImportServer(), KexiMainWindowImpl::slotProjectOpenRecentMore(), KexiMainWindowImpl::slotProjectSaveAs(), and KexiMainWindowImpl::slotShowSettings().

KEXICORE_EXPORT QString Kexi::msgYouCanImproveData  ) 
 

Referenced by KexiDataAwareObjectInterface::acceptEditor(), and KexiTableViewData::saveRow().

KEXICORE_EXPORT QString Kexi::nameForViewMode int  m  ) 
 

i18n'ed name of view mode m

Referenced by KexiPart::Part::createGUIClients(), KexiMainWindowImpl::openObject(), KexiMainWindowImpl::switchToViewMode(), and KexiDialogBase::switchToViewMode().

KEXICORE_EXPORT KexiPart::Manager& Kexi::partManager  ) 
 

shared part manager

Referenced by KexiCSVImportDialog::accept(), KexiFormEventAction::activate(), KexiMacro::ExecuteAction::activate(), KexiMacro::DataTableAction::activate(), KexiProject::createPartItem(), KexiActionSelectionDialog::currentAction(), KexiFormEventAction::ActionData::decodeString(), KexiUserAction::execute(), KexiMainWindowImpl::executeItem(), KexiProject::findPartFor(), KexiProject::getSortedItemsForMimeType(), KexiProject::initProject(), KexiMainWindowImpl::initUserMode(), KexiProject::itemsForMimeType(), KexiActionSelectionDialog::KexiActionSelectionDialog(), KexiCSVExportWizard::KexiCSVExportWizard(), KexiMainWindowImpl::KexiMainWindowImpl(), KexiProject::KexiProject(), KexiMainWindowImpl::newObject(), KexiMacro::ObjectNameVariable< ACTIONIMPL >::ObjectNameVariable(), KexiMacro::ObjectVariable< ACTIONIMPL >::ObjectVariable(), KexiMainWindowImpl::openingAllowed(), KexiMainWindowImpl::openObject(), KexiMainWindowImpl::openObjectFromNavigator(), KexiMainWindowImpl::printActionForItem(), KexiMainWindowImpl::removeObject(), KexiDataSourceComboBox::setProject(), KexiBrowser::setProject(), KexiMainWindowImpl::slotAutoOpenObjectsLater(), KexiBrowser::slotContextMenu(), KexiBrowser::slotNewObjectPopupAboutToShow(), KexiBrowser::slotSelectionChanged(), KexiPart::StaticPart::StaticPart(), and KexiMainWindowImpl::updateReadOnlyState().

KEXICORE_EXPORT KexiProjectSet& Kexi::recentProjects  ) 
 

A set avaiulable of project infos.

Referenced by KexiMainWindowImpl::createBlankProject(), KexiStartupHandler::init(), KexiMainWindowImpl::openProject(), KexiMainWindowImpl::slotProjectOpen(), and KexiMainWindowImpl::slotToolsCompactDatabase().

KEXICORE_EXPORT QFont Kexi::smallFont QWidget init = 0  ) 
 

A global setting for minimal readable font. Note: this is defined because KDE has no such setting yet. init is a widget that should be passed if no qApp->mainWidget() is available yet.

Referenced by KexiRelationViewConnection::drawConnection(), KexiSmallToolButton::init(), KexiMainWindowImpl::initPropertyEditor(), and KexiMainWindowImpl::KexiMainWindowImpl().

KEXICORE_EXPORT bool& Kexi::tempShowForms  ) 
 

false by default, flag loaded on main window startup

Referenced by KexiPart::Manager::lookup(), and KexiMainWindowImpl::slotOptionsEnableForms().

KEXICORE_EXPORT bool& Kexi::tempShowMacros  ) 
 

false by default, flag loaded on main window startup

Referenced by KexiMainWindowImpl::initActions(), and KexiPart::Manager::lookup().

KEXICORE_EXPORT bool& Kexi::tempShowReports  ) 
 

false by default, flag loaded on main window startup

Referenced by KexiMainWindowImpl::initActions(), and KexiPart::Manager::lookup().

KEXICORE_EXPORT bool& Kexi::tempShowScripts  ) 
 

false by default, flag loaded on main window startup

Referenced by KexiMainWindowImpl::initActions(), and KexiPart::Manager::lookup().

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:49:02 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003