← index
acidcamGL/launcher.gui/main_window.hpp
Source: acidcamGL/launcher.gui/main_window.hpp
#ifndef __MAIN_WINDOW_H_
#define __MAIN_WINDOW_H_

#define GUI_VERSION "1.4.0"

#include<QMainWindow>
#include<QTextEdit>
#include<QLineEdit>
#include<QPushButton>
#include<QThread>
#include<QLabel>
#include<QComboBox>
#include<QCheckBox>
#include<QProcess>
#include<vector>
#include<QSettings>
#include<QMenu>
#include<QAction>
#include<QMenuBar>
#include<QMessageBox>
#include"options_window.hpp"
#include"auto_window.hpp"
#include"sock_server.hpp"

class MainWindow : public QMainWindow {
private:
    Q_OBJECT
public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void closeEvent(QCloseEvent *) override;
public slots:
    void launchProgram();
    void LogMessage(const QString &text);
    void Log(const QString &text);
    void updateCommand();
    void textChanged_device(const QString &text);
    void comboChanged_mode(int index);
    void selectShaders();
    void selectVideo();
    void selectPath();
    void setMatPath();
    void setPlaylistPath();
    void setAutoFilter();
    void setOutputFile();
    void setCustomFile();
    void menu_About();
    void menu_Exit();
    void menu_Options();
    void menu_Auto();
    void load();
    void save();
    QString getShaderPath();
    void setAudioDisable();
signals:
    void LogString(const QString &text);
private:
    QTextEdit *command_stdout;
    QLineEdit *command;
    QPushButton *start_button;
    QComboBox *mode_select;
    QLineEdit *device_edit;
    QPushButton *select_video;
    QLineEdit *select_video_text;
    QPushButton *select_filters;
    QLineEdit *select_filters_text;
    QStringList cmd_list;
    QPushButton *select_path;
    QLineEdit *select_path_text;
    QLineEdit *camera_res;
    QLineEdit *window_res;
    QCheckBox *full_screen;
    QCheckBox *full_screen_resize;
    QLineEdit *monitor_;
    QCheckBox *syphon_enabled;
    QLineEdit *start_shader;
    QLineEdit *start_filter;
    QLineEdit *start_sec;
    QCheckBox *record_video;
    QComboBox *record_type;
    QComboBox *codec_select;
    QLineEdit *record_name;
    QLineEdit *record_crf;
    QPushButton *record_set;
    QLineEdit *material_filename;
    QPushButton *material_set;
    QLineEdit *playlist_file;
    QPushButton *playlist_set;
    QCheckBox *enable_playback;
    QLineEdit *enable_bpm;
    QLineEdit *auto_filter;
    QPushButton *auto_set;
    QCheckBox *enable_res;
    QCheckBox *enable_cam;
    QCheckBox *enable_shuffle;
    QLineEdit *fps;
    QCheckBox *custom_on;
    QLineEdit *custom_file;
    QPushButton *custom_set;
    QCheckBox *video_repeat;
    QCheckBox *audio_disable;
    QLineEdit *audio_sense;
    QLineEdit *audio_channel;
    QLineEdit *max_frames;
    std::vector<FILE*> fptr;
    QSettings *settings;
    QMenu *file_menu,*help_menu, *run_menu;
    QAction *help_about, *file_exit, *file_options, *run_exec, *open_auto;
    Options *options_window;
    Auto *auto_window;
  
};


#endif