KDevelop API Documentation

NewMainWindow Class Reference

#include <newmainwindow.h>

Inheritance diagram for NewMainWindow:

Inheritance graph
[legend]
Collaboration diagram for NewMainWindow:

Collaboration graph
[legend]
List of all members.

Public Slots

void createGUI (KParts::Part *part)
void raiseEditor ()
void storeOutputViewTab ()
 Store the currently active view tab of the output (bottom) view.
void restoreOutputViewTab ()
 Restore the previously saved view tab to the output (bottom) view.
void projectOpened ()
 Just after the project gets opened.
void setCaption (const QString &)
 called by the part to set the caption

Signals

void currentChanged (QWidget *widget)
void sigCloseWindow (const QWidget *widget)

Public Member Functions

 NewMainWindow (QWidget *parent=0, const char *name=0, KMdi::MdiMode=KMdi::IDEAlMode)
 ~NewMainWindow ()
void embedPartView (QWidget *view, const QString &title, const QString &toolTip)
void embedSelectView (QWidget *view, const QString &title, const QString &toolTip)
void embedSelectViewRight (QWidget *view, const QString &title, const QString &toolTip)
void embedOutputView (QWidget *view, const QString &title, const QString &toolTip)
void embedView (KDockWidget::DockPosition pos, QWidget *view, const QString &name, const QString &toolTip)
void removeView (QWidget *view)
void setViewAvailable (QWidget *pView, bool bEnabled)
void raiseView (QWidget *view)
void lowerView (QWidget *view)
void lowerAllViews ()
void loadSettings ()
void prepareToCloseViews ()
void guiRestoringFinished ()
virtual void childWindowCloseRequest (KMdiChildView *)
 Reimplemented from KMdiChildView to handle save prompt.
KMainWindowmain ()
void init ()
void setUserInterfaceMode (const QString &uiMode)
KMdi::TabWidgetVisibility getTabWidgetVisibility ()

Private Slots

void slotViewActivated (KMdiChildView *child)
void slotCoreInitialized ()
void slotPartURLChanged (KParts::ReadOnlyPart *)
void documentChangedState (const KURL &, DocumentState)
void fillWindowMenu ()
void openURL (int)
void tabMoved (int from, int to)
void tabContext (QWidget *, const QPoint &)
void tabContextActivated (int)

Private Member Functions

KDockWidget::DockPosition recallToolViewPosition (const QString &widgetName, KDockWidget::DockPosition defaultPos)
void rememberToolViewPosition (const QString &widgetName, KDockWidget::DockPosition pos)
virtual bool queryClose ()
virtual bool queryExit ()
void createStatusBar ()
void createFramework ()
void createActions ()
void saveSettings ()
void moveRelativeTab (int)

Private Attributes

QMap< QWidget *, ToolViewDatam_availableToolViews
QMap< QWidget *, ToolViewDatam_unAvailableToolViews
KActionm_raiseEditor
QValueList< QPair< int, KURL > > m_windowList
MainWindowSharem_pMainWindowShare
bool openNewTabAfterCurrent
bool showTabIcons
KURL m_currentTabURL

Constructor & Destructor Documentation

NewMainWindow::NewMainWindow QWidget parent = 0,
const char *  name = 0,
KMdi::MdiMode  = KMdi::IDEAlMode
 

Definition at line 81 of file newmainwindow.cpp.

References m_pMainWindowShare, m_raiseEditor, raiseEditor(), KConfigBase::readNumEntry(), KConfigBase::setGroup(), KMdiMainFrm::setManagedDockPositionModeEnabled(), KMdiMainFrm::setStandardMDIMenuEnabled(), KAction::setToolTip(), KMdiMainFrm::setToolviewStyle(), and KAction::setWhatsThis().

NewMainWindow::~NewMainWindow  ) 
 

Definition at line 306 of file newmainwindow.cpp.

References TopLevel::invalidateInstance().


Member Function Documentation

void NewMainWindow::childWindowCloseRequest KMdiChildView  )  [virtual]
 

Reimplemented from KMdiChildView to handle save prompt.

Reimplemented from KMdiMainFrm.

Definition at line 547 of file newmainwindow.cpp.

References PartController::closePart(), EditorProxy::getInstance(), PartController::getInstance(), KParts::PartManager::parts(), and EditorProxy::topWidgetForPart().

void NewMainWindow::createActions  )  [private]
 

Definition at line 439 of file newmainwindow.cpp.

References KMdiMainFrm::activateFirstWin(), KMdiMainFrm::activateLastWin(), KMdiMainFrm::activateNextWin(), KMdiMainFrm::activatePrevWin(), MainWindowShare::createActions(), and m_pMainWindowShare.

Referenced by init().

void NewMainWindow::createFramework  )  [private]
 

Definition at line 420 of file newmainwindow.cpp.

References createGUI(), PartController::createInstance(), slotViewActivated(), and KMdiMainFrm::viewActivated().

Referenced by init().

void NewMainWindow::createGUI KParts::Part part  )  [slot]
 

Definition at line 661 of file newmainwindow.cpp.

References m_pMainWindowShare, setCaption(), and MainWindowShare::slotGUICreated().

Referenced by createFramework(), and init().

void NewMainWindow::createStatusBar  )  [private]
 

Definition at line 414 of file newmainwindow.cpp.

Referenced by init().

void NewMainWindow::currentChanged QWidget widget  )  [signal]
 

Referenced by slotViewActivated().

void NewMainWindow::documentChangedState const KURL ,
DocumentState 
[private, slot]
 

Definition at line 798 of file newmainwindow.cpp.

References Clean, Dirty, DirtyAndModified, EditorProxy::getInstance(), Modified, partForURL(), KMdiMainFrm::tabWidget(), and EditorProxy::topWidgetForPart().

Referenced by init().

void NewMainWindow::embedOutputView QWidget view,
const QString title,
const QString toolTip
[virtual]
 

Implements KDevMainWindow.

Definition at line 487 of file newmainwindow.cpp.

References embedView().

void NewMainWindow::embedPartView QWidget view,
const QString title,
const QString toolTip
[virtual]
 

Implements KDevMainWindow.

Definition at line 449 of file newmainwindow.cpp.

References KMdiMainFrm::addWindow(), KMdiMainFrm::createWrapper(), and KMdiMainFrm::tabWidget().

void NewMainWindow::embedSelectView QWidget view,
const QString title,
const QString toolTip
[virtual]
 

Implements KDevMainWindow.

Definition at line 475 of file newmainwindow.cpp.

References embedView().

void NewMainWindow::embedSelectViewRight QWidget view,
const QString title,
const QString toolTip
[virtual]
 

Implements KDevMainWindow.

Definition at line 480 of file newmainwindow.cpp.

References embedView(), and raiseView().

void NewMainWindow::embedView KDockWidget::DockPosition  pos,
QWidget view,
const QString name,
const QString toolTip
 

Definition at line 534 of file newmainwindow.cpp.

References KMdiMainFrm::addToolWindow(), m_availableToolViews, m_unAvailableToolViews, and recallToolViewPosition().

Referenced by embedOutputView(), embedSelectView(), and embedSelectViewRight().

void NewMainWindow::fillWindowMenu  )  [private, virtual, slot]
 

Reimplemented from KMdiMainFrm.

Definition at line 334 of file newmainwindow.cpp.

References KParts::PartManager::activeWidget(), KMdiMainFrm::cascadeMaximized(), KMdiMainFrm::cascadeWindows(), KMdiMainFrm::expandHorizontal(), KMdiMainFrm::expandVertical(), PartController::getInstance(), KMdiMainFrm::iconifyAllViews(), m_windowList, PartController::openURLs(), KMdiMainFrm::tileAnodine(), KMdiMainFrm::tilePragma(), and KMdiMainFrm::tileVertically().

Referenced by init().

KMdi::TabWidgetVisibility NewMainWindow::getTabWidgetVisibility  )  [inline]
 

Definition at line 71 of file newmainwindow.h.

References KMdiMainFrm::tabWidgetVisibility().

void NewMainWindow::guiRestoringFinished  )  [virtual]
 

Implements KDevMainWindow.

Definition at line 763 of file newmainwindow.cpp.

void NewMainWindow::init  ) 
 

Definition at line 114 of file newmainwindow.cpp.

References createActions(), createFramework(), createGUI(), createStatusBar(), documentChangedState(), DocumentState, fillWindowMenu(), Core::getInstance(), MainWindowShare::init(), kdDebug(), Core::loadLicenses(), m_pMainWindowShare, main(), openNewTabAfterCurrent, openURL(), PluginController::pluginServices(), KConfigBase::readBoolEntry(), KConfigBase::readNumEntry(), KConfigBase::setGroup(), KTabWidget::setHoverCloseButton(), KTabWidget::setHoverCloseButtonDelayed(), KTabWidget::setTabReorderingEnabled(), KMdiMainFrm::setTabWidgetVisibility(), showTabIcons, slotCoreInitialized(), slotPartURLChanged(), KMessageBox::sorry(), tabContext(), tabMoved(), and KMdiMainFrm::tabWidget().

Referenced by TopLevel::getInstance().

void NewMainWindow::loadSettings  )  [virtual]
 

Implements KDevMainWindow.

Definition at line 670 of file newmainwindow.cpp.

References ProjectManager::getInstance(), and ProjectManager::loadSettings().

Referenced by projectOpened().

void NewMainWindow::lowerAllViews  )  [virtual]
 

Implements KDevMainWindow.

Definition at line 778 of file newmainwindow.cpp.

void NewMainWindow::lowerView QWidget view  )  [virtual]
 

Implements KDevMainWindow.

Definition at line 655 of file newmainwindow.cpp.

KMainWindow * NewMainWindow::main  )  [virtual]
 

Implements KDevMainWindow.

Definition at line 410 of file newmainwindow.cpp.

Referenced by init().

void NewMainWindow::moveRelativeTab int   )  [private]
 

void NewMainWindow::openURL int   )  [private, slot]
 

Definition at line 316 of file newmainwindow.cpp.

References PartController::activatePart(), PartController::getInstance(), m_windowList, and partForURL().

Referenced by init().

void NewMainWindow::prepareToCloseViews  )  [virtual]
 

Implements KDevMainWindow.

Definition at line 758 of file newmainwindow.cpp.

void NewMainWindow::projectOpened  )  [slot]
 

Just after the project gets opened.

Definition at line 752 of file newmainwindow.cpp.

References loadSettings().

bool NewMainWindow::queryClose  )  [private, virtual]
 

Definition at line 398 of file newmainwindow.cpp.

References Core::getInstance(), Core::queryClose(), and saveSettings().

bool NewMainWindow::queryExit  )  [private, virtual]
 

Definition at line 405 of file newmainwindow.cpp.

void NewMainWindow::raiseEditor  )  [slot]
 

Definition at line 719 of file newmainwindow.cpp.

References KParts::PartManager::activePart(), API::getInstance(), k_funcinfo, kdDebug(), and API::partController().

Referenced by NewMainWindow().

void NewMainWindow::raiseView QWidget view  )  [virtual]
 

Implements KDevMainWindow.

Definition at line 639 of file newmainwindow.cpp.

References k_funcinfo, and kdDebug().

Referenced by embedSelectViewRight().

KDockWidget::DockPosition NewMainWindow::recallToolViewPosition const QString widgetName,
KDockWidget::DockPosition  defaultPos
[private]
 

Definition at line 492 of file newmainwindow.cpp.

References KConfigBase::readEntry(), and KConfigBase::setGroup().

Referenced by embedView().

void NewMainWindow::rememberToolViewPosition const QString widgetName,
KDockWidget::DockPosition  pos
[private]
 

Definition at line 507 of file newmainwindow.cpp.

References KConfigBase::setGroup(), and KConfigBase::writeEntry().

Referenced by removeView(), and saveSettings().

void NewMainWindow::removeView QWidget view  )  [virtual]
 

Implements KDevMainWindow.

Definition at line 582 of file newmainwindow.cpp.

References KMdiMainFrm::closeWindow(), KMdiMainFrm::deleteToolWindow(), getDockWidgetDockingBorder(), k_funcinfo, kdDebug(), and rememberToolViewPosition().

Referenced by setViewAvailable().

void NewMainWindow::restoreOutputViewTab  )  [virtual, slot]
 

Restore the previously saved view tab to the output (bottom) view.

Implements KDevMainWindow.

Definition at line 773 of file newmainwindow.cpp.

void NewMainWindow::saveSettings  )  [private]
 

Definition at line 696 of file newmainwindow.cpp.

References KInstance::aboutData(), KAboutData::appName(), getDockWidgetDockingBorder(), ProjectManager::getInstance(), KGlobal::instance(), rememberToolViewPosition(), and ProjectManager::saveSettings().

Referenced by queryClose().

void NewMainWindow::setCaption const QString  )  [slot]
 

called by the part to set the caption

Definition at line 730 of file newmainwindow.cpp.

References API::getInstance(), KDevApi::project(), and KDevProject::projectName().

Referenced by createGUI().

void NewMainWindow::setUserInterfaceMode const QString uiMode  )  [virtual]
 

Reimplemented from KDevMainWindow.

Definition at line 677 of file newmainwindow.cpp.

void NewMainWindow::setViewAvailable QWidget pView,
bool  bEnabled
[virtual]
 

Implements KDevMainWindow.

Definition at line 604 of file newmainwindow.cpp.

References KMdiMainFrm::addToolWindow(), getDockWidgetDockingBorder(), m_availableToolViews, m_unAvailableToolViews, NewMainWindow::ToolViewData::name, NewMainWindow::ToolViewData::position, removeView(), and NewMainWindow::ToolViewData::toolTip.

void NewMainWindow::sigCloseWindow const QWidget widget  )  [signal]
 

void NewMainWindow::slotCoreInitialized  )  [private, slot]
 

Definition at line 311 of file newmainwindow.cpp.

Referenced by init().

void NewMainWindow::slotPartURLChanged KParts::ReadOnlyPart  )  [private, slot]
 

Definition at line 783 of file newmainwindow.cpp.

References KURL::fileName(), EditorProxy::getInstance(), k_funcinfo, kdDebug(), KMdiChildView::setMDICaption(), EditorProxy::topWidgetForPart(), and KParts::ReadOnlyPart::url().

Referenced by init().

void NewMainWindow::slotViewActivated KMdiChildView child  )  [private, slot]
 

Definition at line 430 of file newmainwindow.cpp.

References currentChanged(), KMdiChildView::focusedChildWidget(), and kdDebug().

Referenced by createFramework().

void NewMainWindow::storeOutputViewTab  )  [virtual, slot]
 

Store the currently active view tab of the output (bottom) view.

Implements KDevMainWindow.

Definition at line 768 of file newmainwindow.cpp.

void NewMainWindow::tabContext QWidget ,
const QPoint
[private, slot]
 

Definition at line 216 of file newmainwindow.cpp.

References Core::fillContextMenu(), Core::getInstance(), PartController::getInstance(), EditorProxy::getInstance(), KPopupMenu::insertTitle(), KParts::ReadWritePart::isModified(), m_currentTabURL, KParts::PartManager::parts(), tabContextActivated(), EditorProxy::topWidgetForPart(), and KParts::ReadOnlyPart::url().

Referenced by init().

void NewMainWindow::tabContextActivated int   )  [private, slot]
 

Definition at line 278 of file newmainwindow.cpp.

References PartController::closeAllOthers(), PartController::closeFile(), PartController::getInstance(), KURL::isEmpty(), m_currentTabURL, PartController::reloadFile(), PartController::saveFile(), and PartController::showDocument().

Referenced by tabContext().

void NewMainWindow::tabMoved int  from,
int  to
[private, slot]
 

Definition at line 835 of file newmainwindow.cpp.

Referenced by init().


Member Data Documentation

QMap<QWidget*,ToolViewData> NewMainWindow::m_availableToolViews [private]
 

Definition at line 122 of file newmainwindow.h.

Referenced by embedView(), and setViewAvailable().

KURL NewMainWindow::m_currentTabURL [private]
 

Definition at line 144 of file newmainwindow.h.

Referenced by tabContext(), and tabContextActivated().

MainWindowShare* NewMainWindow::m_pMainWindowShare [private]
 

Definition at line 139 of file newmainwindow.h.

Referenced by createActions(), createGUI(), init(), and NewMainWindow().

KAction* NewMainWindow::m_raiseEditor [private]
 

Definition at line 136 of file newmainwindow.h.

Referenced by NewMainWindow().

QMap<QWidget*,ToolViewData> NewMainWindow::m_unAvailableToolViews [private]
 

Definition at line 123 of file newmainwindow.h.

Referenced by embedView(), and setViewAvailable().

QValueList< QPair< int, KURL > > NewMainWindow::m_windowList [private]
 

Definition at line 138 of file newmainwindow.h.

Referenced by fillWindowMenu(), and openURL().

bool NewMainWindow::openNewTabAfterCurrent [private]
 

Definition at line 141 of file newmainwindow.h.

Referenced by init().

bool NewMainWindow::showTabIcons [private]
 

Definition at line 142 of file newmainwindow.h.

Referenced by init().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:27:12 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003