/settings/settingstabother.h
C Header | 105 lines | 62 code | 21 blank | 22 comment | 0 complexity | 66aee54040e76d503bef74f671376bb2 MD5 | raw file
- /*
- * 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; either version 2 of the License, or
- * (at your option) any later version.
- *
- * 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, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
- #ifndef SETTINGSTABGENERAL_H
- #define SETTINGSTABGENERAL_H
- #include "../customelements/customscrollbar.h"
- #include "../customelements/customlineedit.h"
- #include "../customelements/customlabel.h"
- #include "../customelements/custompushbutton.h"
- #include "../customelements/customtabwidget.h"
- #include "settingstabotherlanguagetiles.h"
- #include "settingstabothercontext.h"
- #include "settingstabotherfiletypestiles.h"
- #include "../flowlayout/flowlayout.h"
- #include <QWidget>
- #include <QStyleOption>
- #include <QPainter>
- #include <QLabel>
- #include <QVBoxLayout>
- #include <QScrollArea>
- #include <QButtonGroup>
- #include <QLineEdit>
- #include <QTextEdit>
- #include <QProcess>
- #include <QSignalMapper>
- #include <QFormLayout>
- #include <QImageReader>
- #include <QDesktopServices>
- class SettingsTabOther: public QWidget {
- Q_OBJECT
- public:
- SettingsTabOther(QWidget *parent = 0, QMap<QString,QVariant> set = QMap<QString,QVariant>(), bool verbose = false);
- ~SettingsTabOther();
- bool verbose;
- TabWidget *tabs;
- // The scrollbars
- CustomScrollbar *scrollbarOther;
- CustomScrollbar *scrollbarFile;
- // Global Settings
- QMap<QString, QVariant> globSet;
- QMap<QString, QVariant> updatedSet;
- QMap<QString, QVariant> defaults;
- // Load/Save Settings
- void loadSettings();
- void saveSettings();
- private:
- QWidget *tabOther;
- QWidget *tabFile;
- QMap<QString,SettingsTabOtherFileTypesTiles*> allCheckQt;
- QMap<QString,SettingsTabOtherFileTypesTiles*> allCheckGm;
- QMap<QString,SettingsTabOtherFileTypesTiles*> allCheckGmGhostscript;
- QMap<QString,SettingsTabOtherFileTypesTiles*> allCheckGmUntested;
- CustomLineEdit *extraQtEdit;
- QMap<QString,SettingsTabOtherFileTypesTiles*> allCheckExtra;
- QMap<QString,CustomLabel*> allExtraToolNotFound;
- // The language selection
- QStringList langDesc;
- QStringList langAuthor;
- QStringList langShort;
- QList<SettingsTabOtherLanguageTiles*> allLangTiles;
- // Quick Settings
- CustomCheckBox *quickSet;
- bool defaultValue;
- // Context menu adjusting area
- Context *context;
- // All the known file foormats
- CustomLineEdit *knownFile;
- private slots:
- void markAllNone(QString cat);
- void openWebsite(QString web) { QDesktopServices::openUrl(QUrl(web)); }
- };
- #endif // SETTINGSTABGENERAL_H