looper/backends/ui/qt/preferences.h
Zachary Hall f7f9fce3cb
Some checks failed
Build / build-gentoo (push) Failing after 1m10s
Build / download-system-deps (push) Successful in 3m44s
Build / get-source-code (push) Successful in 7m3s
Build / build-appimage (push) Successful in 3m28s
Build / build-android (push) Failing after 2m54s
Build / build-windows (push) Failing after 6m34s
Add QT6 frontend
2024-11-20 08:15:45 -08:00

35 lines
No EOL
907 B
C++

#pragma once
#include <QWindow>
#include <QPushButton>
#include <QCheckBox>
#include <QRadioButton>
#include <QBoxLayout>
#include <QLabel>
#include <vector>
#include <string>
#include <map>
class PrefsWindow : public QWidget {
Q_OBJECT;
std::vector<std::string> backend_ids;
int cur_option = 0;
QLabel *restart_warning;
std::string new_label_setting;
std::string new_frontend;
QPushButton *frontend_btn;
QMenu *frontend_menu;
std::vector<QAction*> frontend_options;
QCheckBox *menu_icons;
QRadioButton *labels_only;
QRadioButton *icons_only;
QRadioButton *both_labels_icons;
QPushButton *revert_btn;
QPushButton *apply_btn;
void update_label_setting();
void set_options_changed(bool changed);
void revert();
void apply();
public:
PrefsWindow();
Q_SIGNALS:
void settings_changed(bool use_labels, bool use_icons);
};