PeriDyno 1.0.0
Loading...
Searching...
No Matches
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
26class QHBoxLayout;
27
28namespace tt
29{
30class TabToolbar;
31class Group;
32
33class TT_API Page : public QWidget
34{
35 Q_OBJECT
36public:
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
44signals:
45 void Hiding(int index);
46 void Showing(int index);
47
48private:
49 const int myIndex;
50 QHBoxLayout* innerLayout;
51 QWidget* innerArea;
52};
53
54}
55#endif
void show()
Definition Page.cpp:109
const int myIndex
Definition Page.h:49
QWidget * innerArea
Definition Page.h:51
Page(int index, const QString &pageName, QWidget *parent=nullptr)
Definition Page.cpp:56
void Hiding(int index)
Group * AddGroup(const QString &name)
Definition Page.cpp:91
void hide()
Definition Page.cpp:104
void Showing(int index)
virtual ~Page()=default
QHBoxLayout * innerLayout
Definition Page.h:50
Definition Builder.h:33