19 #ifndef OST_GUI_WIDGET_HH
20 #define OST_GUI_WIDGET_HH
31 namespace ost {
namespace gui {
44 Widget(QWidget* widget, QWidget* parent=NULL);
47 void SetDestroyOnClose(
bool flag);
51 bool DestroyOnClose()
const;
56 QWidget* GetInternalWidget();
57 void SetInternalWidget(QWidget* widget);
62 if (unique_id_.size()==0) {
63 unique_id_=this->metaObject()->className();
73 virtual bool Restore(
const QString& prefix)=0;
75 virtual bool Save(
const QString& prefix)=0;
78 mutable QString unique_id_;
80 bool destroy_on_close_;
#define DLLEXPORT_OST_GUI
QList< QAction * > ActionList
Q_DECLARE_METATYPE(ost::io::EntityIOHandlerFactoryBaseP)