2022-07-14 04:08:30 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2022, Filiph Sandström <filiph.sandstrom@filfatstudios.com>
|
2023-05-31 01:44:16 +00:00
|
|
|
* Copyright (c) 2023, Cameron Youell <cameronyouell@gmail.com>
|
2022-07-14 04:08:30 +00:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
2023-05-31 01:44:16 +00:00
|
|
|
#include <QCheckBox>
|
2022-07-14 04:08:30 +00:00
|
|
|
#include <QDialog>
|
2022-07-14 04:36:11 +00:00
|
|
|
#include <QFormLayout>
|
|
|
|
#include <QLineEdit>
|
2022-07-14 04:08:30 +00:00
|
|
|
#include <QMainWindow>
|
2022-07-14 04:36:11 +00:00
|
|
|
#include <QPushButton>
|
2022-07-14 04:08:30 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2023-08-02 17:52:59 +00:00
|
|
|
namespace Ladybird {
|
|
|
|
|
2022-07-14 04:08:30 +00:00
|
|
|
class SettingsDialog : public QDialog {
|
|
|
|
Q_OBJECT
|
2023-12-04 14:39:22 +00:00
|
|
|
|
2022-07-14 04:08:30 +00:00
|
|
|
public:
|
|
|
|
explicit SettingsDialog(QMainWindow* window);
|
|
|
|
|
|
|
|
private:
|
2023-05-31 01:44:16 +00:00
|
|
|
void setup_search_engines();
|
|
|
|
|
2022-07-14 04:36:11 +00:00
|
|
|
QFormLayout* m_layout;
|
2022-07-14 04:08:30 +00:00
|
|
|
QMainWindow* m_window { nullptr };
|
2023-12-04 14:39:22 +00:00
|
|
|
QLineEdit* m_new_tab_page { nullptr };
|
|
|
|
QCheckBox* m_enable_search { nullptr };
|
|
|
|
QPushButton* m_search_engine_dropdown { nullptr };
|
2024-07-23 20:11:47 +00:00
|
|
|
QLineEdit* m_preferred_languages { nullptr };
|
2023-12-04 14:39:22 +00:00
|
|
|
QCheckBox* m_enable_autocomplete { nullptr };
|
|
|
|
QPushButton* m_autocomplete_engine_dropdown { nullptr };
|
2024-07-02 19:31:14 +00:00
|
|
|
QCheckBox* m_enable_do_not_track { nullptr };
|
2022-07-14 04:08:30 +00:00
|
|
|
};
|
2023-08-02 17:52:59 +00:00
|
|
|
|
|
|
|
}
|