-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSettingsWindow.h
More file actions
68 lines (53 loc) · 1.51 KB
/
SettingsWindow.h
File metadata and controls
68 lines (53 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#ifndef _SETTINGS_WINDOW_H_
#define _SETTINGS_WINDOW_H_
#include <gtkmm.h>
#include <vector>
#include <string>
#include "Subject.h"
#include "Observer.h"
#include "SettingsFileManager.h"
class Settings_Window : public Gtk::Window, public Subject
{
public:
// Constructor
Settings_Window();
// Destructor
~Settings_Window();
// get_settings returns the settings list
std::vector<std::string>& get_settings();
// retrieve settings gets the settings from the file manager
void retrieve_settings();
// apply settings saves the output to the external file
void apply_settings();
// attach
void attach(Observer& o) override;
// detach
void detach(Observer& o) override;
// notify_observers
void notify_observers(int s) override;
protected:
// signal handlers for the dropdown menus
void format_changed();
void bitrate_changed();
void framerate_changed();
private:
// observers vector
std::vector<Observer*> observers;
// settings list
std::vector<std::string> settings_list;
// file manager for saving and loading settings
Settings_File_Manager* settings_file_manager;
// gtk widgets for the window
Gtk::Button save_btn;
Gtk::Label format_lbl;
Gtk::Label bitrate_lbl;
Gtk::Label framerate_lbl;
Gtk::ComboBoxText format_dd;
Gtk::ComboBoxText bitrate_dd;
Gtk::ComboBoxText framerate_dd;
Gtk::Box layout;
Gtk::Box format_box;
Gtk::Box bitrate_box;
Gtk::Box framerate_box;
};
#endif