File indexing completed on 2024-04-28 17:05:55
0001 /* 0002 SPDX-FileCopyrightText: 2000 Shie Erlich <krusader@users.sourceforge.net> 0003 SPDX-FileCopyrightText: 2000 Rafi Yanai <krusader@users.sourceforge.net> 0004 SPDX-FileCopyrightText: 2004-2022 Krusader Krew <https://krusader.org> 0005 0006 SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 #ifndef PACKGUIBASE_H 0009 #define PACKGUIBASE_H 0010 0011 // QtCore 0012 #include <QMap> 0013 // QtWidgets 0014 #include <QDialog> 0015 #include <QGridLayout> 0016 #include <QHBoxLayout> 0017 #include <QLabel> 0018 #include <QVBoxLayout> 0019 0020 class QHBoxLayout; 0021 class QGridLayout; 0022 class QCheckBox; 0023 class QComboBox; 0024 class QLabel; 0025 class QLineEdit; 0026 class QPushButton; 0027 class QToolButton; 0028 class QSpinBox; 0029 class QSlider; 0030 class KrHistoryComboBox; 0031 0032 class PackGUIBase : public QDialog 0033 { 0034 Q_OBJECT 0035 0036 public: 0037 explicit PackGUIBase(QWidget *parent = nullptr); 0038 ~PackGUIBase() override; 0039 0040 QLabel *TextLabel3; 0041 QLineEdit *nameData; 0042 QComboBox *typeData; 0043 QLabel *TextLabel5; 0044 QLineEdit *dirData; 0045 QToolButton *browseButton; 0046 QWidget *advancedWidget; 0047 QLabel *PixmapLabel1; 0048 QLabel *TextLabel1; 0049 QLabel *TextLabel4; 0050 QLabel *TextLabel6; 0051 QLabel *TextLabel7; 0052 QLabel *TextLabel8; 0053 QLabel *minLabel; 0054 QLabel *maxLabel; 0055 QLineEdit *password; 0056 QLineEdit *passwordAgain; 0057 QLabel *passwordConsistencyLabel; 0058 QPushButton *okButton; 0059 QPushButton *cancelButton; 0060 QPushButton *advancedButton; 0061 QCheckBox *encryptHeaders; 0062 QCheckBox *multipleVolume; 0063 QSpinBox *volumeSpinBox; 0064 QComboBox *volumeUnitCombo; 0065 QCheckBox *setCompressionLevel; 0066 QSlider *compressionSlider; 0067 KrHistoryComboBox *commandLineSwitches; 0068 0069 public slots: 0070 virtual void browse(); 0071 virtual bool extraProperties(QMap<QString, QString> &); 0072 0073 void expand(); 0074 void checkConsistency(); 0075 0076 protected: 0077 QHBoxLayout *hbox; 0078 QHBoxLayout *hbox_2; 0079 QHBoxLayout *hbox_3; 0080 QHBoxLayout *hbox_4; 0081 QGridLayout *hbox_5; 0082 QHBoxLayout *hbox_6; 0083 QHBoxLayout *hbox_7; 0084 QGridLayout *grid; 0085 0086 private: 0087 bool expanded; 0088 }; 0089 0090 #endif // PACKGUIBASE_H