ladybird/UI/Qt/SettingsDialog.h

41 lines
988 B
C
Raw Permalink Normal View History

2022-07-14 04:08:30 +00:00
/*
* Copyright (c) 2022, Filiph Sandström <filiph.sandstrom@filfatstudios.com>
* Copyright (c) 2023, Cameron Youell <cameronyouell@gmail.com>
2022-07-14 04:08:30 +00:00
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <QCheckBox>
2022-07-14 04:08:30 +00:00
#include <QDialog>
#include <QFormLayout>
#include <QLineEdit>
2022-07-14 04:08:30 +00:00
#include <QMainWindow>
#include <QPushButton>
2022-07-14 04:08:30 +00:00
#pragma once
namespace Ladybird {
2022-07-14 04:08:30 +00:00
class SettingsDialog : public QDialog {
Q_OBJECT
2022-07-14 04:08:30 +00:00
public:
explicit SettingsDialog(QMainWindow* window);
private:
void setup_search_engines();
QFormLayout* m_layout;
2022-07-14 04:08:30 +00:00
QMainWindow* m_window { nullptr };
QLineEdit* m_new_tab_page { nullptr };
QCheckBox* m_enable_search { nullptr };
QPushButton* m_search_engine_dropdown { nullptr };
QLineEdit* m_preferred_languages { nullptr };
QCheckBox* m_enable_autocomplete { nullptr };
QPushButton* m_autocomplete_engine_dropdown { nullptr };
QCheckBox* m_enable_do_not_track { nullptr };
QCheckBox* m_enable_autoplay { nullptr };
2022-07-14 04:08:30 +00:00
};
}