source: calamares/trunk/fuentes/src/calamares/CalamaresWindow.h @ 7538

Last change on this file since 7538 was 7538, checked in by kbut, 17 months ago

sync with github

File size: 1.7 KB
Line 
1/* === This file is part of Calamares - <https://github.com/calamares> ===
2 *
3 *   Copyright 2014-2015, Teo Mrnjavac <teo@kde.org>
4 *   Copyright 2017-2018, Adriaan de Groot <groot@kde.org>
5 *
6 *   Calamares is free software: you can redistribute it and/or modify
7 *   it under the terms of the GNU General Public License as published by
8 *   the Free Software Foundation, either version 3 of the License, or
9 *   (at your option) any later version.
10 *
11 *   Calamares 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 General Public License for more details.
15 *
16 *   You should have received a copy of the GNU General Public License
17 *   along with Calamares. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef CALAMARESWINDOW_H
21#define CALAMARESWINDOW_H
22
23#include <QPointer>
24#include <QWidget>
25
26namespace Calamares
27{
28class DebugWindow;
29class ViewManager;
30}
31
32/**
33 * @brief The CalamaresWindow class represents the main window of the Calamares UI.
34 */
35class CalamaresWindow : public QWidget
36{
37    Q_OBJECT
38public:
39    CalamaresWindow( QWidget* parent = nullptr );
40    virtual ~CalamaresWindow() override {}
41
42public slots:
43    /**
44     * This asks the main window to grow by @p enlarge pixels, to accomodate
45     * larger-than-expected window contents. The enlargement may be silently
46     * ignored.
47     */
48    void enlarge( QSize enlarge );
49
50protected:
51    virtual void closeEvent( QCloseEvent* e ) override;
52
53private:
54    QPointer< Calamares::DebugWindow > m_debugWindow;  // Managed by self
55    Calamares::ViewManager* m_viewManager;
56};
57
58#endif //CALAMARESWINDOW_H
Note: See TracBrowser for help on using the repository browser.