~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to lib/qextmdi/kmditoolviewaccessor_p.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2006-05-23 18:39:42 UTC
  • Revision ID: james.westby@ubuntu.com-20060523183942-hucifbvh68k2bwz7
Tags: upstream-3.3.2
Import upstream version 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//----------------------------------------------------------------------------
 
2
//    filename             : kmditoolviewaccessor_p.h
 
3
//----------------------------------------------------------------------------
 
4
//    Project              : KDE MDI extension
 
5
//
 
6
//    begin                : 08/2003       by Joseph Wenninger (jowenn@kde.org)
 
7
//    changes              : ---
 
8
//    patches              : ---
 
9
//
 
10
//    copyright            : (C) 2003 by Joseph Wenninger (jowenn@kde.org)
 
11
//----------------------------------------------------------------------------
 
12
//
 
13
//----------------------------------------------------------------------------
 
14
//
 
15
//    This program is free software; you can redistribute it and/or modify
 
16
//    it under the terms of the GNU Library General Public License as
 
17
//    published by the Free Software Foundation; either version 2 of the
 
18
//    License, or (at your option) any later version.
 
19
//
 
20
//----------------------------------------------------------------------------
 
21
 
 
22
 
 
23
#ifndef KMDI_TOOLVIEW_ACCESSOR_PRIVATE_H_
 
24
#define KMDI_TOOLVIEW_ACCESSOR_PRIVATE_H_
 
25
 
 
26
 
 
27
#include <qwidget.h>
 
28
#include <kdockwidget.h>
 
29
#include <qguardedptr.h>
 
30
#include <kaction.h>
 
31
 
 
32
class KMDI_EXPORT KMdiToolViewAccessorPrivate {
 
33
public:
 
34
        KMdiToolViewAccessorPrivate() {
 
35
                widgetContainer=0;
 
36
                widget=0;
 
37
        }
 
38
        ~KMdiToolViewAccessorPrivate() {
 
39
                delete action;
 
40
                if (!widgetContainer.isNull()) widgetContainer->undock();
 
41
                delete (KDockWidget*)widgetContainer;
 
42
        }
 
43
        QGuardedPtr<KDockWidget> widgetContainer;
 
44
        QWidget* widget;
 
45
        QGuardedPtr<KAction> action;
 
46
};
 
47
 
 
48
 
 
49
#endif
 
50
 
 
51