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