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.
 
 

41 lines
963 B

#ifndef SCREEN_RECORDER_MAIN_WINDOW_HPP
#define SCREEN_RECORDER_MAIN_WINDOW_HPP
#include "obs-manager.hpp"
#include "settings-window.hpp"
#include "preview-window.hpp"
#include <gtkmm.h>
class MainWindow : public Gtk::Window
{
public:
MainWindow(Glib::RefPtr<Gtk::Application> app, OBSManager *obs);
virtual ~MainWindow();
private:
Glib::RefPtr<Gtk::Application> mApp;
OBSManager *mOBS;
void onPreviewClicked();
void onStartClicked();
void onSettingsClicked();
void onExitClicked();
void onCleanupDone();
Gtk::Box mBoxMain;
Gtk::Box mBoxSpacer;
Gtk::Button mButtonPreview;
Gtk::Button mButtonStart;
Gtk::Button mButtonSettings;
Gtk::Button mButtonExit;
Gtk::Label mLabelVersion;
SettingsWindow mSettingsWindow;
PreviewWindow mPreviewWindow;
// Signals
void onPreviewStarted();
void onRecordingStarted();
void onRecordingStopped();
void on_show();
};
#endif