diff options
| author | Felix (xq) Queißner <git@mq32.de> | 2020-06-22 21:10:04 +0200 |
|---|---|---|
| committer | Felix (xq) Queißner <git@mq32.de> | 2020-06-22 21:10:04 +0200 |
| commit | 75ec461eeaa851cb5c53f4cfffc434e3e529ed1d (patch) | |
| tree | 3944737340718ca3675381aa06636045d397e780 /src/settingsdialog.hpp | |
| parent | 8dbfb0890560fd1cd698d06fa05ac868c4db8576 (diff) | |
| download | kristall-75ec461eeaa851cb5c53f4cfffc434e3e529ed1d.tar.gz | |
Restructures the project source and cleans up a bit
Diffstat (limited to 'src/settingsdialog.hpp')
| -rw-r--r-- | src/settingsdialog.hpp | 143 |
1 files changed, 0 insertions, 143 deletions
diff --git a/src/settingsdialog.hpp b/src/settingsdialog.hpp deleted file mode 100644 index 0256f95..0000000 --- a/src/settingsdialog.hpp +++ /dev/null @@ -1,143 +0,0 @@ -#ifndef SETTINGSDIALOG_HPP -#define SETTINGSDIALOG_HPP - -#include <QDialog> - -#include "geminirenderer.hpp" -#include "protocolsetup.hpp" -#include "documentstyle.hpp" -#include "ssltrust.hpp" -#include "kristall.hpp" - -namespace Ui { -class SettingsDialog; -} - -class SettingsDialog : public QDialog -{ - Q_OBJECT - -public: - explicit SettingsDialog(QWidget *parent = nullptr); - ~SettingsDialog(); - - void setGeminiStyle(DocumentStyle const & style); - - DocumentStyle geminiStyle() const { - return current_style; - } - - ProtocolSetup protocols() const; - void setProtocols(ProtocolSetup const & proto); - - SslTrust geminiSslTrust() const; - void setGeminiSslTrust(SslTrust const & trust); - - SslTrust httpsSslTrust() const; - void setHttpsSslTrust(SslTrust const & trust); - - GenericSettings options() const; - void setOptions(GenericSettings const & options); - -private slots: - void on_std_change_font_clicked(); - - void on_pre_change_font_clicked(); - - void on_h1_change_font_clicked(); - - void on_h2_change_font_clicked(); - - void on_h3_change_font_clicked(); - - void on_std_change_color_clicked(); - - void on_pre_change_color_clicked(); - - void on_h1_change_color_clicked(); - - void on_h2_change_color_clicked(); - - void on_h3_change_color_clicked(); - - void on_bg_change_color_clicked(); - - void on_link_local_change_color_clicked(); - - void on_link_foreign_change_color_clicked(); - - void on_link_cross_change_color_clicked(); - - void on_link_local_prefix_textChanged(const QString &arg1); - - void on_link_foreign_prefix_textChanged(const QString &arg1); - - void on_auto_theme_currentIndexChanged(int index); - - void on_preview_url_textChanged(const QString &arg1); - - void on_page_margin_valueChanged(double arg1); - - void on_presets_currentIndexChanged(int index); - - void on_preset_new_clicked(); - - void on_SettingsDialog_accepted(); - - void on_quote_change_color_clicked(); - - void on_preset_save_clicked(); - - void on_preset_load_clicked(); - - void on_preset_import_clicked(); - - void on_preset_export_clicked(); - - void on_start_page_textChanged(const QString &arg1); - - void on_ui_theme_currentIndexChanged(int index); - - void on_fancypants_on_clicked(); - - void on_fancypants_off_clicked(); - - void on_texthl_on_clicked(); - - void on_texthl_off_clicked(); - - void on_gophermap_icon_clicked(); - - void on_gophermap_text_clicked(); - - void on_scheme_os_default_clicked(); - - void on_scheme_error_clicked(); - - void on_redirection_mode_currentIndexChanged(int index); - - void on_max_redirects_valueChanged(int arg1); - - void on_network_timeout_valueChanged(int arg1); - -private: - void reloadStylePreview(); - - void updateFont(QFont & input); - - void updateColor(QColor & input); - -private: - Ui::SettingsDialog *ui; - - DocumentStyle current_style; - std::unique_ptr<QTextDocument> preview_document; - - QMap<QString, DocumentStyle> predefined_styles; - - SslTrust current_trust; - - GenericSettings current_options; -}; - -#endif // SETTINGSDIALOG_HPP |
