39 lines
848 B
C
Raw Normal View History

2017-07-21 18:21:34 +02:00
/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef WINDOW_H
#define WINDOW_H 1
2017-07-21 18:21:34 +02:00
#include <QskDialog.h>
2018-08-03 08:15:28 +02:00
#include <QskWindow.h>
2017-07-21 18:21:34 +02:00
class QskDialogButtonBox;
class QskLinearBox;
class Window : public QskWindow
{
Q_OBJECT
2018-08-03 08:15:28 +02:00
public:
2017-07-21 18:21:34 +02:00
Window( Qt::Orientation );
2018-08-03 08:15:28 +02:00
private Q_SLOTS:
2017-07-21 18:21:34 +02:00
void flipOrientation();
void centerButtons();
2018-08-03 08:15:28 +02:00
private:
2017-07-21 18:21:34 +02:00
void addBox( QskDialog::StandardButtons );
void addActionBox();
QVector< QskDialogButtonBox* > dialogBoxes() const;
Qt::Orientation invertedOrientation() const;
2018-08-03 08:15:28 +02:00
private:
2017-07-21 18:21:34 +02:00
QskLinearBox* m_layoutBox;
Qt::Orientation m_orientation;
};
#endif