PeriDyno
1.0.0
Loading...
Searching...
No Matches
D:
Peridyno
peridyno
src
Rendering
GUI
QtGUI
ToolBar
Page.h
Go to the documentation of this file.
1
/*
2
TabToolbar - a small utility library for Qt, providing tabbed toolbars
3
Copyright (C) 2018 Oleksii Sierov
4
5
TabToolbar is free software: you can redistribute it and/or modify
6
it under the terms of the GNU Lesser General Public License as published by
7
the Free Software Foundation, either version 3 of the License, or
8
(at your option) any later version.
9
10
TabToolbar is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU Lesser General Public License for more details.
14
15
You should have received a copy of the GNU Lesser General Public License
16
along with TabToolbar. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
#ifndef TT_PAGE_H
19
#define TT_PAGE_H
20
#include <QWidget>
21
#include <QString>
22
#include <memory>
23
24
#include "
API.h
"
25
26
class
QHBoxLayout;
27
28
namespace
tt
29
{
30
class
TabToolbar
;
31
class
Group
;
32
33
class
TT_API
Page
:
public
QWidget
34
{
35
Q_OBJECT
36
public
:
37
explicit
Page
(
int
index,
const
QString& pageName, QWidget* parent =
nullptr
);
38
virtual
~Page
() =
default
;
39
40
Group
*
AddGroup
(
const
QString& name);
41
void
hide
();
42
void
show
();
43
44
signals:
45
void
Hiding
(
int
index);
46
void
Showing
(
int
index);
47
48
private
:
49
const
int
myIndex
;
50
QHBoxLayout*
innerLayout
;
51
QWidget*
innerArea
;
52
};
53
54
}
55
#endif
API.h
tt::Group
Definition
Group.h:36
tt::Page::show
void show()
Definition
Page.cpp:109
tt::Page::myIndex
const int myIndex
Definition
Page.h:49
tt::Page::innerArea
QWidget * innerArea
Definition
Page.h:51
tt::Page::Page
Page(int index, const QString &pageName, QWidget *parent=nullptr)
Definition
Page.cpp:56
tt::Page::Hiding
void Hiding(int index)
tt::Page::AddGroup
Group * AddGroup(const QString &name)
Definition
Page.cpp:91
tt::Page::hide
void hide()
Definition
Page.cpp:104
tt::Page::Showing
void Showing(int index)
tt::Page::~Page
virtual ~Page()=default
tt::Page::innerLayout
QHBoxLayout * innerLayout
Definition
Page.h:50
tt::TabToolbar
Definition
TabToolbar.h:38
tt
Definition
Builder.h:33
Generated by
1.13.2