22 #ifndef SELECT_LAUNCHER_H
23 #define SELECT_LAUNCHER_H
25 #include <QtWidgets/QMainWindow>
31 #include <QVBoxLayout>
32 #include <QFileDialog>
35 #include <QSystemTrayIcon>
36 #include "util_collection.h"
37 #include "job_selection_form.h"
39 #include "log_emitter.h"
40 #include "signal_counter.h"
41 #include "widgets/about_dialog.h"
52 static const char WARN_NOTIFY_STYLE[];
53 static const char ERR_NOTIFY_STYLE[];
54 static const char SUCCESS_NOTIFY_STYLE[];
67 void select_job(QString command);
68 bool load_job_widget(QWidget* job_ui_widget);
69 bool set_is_running_bg(
bool is_running);
70 bool get_is_pending_close();
73 void setVisible(
bool visible);
82 void selected(QString cmd);
108 void command_selected(QString cmd);
109 void command_rejected(QString cmd);
110 void command_pending();
111 void save_log_text();
112 void save_err_warn_text();
114 void indicate_error();
115 void indicate_warning();
131 QStatusBar* statusbar;
134 QWidget* central_widget;
135 QVBoxLayout* central_layout;
141 QWidget* plugin_widget;
144 QTabWidget* tabs_widget;
156 QStringList pluginFileNames;
161 QAction* saveLogText;
162 QAction* saveErrWarnText;
165 QAction* aboutPluginsAct;
185 void create_actions();
186 void closeEvent(QCloseEvent *event);
190 #endif // SELECT_LAUNCHER_H
The SignalCounter class is a simplified version of QSignalSpy.
Definition: signal_counter.h:33
Definition: log_emitter.h:41
Definition: util_collection.h:34
bool is_pending_close
pending_close indicates a close event has been sent but not yet accepted
Definition: select_launcher.h:176
QAction * exitAct
Menu Actions.
Definition: select_launcher.h:160
Definition: log_text.h:42
bool attach_widget(QWidget *w, const QString &type)
attach_widget adds the given widget to the host GUI
Definition: select_launcher.cpp:287
bool is_running_bg
is_running_bg True when a background worker is running
Definition: select_launcher.h:171
void show_msg_level(QtMsgType type, bool is_notification)
Visual indication that the message type has been published.
Definition: select_launcher.cpp:90
void close_requested()
close_requested broadcasts when a close event is requested but ignored because a bg worker is still r...
void show_me()
show_me is a wrapper around showNormal that also raises the window into the forground.
Definition: select_launcher.cpp:79
Definition: select_launcher.h:43