You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.8 KiB
69 lines
1.8 KiB
9 years ago
|
/* BEGIN_COMMON_COPYRIGHT_HEADER
|
||
|
* (c)LGPL2+
|
||
|
*
|
||
|
* LXDE-Qt - a lightweight, Qt based, desktop toolset
|
||
9 years ago
|
* http://lxqt.org
|
||
9 years ago
|
*
|
||
9 years ago
|
* Copyright: 2015 LxQt team
|
||
9 years ago
|
* Authors:
|
||
|
*
|
||
|
* This program or library is free software; you can redistribute it
|
||
|
* and/or modify it under the terms of the GNU Lesser General Public
|
||
|
* License as published by the Free Software Foundation; either
|
||
|
* version 2.1 of the License, or (at your option) any later version.
|
||
|
*
|
||
|
* This library 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
|
||
|
* Lesser General Public License for more details.
|
||
|
|
||
|
* You should have received a copy of the GNU Lesser General
|
||
|
* Public License along with this library; if not, write to the
|
||
|
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||
|
* Boston, MA 02110-1301 USA
|
||
|
*
|
||
|
* END_COMMON_COPYRIGHT_HEADER */
|
||
|
|
||
|
|
||
9 years ago
|
#ifndef DESKTOPSWITCHCERCONFIGURATION_H
|
||
|
#define DESKTOPSWITCHCERCONFIGURATION_H
|
||
9 years ago
|
|
||
|
#include <LXQt/Settings>
|
||
|
|
||
|
#include <QDialog>
|
||
9 years ago
|
#include <QFormLayout>
|
||
|
#include <QLineEdit>
|
||
9 years ago
|
|
||
9 years ago
|
class QSettings;
|
||
|
class QAbstractButton;
|
||
9 years ago
|
|
||
|
namespace Ui {
|
||
9 years ago
|
class DesktopSwitchConfiguration;
|
||
9 years ago
|
}
|
||
|
|
||
9 years ago
|
class DesktopSwitchConfiguration : public QDialog
|
||
9 years ago
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
9 years ago
|
explicit DesktopSwitchConfiguration(QSettings *settings, QWidget *parent = 0);
|
||
|
~DesktopSwitchConfiguration();
|
||
9 years ago
|
|
||
|
private:
|
||
9 years ago
|
Ui::DesktopSwitchConfiguration *ui;
|
||
9 years ago
|
QSettings *mSettings;
|
||
9 years ago
|
LxQt::SettingsCache mOldSettings;
|
||
9 years ago
|
|
||
|
private slots:
|
||
|
/*
|
||
9 years ago
|
Saves settings in conf file.
|
||
9 years ago
|
*/
|
||
9 years ago
|
void loadSettings();
|
||
|
void loadDesktopsNames();
|
||
9 years ago
|
void dialogButtonsAction(QAbstractButton *btn);
|
||
9 years ago
|
void rowsChanged(int value);
|
||
|
void labelTypeChanged(int type);
|
||
9 years ago
|
};
|
||
|
|
||
9 years ago
|
#endif // DESKTOPSWITCHCERCONFIGURATION_H
|