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.
80 lines
2.0 KiB
80 lines
2.0 KiB
10 years ago
|
/* BEGIN_COMMON_COPYRIGHT_HEADER
|
||
|
* (c)LGPL2+
|
||
|
*
|
||
|
* LXDE-Qt - a lightweight, Qt based, desktop toolset
|
||
|
* http://razor-qt.org
|
||
9 years ago
|
* http://lxqt.org
|
||
10 years ago
|
*
|
||
9 years ago
|
* Copyright: 2015 LXQt team
|
||
10 years ago
|
* Authors:
|
||
9 years ago
|
* Daniel Drzisga <sersmicro@gmail.com>
|
||
10 years ago
|
*
|
||
|
* 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 DIRECTORYMENUCONFIGURATION_H
|
||
|
#define DIRECTORYMENUCONFIGURATION_H
|
||
10 years ago
|
|
||
|
#include <QDialog>
|
||
|
#include <QAbstractButton>
|
||
9 years ago
|
#include <QButtonGroup>
|
||
|
#include <QLocale>
|
||
|
#include <QDateTime>
|
||
|
#include <QDir>
|
||
10 years ago
|
|
||
9 years ago
|
#include <LXQt/Settings>
|
||
10 years ago
|
|
||
|
namespace Ui {
|
||
9 years ago
|
class DirectoryMenuConfiguration;
|
||
10 years ago
|
}
|
||
|
|
||
9 years ago
|
class DirectoryMenuConfiguration : public QDialog
|
||
10 years ago
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
9 years ago
|
explicit DirectoryMenuConfiguration(QSettings &settings, QWidget *parent = 0);
|
||
|
~DirectoryMenuConfiguration();
|
||
10 years ago
|
|
||
|
private:
|
||
9 years ago
|
Ui::DirectoryMenuConfiguration *ui;
|
||
|
QSettings &mSettings;
|
||
|
LxQt::SettingsCache mOldSettings;
|
||
|
QDir mBaseDirectory;
|
||
|
QString mIcon;
|
||
|
QIcon mDefaultIcon;
|
||
10 years ago
|
|
||
|
/*
|
||
|
Read settings from conf file and put data into controls.
|
||
|
*/
|
||
|
void loadSettings();
|
||
|
|
||
|
private slots:
|
||
|
/*
|
||
|
Saves settings in conf file.
|
||
|
*/
|
||
9 years ago
|
void saveSettings();
|
||
10 years ago
|
void dialogButtonsAction(QAbstractButton *btn);
|
||
9 years ago
|
void showDirectoryDialog();
|
||
|
void showIconDialog();
|
||
|
|
||
|
private:
|
||
10 years ago
|
};
|
||
|
|
||
9 years ago
|
#endif // DIRECTORYMENUCONFIGURATION_H
|