File indexing completed on 2024-05-12 05:56:49

0001 /*
0002   SPDX-FileCopyrightText: 2008 Eike Hein <hein@kde.org>
0003 
0004   SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 */
0006 
0007 #ifndef WINDOWSETTINGS_H
0008 #define WINDOWSETTINGS_H
0009 
0010 #include "ui_windowsettings.h"
0011 
0012 class WindowSettings : public QWidget, private Ui::WindowSettings
0013 {
0014     Q_OBJECT
0015 
0016 public:
0017     explicit WindowSettings(QWidget *parent = nullptr);
0018     ~WindowSettings();
0019 
0020 private:
0021 Q_SIGNALS:
0022     void updateWindowGeometry(int width, int height, int position);
0023 
0024 private Q_SLOTS:
0025     void updateWidthSlider(int width);
0026     void updateWidthSpinBox(int width);
0027 
0028     void updateHeightSlider(int height);
0029     void updateHeightSpinBox(int height);
0030 
0031     void updateFramesSlider(int height);
0032     void updateFramesSpinBox(int height);
0033 
0034     void updatePosition(int position);
0035 
0036     void interceptHideTitleBar(int state);
0037 };
0038 
0039 #endif