dRonin
adbada4
dRonin GCS
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Groups
Pages
baseview.h
Go to the documentation of this file.
1
13
/*
14
* This program is free software; you can redistribute it and/or modify
15
* it under the terms of the GNU General Public License as published by
16
* the Free Software Foundation; either version 3 of the License, or
17
* (at your option) any later version.
18
*
19
* This program is distributed in the hope that it will be useful, but
20
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
21
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22
* for more details.
23
*
24
* You should have received a copy of the GNU General Public License along
25
* with this program; if not, see <http://www.gnu.org/licenses/>
26
*/
27
28
#ifndef BASEVIEW_H
29
#define BASEVIEW_H
30
31
#include "
core_global.h
"
32
#include "
iview.h
"
33
#include <QtCore/QPointer>
34
35
namespace
Core {
36
37
class
CORE_EXPORT
BaseView
:
public
IView
38
{
39
Q_OBJECT
40
41
public
:
42
BaseView
(QObject *parent =
nullptr
);
43
~
BaseView
();
44
45
QList<int>
context()
const
;
46
QWidget *widget();
47
const
char
*uniqueViewName()
const
;
48
IView::ViewPosition
defaultPosition()
const
;
49
50
void
setUniqueViewName(
const
char
*name);
51
QWidget *setWidget(QWidget *widget);
52
void
setContext(
const
QList<int>
&context);
53
void
setDefaultPosition(
IView::ViewPosition
position);
54
55
private
:
56
const
char
*m_viewName;
57
QPointer<QWidget> m_widget;
58
QList<int>
m_context;
59
IView::ViewPosition
m_defaultPosition;
60
};
61
62
}
// namespace Core
63
64
#endif // BASEVIEW_H
iview.h
core_global.h
Core::IView
Definition:
iview.h:37
Core::IView::ViewPosition
ViewPosition
Definition:
iview.h:41
QList< int >
Core::BaseView
Definition:
baseview.h:37
ground
gcs
src
plugins
coreplugin
baseview.h
Generated by
1.8.6