QtHPConnect/include/hp_mdiwindow.h

48 lines
1.1 KiB
C
Raw Normal View History

2020-02-02 18:13:27 +01:00
/*
* This file is part of the QtHPConnect distribution (https://github.com/Indy970/QtHPConnect.git).
* Copyright (c) 2020 Ian Gebbie.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3 or later.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2019-02-10 14:32:15 +01:00
#ifndef HP_MDIWINDOW_H
#define HP_MDIWINDOW_H
#include <QObject>
#include <QWidget>
2019-02-10 14:43:00 +01:00
#include <QMdiSubWindow>
2019-02-10 14:32:15 +01:00
2019-02-10 14:43:00 +01:00
class hp_MdiWindow: public QMdiSubWindow
2019-02-10 14:32:15 +01:00
{
2019-02-10 14:43:00 +01:00
Q_OBJECT
protected:
2020-02-07 19:50:36 +01:00
2019-02-10 14:43:00 +01:00
2019-02-10 14:32:15 +01:00
public:
2019-02-10 14:43:00 +01:00
hp_MdiWindow(QWidget * parent);
void setup();
2020-02-07 19:50:36 +01:00
virtual bool save();
virtual bool saveAs();
2019-02-10 14:43:00 +01:00
void show();
~hp_MdiWindow();
2020-02-08 17:51:52 +01:00
private slots:
void eventSave();
2019-02-10 14:32:15 +01:00
};
2019-02-10 14:43:00 +01:00
#endif // HP_MDIWINDOW_H