mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Recent file manager
This commit is contained in:
@ -37,14 +37,22 @@ class PDFViewerSettingsDialog : public QDialog
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
struct OtherSettings
|
||||
{
|
||||
int maximumRecentFileCount = 0;
|
||||
};
|
||||
|
||||
/// Constructor
|
||||
/// \param settings Viewer settings
|
||||
/// \param cmsSettings Color management system settings
|
||||
/// \param otherSettings Other settings
|
||||
/// \param actions Actions
|
||||
/// \param cmsManager CMS manager
|
||||
/// \param parent Parent widget
|
||||
explicit PDFViewerSettingsDialog(const PDFViewerSettings::Settings& settings,
|
||||
const pdf::PDFCMSSettings& cmsSettings,
|
||||
const OtherSettings& otherSettings,
|
||||
QList<QAction*> actions,
|
||||
pdf::PDFCMSManager* cmsManager,
|
||||
QWidget* parent);
|
||||
@ -60,11 +68,13 @@ public:
|
||||
CacheSettings,
|
||||
ShortcutSettings,
|
||||
ColorManagementSystemSettings,
|
||||
SecuritySettings
|
||||
SecuritySettings,
|
||||
UISettings
|
||||
};
|
||||
|
||||
const PDFViewerSettings::Settings& getSettings() const { return m_settings; }
|
||||
const pdf::PDFCMSSettings& getCMSSettings() const { return m_cmsSettings; }
|
||||
const OtherSettings& getOtherSettings() const { return m_otherSettings; }
|
||||
|
||||
private slots:
|
||||
void on_optionsPagesWidget_currentItemChanged(QListWidgetItem* current, QListWidgetItem* previous);
|
||||
@ -81,6 +91,7 @@ private:
|
||||
Ui::PDFViewerSettingsDialog* ui;
|
||||
PDFViewerSettings::Settings m_settings;
|
||||
pdf::PDFCMSSettings m_cmsSettings;
|
||||
OtherSettings m_otherSettings;
|
||||
QList<QAction*> m_actions;
|
||||
bool m_isLoadingData;
|
||||
};
|
||||
|
Reference in New Issue
Block a user