From 75ec461eeaa851cb5c53f4cfffc434e3e529ed1d Mon Sep 17 00:00:00 2001 From: "Felix (xq) Queißner" Date: Mon, 22 Jun 2020 21:10:04 +0200 Subject: Restructures the project source and cleans up a bit --- src/settingsdialog.hpp | 143 ------------------------------------------------- 1 file changed, 143 deletions(-) delete mode 100644 src/settingsdialog.hpp (limited to 'src/settingsdialog.hpp') 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 - -#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 preview_document; - - QMap predefined_styles; - - SslTrust current_trust; - - GenericSettings current_options; -}; - -#endif // SETTINGSDIALOG_HPP -- cgit v1.2.3