You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.4 KiB
60 lines
1.4 KiB
#include "recording-window.hpp"
|
|
#include "obs-manager.hpp"
|
|
#include "settings-manager.hpp"
|
|
#include <iostream>
|
|
#include <string>
|
|
|
|
using namespace std;
|
|
|
|
RecordingWindow::RecordingWindow(OBSManager *obs)
|
|
: mBoxMain(Gtk::Orientation::ORIENTATION_VERTICAL, 2),
|
|
mButtonStart("Start Recording"),
|
|
mButtonSettings("Settings"),
|
|
mLabelVersion("Version: "),
|
|
mSettingsWindow(obs)
|
|
{
|
|
set_title("New Recording");
|
|
set_default_size(1048, 720);
|
|
set_border_width(10);
|
|
mButtonStart.signal_clicked().connect(
|
|
sigc::mem_fun(*this, &RecordingWindow::onStartClicked));
|
|
mButtonSettings.signal_clicked().connect(
|
|
sigc::mem_fun(*this, &RecordingWindow::onSettingsClicked));
|
|
|
|
mBoxMain.add(mButtonStart);
|
|
mBoxMain.add(mButtonSettings);
|
|
mBoxMain.add(mLabelVersion);
|
|
|
|
mButtonStart.show();
|
|
mButtonSettings.show();
|
|
mLabelVersion.show();
|
|
|
|
add(mBoxMain);
|
|
mBoxMain.show();
|
|
|
|
string version;
|
|
version.append("OBS Version: ");
|
|
version.append(obs->GetVersion());
|
|
mLabelVersion.set_text(version);
|
|
|
|
auto settings = new SettingsManager();
|
|
obs->LoadSettings(settings);
|
|
}
|
|
|
|
RecordingWindow::~RecordingWindow()
|
|
{
|
|
}
|
|
|
|
void RecordingWindow::onStartClicked()
|
|
{
|
|
cout << "Clicked" << endl;
|
|
}
|
|
|
|
void RecordingWindow::onSettingsClicked()
|
|
{
|
|
mSettingsWindow.set_transient_for(*this);
|
|
mSettingsWindow.show();
|
|
}
|
|
|
|
|
|
|