SciDAVis
1.D4
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
scidavis
src
future
core
AbstractPart.h
Go to the documentation of this file.
1
/***************************************************************************
2
File : AbstractPart.h
3
Project : SciDAVis
4
Description : Base class of Aspects with MDI windows as views.
5
--------------------------------------------------------------------
6
Copyright : (C) 2008-2009 Knut Franke (knut.franke*gmx.de)
7
(replace * with @ in the email address)
8
9
***************************************************************************/
10
11
/***************************************************************************
12
* *
13
* This program is free software; you can redistribute it and/or modify *
14
* it under the terms of the GNU General Public License as published by *
15
* the Free Software Foundation; either version 2 of the License, or *
16
* (at your option) any later version. *
17
* *
18
* This program is distributed in the hope that it will be useful, *
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
21
* GNU General Public License for more details. *
22
* *
23
* You should have received a copy of the GNU General Public License *
24
* along with this program; if not, write to the Free Software *
25
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
26
* Boston, MA 02110-1301 USA *
27
* *
28
***************************************************************************/
29
#ifndef ABSTRACT_PART_H
30
#define ABSTRACT_PART_H
31
32
#include "
AbstractAspect.h
"
33
34
class
PartMdiView
;
35
class
QMenu;
36
class
QToolBar;
37
39
43
class
AbstractPart
:
public
AbstractAspect
44
{
45
Q_OBJECT
46
47
public
:
49
AbstractPart
(
const
QString &
name
) :
AbstractAspect
(name),
d_mdi_window
(0) {}
51
57
virtual
QWidget *
view
() = 0;
59
63
PartMdiView
*
mdiSubWindow
();
65
virtual
QMenu *
createContextMenu
()
const
;
67
70
virtual
bool
fillProjectMenu
(QMenu * menu) { Q_UNUSED(menu);
return
false
; }
72
75
virtual
bool
fillProjectToolBar
(QToolBar * bar) { Q_UNUSED(bar);
return
false
; }
76
77
public
slots:
79
virtual
void
copy
() {};
81
virtual
void
cut
() {};
83
virtual
void
paste
() {};
84
85
private
:
87
PartMdiView
*
d_mdi_window
;
88
};
89
90
#endif // ifndef ABSTRACT_PART_H
Generated by
1.8.1