27 #include <boost/function.hpp>
29 #include "../WQtGui.h"
30 #include "../guiElements/WQtDockWidget.h"
31 #include "WUIQtWidgetBase.h"
32 #include "core/common/WLogger.h"
35 m_mainWindow( mainWindow ),
59 conditionSet.
add( abortCondition );
64 conditionSet.
add( doneNotify );
108 return WQtGui::execInGUIThread< bool >( boost::bind( &QWidget::isVisible,
m_widget ) );
190 asDock->setFeatures( QDockWidget::NoDockWidgetFeatures );
208 widgetDock->setObjectName( QString(
"Custom Dock Window " ) +
getTitleQString() );
209 widgetDock->setWidget( content );
Implements a WCondition, but can be fired only ONCE.
Class allowing multiple conditions to be used for one waiting cycle.
virtual void wait() const
Wait for the condition.
void setResetable(bool resetable=true, bool autoReset=true)
Sets the resetable flag.
virtual void add(std::shared_ptr< WCondition > condition)
Adds another condition to the set of conditions to wait for.
std::shared_ptr< WCondition > SPtr
Shared pointer type for WCondition.
std::shared_ptr< WGEImage > SPtr
Convenience typedef for a std::shared_ptr< WGEImage >.
This class contains the main window and the layout of the widgets within the window.
void deregisterCustomWidget(WUIQtWidgetBase *widget)
De-register a custom widget.
void registerCustomWidget(WUIQtWidgetBase *widget)
Register a custom widget.
QMainWindow * getDefaultCustomDockAreaWidget() const
The Widget to add custom docks.
Qt::DockWidgetArea getDefaultCustomDockArea() const
The default dock area to use for adding custom docks.
static QSettings & getSettings()
Returns the settings object.
static void execInGUIThreadAsync(boost::function< void(void) > functor, WCondition::SPtr notify=WCondition::SPtr())
Call a given function from within the GUI thread.
static void execInGUIThread(boost::function< void(void) > functor, WCondition::SPtr notify=WCondition::SPtr())
Call a given function from within the GUI thread.
WStreamedLogger debug(const std::string &source)
Logging a debug message.