~ubuntu-branches/ubuntu/quantal/kate/quantal-proposed

« back to all changes in this revision

Viewing changes to kate/app/katemdi.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-14 13:28:06 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: package-import@ubuntu.com-20111214132806-aa2uf6ri5w2p8ak3
Tags: upstream-4.7.90
ImportĀ upstreamĀ versionĀ 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef __KATE_MDI_H__
22
22
#define __KATE_MDI_H__
23
23
 
 
24
#include "interfaces/kate/plugin.h"
 
25
 
24
26
#include <kparts/mainwindow.h>
25
27
 
 
28
 
26
29
#include <KMultiTabBar>
27
30
#include <KXMLGUIClient>
28
31
#include <KToggleAction>
34
37
#include <QList>
35
38
#include <QEvent>
36
39
#include <QChildEvent>
 
40
#include <QPointer>
37
41
 
38
42
class KActionMenu;
39
43
class QAction;
40
44
class KConfigBase;
41
45
 
 
46
namespace Kate {
 
47
  class PluginConfigPageInterface;
 
48
};
 
49
 
42
50
namespace KateMDI
43
51
{
44
52
 
146
154
      MainWindow *m_mainWin;
147
155
      Sidebar *m_sidebar;
148
156
 
 
157
      ///plugin this view belongs to, may be 0
 
158
      QPointer<Kate::Plugin> plugin;
 
159
 
149
160
      /**
150
161
       * unique id
151
162
       */
233
244
 
234
245
      QMap<int, ToolView*> m_idToWidget;
235
246
      QMap<ToolView*, int> m_widgetToId;
 
247
      QMap<ToolView*, QSize> m_widgetToSize;
236
248
 
237
249
      /**
238
250
       * list of all toolviews around in this sidebar
241
253
 
242
254
      int m_lastSize;
243
255
 
 
256
      QSize m_preHideSize;
 
257
 
244
258
      int m_popupButton;
 
259
 
 
260
     Q_SIGNALS:
 
261
       void sigShowPluginConfigPage(Kate::PluginConfigPageInterface *configpageinterface,uint id);
 
262
 
245
263
  };
246
264
 
247
265
  class MainWindow : public KParts::MainWindow
284
302
       * @param text text to use in addition to icon
285
303
       * @return created toolview on success or 0
286
304
       */
287
 
      ToolView *createToolView (const QString &identifier, KMultiTabBar::KMultiTabBarPosition pos, const QPixmap &icon, const QString &text);
 
305
      ToolView *createToolView (Kate::Plugin* plugin, const QString &identifier, KMultiTabBar::KMultiTabBarPosition pos, const QPixmap &icon, const QString &text);
288
306
 
289
307
      /**
290
308
       * give you handle to toolview for the given name, 0 if no toolview around
391
409
       */
392
410
      QList<ToolView*> m_toolviews;
393
411
 
 
412
 
394
413
      /**
395
414
       * widget, which is the central part of the
396
415
       * main window ;)
432
451
       * out guiclient
433
452
       */
434
453
      GUIClient *m_guiClient;
 
454
 
 
455
    Q_SIGNALS:
 
456
      void sigShowPluginConfigPage(Kate::PluginConfigPageInterface *configpageinterface,uint id);
 
457
 
435
458
  };
436
459
 
437
460
}