Logo Search packages:      
Sourcecode: ktechlab version File versions

KTechlab Class Reference

#include <ktechlab.h>

Inheritance diagram for KTechlab:

List of all members.

Detailed Description

Main window class.

This class serves as the main window for KTechlab. It handles the menus, toolbars, status bars, loading/saving files, config, etc.

David Saxton

Definition at line 51 of file ktechlab.h.

Public Slots

void addRecentFile (const KURL &url)
void load (const KURL &url, ViewArea *viewArea=0l)
void slotChangeStatusbar (const QString &text)
void slotDocModifiedChanged ()
void slotDocUndoRedoChanged ()
void slotFileNew ()
void slotFileNewAssembly ()
void slotFileNewC ()
void slotFileNewCircuit ()
void slotFileNewFlowCode ()
void slotFileNewMechanics ()
void slotFileNewMicrobe ()
void slotFileOpen ()
void slotFilePrint ()
void slotFileQuit ()
void slotFileSave ()
void slotFileSaveAs ()
void slotTabContext (QWidget *widget, const QPoint &pos)
void slotTabContextActivated (int id)
void slotUpdateConfiguration ()


void configurationChanged ()
void needUpdateCaptions ()
void recentFileAdded (const KURL &url)

Public Member Functions

KAction * action (const QString &name) const
void addNoRemoveGUIClient (KXMLGUIClient *client)
void addWindow (ViewContainer *vc)
QWidget * centralWidget () const
ToolView * createToolView (const QString &identifier, KMultiTabBar::KMultiTabBarPosition pos, const QPixmap &icon, const QString &text)
void finishRestore ()
bool hideToolView (ToolView *widget)
QFont itemFont () const
bool moveToolView (ToolView *widget, KMultiTabBar::KMultiTabBarPosition pos)
void openFile (ViewArea *viewArea)
void overlayToolBarScreenshot ()
QStringList recentFiles ()
void removeGUIClients ()
void requestUpdateCaptions ()
void saveSession (KConfig *config, const QString &group)
void setToolViewStyle (KMultiTabBar::KMultiTabBarStyle style)
virtual void show ()
bool showToolView (ToolView *widget)
void startRestore (KConfig *config, const QString &group)
KTabWidget * tabWidget () const
ToolView * toolView (const QString &identifier) const
KMultiTabBar::KMultiTabBarStyle toolViewStyle () const
void updateSidebarMinimumSizes ()

Static Public Member Functions

static KURL::List getFileURLs (bool allowMultiple=true)
static KTechlabself ()

Protected Slots

void slotUpdateCaptions ()
void slotUpdateTabWidget ()
void slotViewContainerActivated (QWidget *viewContainer)

Protected Member Functions

virtual void dragEnterEvent (QDragEnterEvent *event)
virtual void dropEvent (QDropEvent *event)
virtual bool queryClose ()
void readProperties (KConfig *)
void saveProperties (KConfig *)
void toolViewDeleted (ToolView *widget)

Private Slots

void hideToolBarOverlay ()
void openExample (int id)
void slotEditCopy ()
void slotEditCut ()
void slotEditPaste ()
void slotEditRedo ()
void slotEditUndo ()
void slotOptionsConfigureKeys ()
void slotOptionsConfigureToolbars ()
void slotOptionsPreferences ()
void slotOptionsShowStatusbar ()
void slotViewClose ()
void slotViewContainerClose ()
void slotViewContainerDestroyed (QObject *obj)
void slotViewSplitLeftRight ()
void slotViewSplitTopBottom ()

Private Member Functions

void setupActions ()
void setupExampleActions ()
void setupTabWidget ()
void setupToolDocks ()
void setupView ()

Private Attributes

bool m_bIsShown
IntStringMap m_exampleFiles
QFont m_itemFont
QString m_lastStatusBarMessage
QValueList< KXMLGUIClient * > m_noRemoveGUIClients
QGuardedPtr< ViewContainerm_pContainerDropReceived
QGuardedPtr< ViewContainerm_pContainerDropSource
QGuardedPtr< ViewContainerm_pContextMenuContainer
QGuardedPtr< ViewContainerm_pFocusedContainer
QLabel * m_pToolBarOverlayLabel
QTimer * m_pUpdateCaptionsTimer
KTabWidget * m_pViewContainerTabWidget
KToggleAction * m_statusbarAction
ViewContainerList m_viewContainerList

Static Private Attributes

static KTechlabm_pSelf = 0l

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index