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