AppleWin/source/frontends/qapple/preferences.h
Andrea Odetti 2258d91208 Reuse the same preferences dialog, so the drop down menus keep the previous choices.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2017-10-14 19:18:44 +01:00

47 lines
895 B
C++

#ifndef PREFERENCES_H
#define PREFERENCES_H
#include "ui_preferences.h"
#include <vector>
class Preferences : public QDialog, private Ui::Preferences
{
Q_OBJECT
public:
struct Data
{
std::vector<QString> disks;
std::vector<QString> hds;
};
explicit Preferences(QWidget *parent);
void setData(const Data & data);
Data getData() const;
private slots:
void on_disk1_activated(int index);
void on_disk2_activated(int index);
void on_hd1_activated(int index);
void on_hd2_activated(int index);
void on_pushButton_clicked();
void on_pushButton_2_clicked();
void on_pushButton_3_clicked();
void on_pushButton_4_clicked();
private:
std::vector<QComboBox *> myDisks;
std::vector<QComboBox *> myHDs;
void browseDisk(const std::vector<QComboBox *> & disks, const size_t id);
};
#endif // PREFERENCES_H