Receptacle
 All Classes Files Functions Variables Pages
SelectLauncher Class Reference
Inheritance diagram for SelectLauncher:

Public Slots

void show_msg_level (QtMsgType type, bool is_notification)
 Visual indication that the message type has been published. More...
 
void show_me ()
 show_me is a wrapper around showNormal that also raises the window into the forground. More...
 

Signals

void close_requested ()
 close_requested broadcasts when a close event is requested but ignored because a bg worker is still runing.
 
void selected (QString cmd)
 

Public Member Functions

bool populate_command_options (UtilCollection *utils)
 
bool connect_logger (LogEmitter *log_emitter)
 
bool connect_errwarn_flag (SignalCounter *err_flag, SignalCounter *fatal_flag, SignalCounter *warn_flag)
 
bool attach_widget (QWidget *w, const QString &type)
 attach_widget adds the given widget to the host GUI More...
 
void select_job (QString command)
 
bool load_job_widget (QWidget *job_ui_widget)
 
bool set_is_running_bg (bool is_running)
 
bool get_is_pending_close ()
 
void setVisible (bool visible)
 

Static Public Attributes

static const char WARN_NOTIFY_STYLE [] = "QStatusBar {background: yellow}"
 
static const char ERR_NOTIFY_STYLE [] = "QStatusBar {background: red}"
 
static const char SUCCESS_NOTIFY_STYLE [] = "QStatusBar {background: green}"
 

Protected Slots

void command_selected (QString cmd)
 
void command_rejected (QString cmd)
 
void command_pending ()
 
void save_log_text ()
 
void save_err_warn_text ()
 
void indicate_error ()
 
void indicate_warning ()
 
void about ()
 

Protected Member Functions

void create_menus ()
 
void create_actions ()
 
void closeEvent (QCloseEvent *event)
 

Protected Attributes

QMenuBar * menubar
 
QMenu * menu_file
 
QMenu * menu_help
 
QStatusBar * statusbar
 
QWidget * central_widget
 
QVBoxLayout * central_layout
 
JobSelectionFormselect_form
 
QWidget * plugin_widget
 
QTabWidget * tabs_widget
 
LogTextmsg_log
 
LogTexterr_log
 
LogEmitterlogger
 
QStringList pluginFileNames
 
QDir pluginsDir
 
QAction * exitAct
 Menu Actions.
 
QAction * saveLogText
 
QAction * saveErrWarnText
 
QAction * aboutAct
 
QAction * aboutQtAct
 
QAction * aboutPluginsAct
 
bool is_running_bg
 is_running_bg True when a background worker is running
 
bool is_pending_close
 pending_close indicates a close event has been sent but not yet accepted
 
SignalCountererr_flag
 
SignalCounterwarn_flag
 
SignalCounterfatal_flag
 

Member Function Documentation

bool SelectLauncher::attach_widget ( QWidget *  w,
const QString &  type 
)

attach_widget adds the given widget to the host GUI

Parameters
wQWidget parent widget for the plugin UI
typeQString either "simple" or "complex"
Returns
True on success, False otherwise
void SelectLauncher::show_me ( )
slot

show_me is a wrapper around showNormal that also raises the window into the forground.

Resources: http://qt-project.org/forums/viewthread/1971 http://stackoverflow.com/questions/6087887/bring-window-to-front-raise-show-activatewindow-dont-work

void SelectLauncher::show_msg_level ( QtMsgType  type,
bool  is_notification 
)
slot

Visual indication that the message type has been published.

Parameters
typeQtMsgType indicating the error level
is_notificationbool indicating if this is an indidication (less obtrusive) or notification (more obtrusive)

The documentation for this class was generated from the following files: