-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRecorderBtnFactory.cpp
More file actions
38 lines (32 loc) · 876 Bytes
/
RecorderBtnFactory.cpp
File metadata and controls
38 lines (32 loc) · 876 Bytes
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
#include "RecorderBtnFactory.h"
#include "StartRecordButton.h"
#include "StopRecordButton.h"
#include "SettingsButton.h"
Recorder_Btn_Factory::Recorder_Btn_Factory()
{
Start_Record_Button start_recording_btn;
Settings_Button settings_btn;
not_recording_btns.push_back(&start_recording_btn);
not_recording_btns.push_back(&settings_btn);
Stop_Record_Button stop_recording_btn;
recording_btns.push_back(&stop_recording_btn);
}
Recorder_Btn_Factory::~Recorder_Btn_Factory()
{
for (Gtk::Button* btn : recording_btns)
{
delete btn;
}
for (Gtk::Button* btn : not_recording_btns)
{
delete btn;
}
}
std::vector<Gtk::Button*>& Recorder_Btn_Factory::create_recording_btns()
{
return recording_btns;
}
std::vector<Gtk::Button*>& Recorder_Btn_Factory::create_not_recording_btns()
{
return not_recording_btns;
}