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.
40 lines
921 B
40 lines
921 B
#include "recording-window.hpp"
|
|
#include <iostream>
|
|
#include <obs/obs.h>
|
|
|
|
RecordingWindow::RecordingWindow()
|
|
: m_box_main(Gtk::Orientation::ORIENTATION_VERTICAL, 2),
|
|
m_button_start("Start Recording"),
|
|
m_label_version("Version: ")
|
|
{
|
|
set_title("New Recording");
|
|
set_default_size(640, 480);
|
|
set_border_width(10);
|
|
m_button_start.signal_clicked().connect(sigc::mem_fun(*this, &RecordingWindow::on_button_clicked));
|
|
|
|
//m_box_main.set_margin(10);
|
|
m_box_main.add(m_button_start);
|
|
m_box_main.add(m_label_version);
|
|
|
|
m_button_start.show();
|
|
m_label_version.show();
|
|
|
|
add(m_box_main);
|
|
m_box_main.show();
|
|
|
|
std::string version = "OBS Version: ";
|
|
version.append(obs_get_version_string());
|
|
|
|
m_label_version.set_text(version);
|
|
}
|
|
|
|
RecordingWindow::~RecordingWindow()
|
|
{
|
|
}
|
|
|
|
void RecordingWindow::on_button_clicked()
|
|
{
|
|
std::cout << "Clicked" << std::endl;
|
|
}
|
|
|
|
|