~ubuntu-branches/ubuntu/maverick/freecad/maverick

« back to all changes in this revision

Viewing changes to src/Gui/SelectionView.h

  • Committer: Bazaar Package Importer
  • Author(s): Teemu Ikonen
  • Date: 2009-07-16 18:37:41 UTC
  • Revision ID: james.westby@ubuntu.com-20090716183741-oww9kcxqrk991i1n
Tags: upstream-0.8.2237
Import upstream version 0.8.2237

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright (c) 2002 J�rgen Riegel <juergen.riegel@web.de>              *
 
3
 *                                                                         *
 
4
 *   This file is part of the FreeCAD CAx development system.              *
 
5
 *                                                                         *
 
6
 *   This library is free software; you can redistribute it and/or         *
 
7
 *   modify it under the terms of the GNU Library General Public           *
 
8
 *   License as published by the Free Software Foundation; either          *
 
9
 *   version 2 of the License, or (at your option) any later version.      *
 
10
 *                                                                         *
 
11
 *   This library  is distributed in the hope that it will be useful,      *
 
12
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 
13
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 
14
 *   GNU Library General Public License for more details.                  *
 
15
 *                                                                         *
 
16
 *   You should have received a copy of the GNU Library General Public     *
 
17
 *   License along with this library; see the file COPYING.LIB. If not,    *
 
18
 *   write to the Free Software Foundation, Inc., 59 Temple Place,         *
 
19
 *   Suite 330, Boston, MA  02111-1307, USA                                *
 
20
 *                                                                         *
 
21
 ***************************************************************************/
 
22
 
 
23
 
 
24
 
 
25
#ifndef GUI_DOCKWND_SELECTIONVIEW_H
 
26
#define GUI_DOCKWND_SELECTIONVIEW_H
 
27
 
 
28
 
 
29
#ifndef __Qt4All__
 
30
# include "Qt4All.h"
 
31
#endif
 
32
 
 
33
 
 
34
#include "DockWindow.h"
 
35
#include "Selection.h"
 
36
 
 
37
class QPixmap;
 
38
 
 
39
namespace App {
 
40
  class PropertyContainer;
 
41
}
 
42
 
 
43
namespace Gui {
 
44
namespace PropertyEditor {
 
45
 
 
46
class EditableListView;
 
47
class EditableItem;
 
48
class PropertyEditor;
 
49
 
 
50
} // namespace PropertyEditor
 
51
} // namespace Gui
 
52
 
 
53
namespace Gui {
 
54
namespace DockWnd {
 
55
 
 
56
/** A test class. A more elaborate class description.
 
57
 */
 
58
class SelectionView :public Gui::DockWindow, public Gui::SelectionSingleton::ObserverType
 
59
{
 
60
    Q_OBJECT
 
61
 
 
62
public:
 
63
    /**
 
64
     * A constructor.
 
65
     * A more elaborate description of the constructor.
 
66
     */
 
67
    SelectionView(Gui::Document*  pcDocument, QWidget *parent=0);
 
68
 
 
69
    /**
 
70
     * A destructor.
 
71
     * A more elaborate description of the destructor.
 
72
    */
 
73
    virtual ~SelectionView();
 
74
 
 
75
    /// Observer message from the Selection
 
76
    virtual void OnChange(Gui::SelectionSingleton::SubjectType &rCaller,
 
77
                          Gui::SelectionSingleton::MessageType Reason);
 
78
 
 
79
 
 
80
    bool onMsg(const char* pMsg);
 
81
 
 
82
    virtual const char *getName(void) const {return "SelectionView";}
 
83
 
 
84
    /// get called when the document is changed or updated
 
85
    virtual void onUpdate(void);
 
86
 
 
87
    //static QPixmap *pcLabelOpen, *pcLabelClosed, *pcAttribute;
 
88
 
 
89
    QListWidget* selectionView;
 
90
 
 
91
protected:
 
92
    void changeEvent(QEvent *e);
 
93
 
 
94
private:
 
95
    QTabWidget* tabs;
 
96
};
 
97
 
 
98
} // namespace DockWnd
 
99
} // namespace Gui
 
100
 
 
101
#endif // GUI_DOCKWND_SELECTIONVIEW_H