• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • KDevelop Generic Shell
 

KDevelop Generic Shell

  • src
simplemainwindow.h
1/***************************************************************************
2 * Copyright (C) 2005 by Alexander Dymo *
3 * adymo@kdevelop.org *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU Library General Public License as *
7 * published by the Free Software Foundation; either version 2 of the *
8 * License, or (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU Library General Public *
16 * License along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19 ***************************************************************************/
20#ifndef SIMPLEMAINWINDOW_H
21#define SIMPLEMAINWINDOW_H
22
23#include <dmainwindow.h>
24#include <kdevplugin.h>
25#include <kdevmainwindow.h>
26#include <kdevpartcontroller.h>
27
28class TDEAction;
29class TQPopupMenu;
30class MainWindowShare;
31class Context;
32
33namespace KParts {
34 class ReadOnlyPart;
35}
36
37class SimpleMainWindow: public DMainWindow, public KDevMainWindow {
38 TQ_OBJECT
39
40public:
41 SimpleMainWindow(TQWidget* parent = 0, const char *name = 0);
42 virtual ~SimpleMainWindow();
43
44 virtual void embedPartView(TQWidget *view, const TQString &title, const TQString& toolTip = TQString());
45 virtual void embedSelectView(TQWidget *view, const TQString &title, const TQString &toolTip);
46 virtual void embedOutputView(TQWidget *view, const TQString &title, const TQString &toolTip);
47 virtual void embedSelectViewRight(TQWidget* view, const TQString& title, const TQString &toolTip);
48
49 virtual void removeView(TQWidget *view);
50 virtual void setViewAvailable(TQWidget *pView, bool bEnabled);
51 virtual void raiseView(TQWidget *view);
52 virtual void lowerView(TQWidget *view);
53
54 virtual void loadSettings();
55 virtual void saveSettings();
56 virtual void setCurrentDocumentCaption( const TQString &caption );
57
58 virtual TDEMainWindow *main();
59
60 void init();
61
62public slots:
63 void slotDropEvent( TQDropEvent *event );
64 void setCaption(const TQString &);
65
66protected:
67 virtual bool queryClose();
68 virtual bool queryExit();
69
70protected slots:
71 virtual void closeTab();
72 virtual void closeTab(TQWidget *w);
73 virtual void tabContext(TQWidget *w, const TQPoint &p);
74 void contextMenu(TQPopupMenu *popupMenu, const Context *context);
75
76private slots:
77 void gotoNextWindow();
78 void gotoPreviousWindow();
79 void gotoFirstWindow();
80 void gotoLastWindow();
81 void switchToNextTabWidget();
82 void slotCoreInitialized();
83 void projectOpened();
84 void projectClosed();
85 void slotPartURLChanged(KParts::ReadOnlyPart *part);
86 void activePartChanged(KParts::Part *part);
87 void documentChangedState(const KURL &url, DocumentState state);
88 void tabContextActivated(int);
89 void configureToolbars();
90 void slotNewToolbarConfig();
91 void raiseEditor();
92 void openURL(int w);
93 void fillWindowMenu();
94 void slotSplitVertical();
95 void slotSplitHorizontal();
96 void slotSplitVerticalBase();
97 void slotSplitHorizontalBase();
98 void createGUI(KParts::Part *part);
99 void raiseBottomDock();
100 void raiseLeftDock();
101 void raiseRightDock();
102 void raiseDock(DDockWindow *dock);
103 void lowerAllDocks();
104 void slotProgrammingHandbook();
105
106private:
107 void createFramework();
108 void createActions();
109 void setupWindowMenu();
110 void dragEnterEvent( TQDragEnterEvent *event );
111 void dropEvent( TQDropEvent *event );
112 void openDocumentsAfterSplit(DTabWidget *tab);
113 TQWidget *widgetForURL(KURL url);
114 TQWidget *widgetInTab(TQWidget *w);
115 KParts::ReadOnlyPart *activePartForSplitting();
116 void embedView( DDockWindow::Position position, TQWidget *view, const TQString & title );
117 DDockWindow::Position recallToolViewPosition( const TQString & name, DDockWindow::Position defaultPos );
118 void rememberToolViewPosition( const TQString & name, DDockWindow::Position pos );
119
120 MainWindowShare *m_mainWindowShare;
121
122 KURL m_currentTabURL;
123 TDEAction *m_raiseEditor;
124 TDEAction *m_lowerAllDocks;
125 TDEAction *m_splitHor;
126 TDEAction *m_splitVer;
127 TDEAction *m_splitHor1;
128 TDEAction *m_splitVer1;
129 TDEAction *m_splitHor2;
130 TDEAction *m_splitVer2;
131 TDEAction *m_raiseBottomDock;
132 TDEAction *m_raiseLeftDock;
133 TDEAction *m_raiseRightDock;
134 TQPopupMenu *m_windowMenu;
135 TQValueList<TQPair<int, KURL> > m_windowList;
136
137 KURL::List m_splitURLs;
138};
139#endif
MainWindowShare
Shared main window functionality.
Definition mainwindowshare.h:31

KDevelop Generic Shell

Skip menu "KDevelop Generic Shell"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

KDevelop Generic Shell

Skip menu "KDevelop Generic Shell"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for KDevelop Generic Shell by doxygen 1.9.8
This website is maintained by Timothy Pearson.