Loading...
Searching...
No Matches
dockWidget.h
Go to the documentation of this file.
#ifndef BALL_VIEW_WIDGETS_DOCKABLEWIDGET_H
#define BALL_VIEW_WIDGETS_DOCKABLEWIDGET_H
#ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H
# include <BALL/VIEW/KERNEL/modularWidget.h>
#endif
#include <QtWidgets/QDockWidget>
#include <QtGui/QDropEvent>
#include <QtWidgets/QDockWidget>
#include <QtGui/QMouseEvent>
#include <QtWidgets/QGridLayout>
namespace BALL
{
namespace VIEW
{
class BALL_VIEW_EXPORT DockWidget
: public QDockWidget,
public ModularWidget
{
Q_OBJECT
public:
BALL_EMBEDDABLE(DockWidget,Embeddable)
DockWidget(QWidget* parent, const char* title = 0);
virtual ~DockWidget(){}
void setGuest(QWidget& guest);
virtual void initializeWidget(MainControl& main_control);
virtual void fetchPreferences(INIFile& inifile);
virtual void writePreferences(INIFile& inifile);
virtual void setWidgetVisible(bool state);
QGridLayout* getGuestLayout() { return layout_;}
public Q_SLOTS:
virtual void dropEvent(QDropEvent* e);
virtual void dragEnterEvent(QDragEnterEvent* e);
virtual void showGuestContextMenu(const QPoint&) {};
protected:
// required for Python bindings, but dont use this methods:
DockWidget();
DockWidget(const DockWidget&);
QWidget* container_;
QWidget* guest_;
QGridLayout* layout_;
};
} // namespace VIEW
} // namespace BALL
#endif
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::Embeddable::Embeddable
Embeddable(const String &identifier="<Embeddable>")
BALL::INIFile
Definition INIFile.h:29
BALL::VIEW::DockWidget::dropEvent
virtual void dropEvent(QDropEvent *e)
BALL::VIEW::DockWidget::setWidgetVisible
virtual void setWidgetVisible(bool state)
For usage with Python:
BALL::VIEW::DockWidget::guest_
QWidget * guest_
Definition dockWidget.h:84
BALL::VIEW::DockWidget::DockWidget
DockWidget()
BALL::VIEW::DockWidget::layout_
QGridLayout * layout_
Definition dockWidget.h:85
BALL::VIEW::DockWidget::showGuestContextMenu
virtual void showGuestContextMenu(const QPoint &)
Definition dockWidget.h:75
BALL::VIEW::DockWidget::setGuest
void setGuest(QWidget &guest)
BALL::VIEW::DockWidget::initializeWidget
virtual void initializeWidget(MainControl &main_control)
BALL::VIEW::DockWidget::getGuestLayout
QGridLayout * getGuestLayout()
Definition dockWidget.h:64
BALL::VIEW::DockWidget::DockWidget
DockWidget(const DockWidget &)
BALL::VIEW::DockWidget::writePreferences
virtual void writePreferences(INIFile &inifile)
BALL::VIEW::DockWidget::container_
QWidget * container_
Definition dockWidget.h:83
BALL::VIEW::DockWidget::fetchPreferences
virtual void fetchPreferences(INIFile &inifile)
BALL::VIEW::DockWidget::dragEnterEvent
virtual void dragEnterEvent(QDragEnterEvent *e)
BALL::VIEW::DockWidget::DockWidget
DockWidget(QWidget *parent, const char *title=0)
Use this constructor!
BALL::VIEW::MainControl
Definition mainControl.h:118
BALL::VIEW::ModularWidget::ModularWidget
ModularWidget(const char *name="<ModularWidget>")
QDockWidget
QWidget
BALL_EMBEDDABLE
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition embeddable.h:31
modularWidget.h
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13