47 #ifndef MIRA_EDITORPARTAREA_H_ 48 #define MIRA_EDITORPARTAREA_H_ 55 #include <QMouseEvent> 63 class EditorPartWindow;
64 class EditorPartAreaTabBar;
78 EditorPartArea(QWidget* parent=0, Qt::WindowFlags flags=Qt::WindowFlags()) ;
96 void tileSubWindows();
100 void setBackground(
const QBrush& brush);
102 void setAutoHideDecorations(
bool on);
106 virtual bool eventFilter(QObject*
object, QEvent* event);
107 virtual void resizeEvent(QResizeEvent* event);
111 std::vector<EditorPartWindow*> getTabbedWindows();
126 void resizeMaximizedSubwindows(
const QSize& size);
127 void rearrangeMaximizedSubwindows();
128 void updateMaximizedSubwindowsVisibility();
130 void scrolledAreaBy(
int dx,
int dy);
132 std::set<EditorPartWindow*> getSubWindows();
136 void onFocusChanged(QWidget *old, QWidget *now);
138 void onTabChanged(
int);
139 void onTabDoubleClicked(
int);
152 friend class ScrollArea;
157 std::set<EditorPartWindow*> mSubWindows;
158 std::set<EditorPartWindow*> mDockedSubWindows;
162 bool mAutoHideDecorations;
173 setAcceptDrops(
true);
185 event->acceptProposedAction();
190 int tab = tabAt(event->pos());
191 if(tab>=0 && tab!=currentIndex())
192 setCurrentIndex(tab);
198 QTabBar::mouseDoubleClickEvent(e);
200 if(e->button()==Qt::LeftButton)
This is a replacement for QMdiArea.
Definition: EditorPartArea.h:73
void tabDoubleClicked(int index)
virtual void mouseDoubleClickEvent(QMouseEvent *e)
Definition: EditorPartArea.h:196
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
EditorPartAreaTabBar(QWidget *parent)
Definition: EditorPartArea.h:172
Definition: EditorPartWindow.h:63
void dragMoveEvent(QDragMoveEvent *event)
Definition: EditorPartArea.h:188
void tabContextMenu(int index, QPoint globalPos)
Gui export macro declaration.
virtual void contextMenuEvent(QContextMenuEvent *e)
Definition: EditorPartArea.h:204
#define MIRA_GUI_RCP_EXPORT
Definition: GuiRCPExports.h:61
Definition: EditorPartArea.h:167
void dragEnterEvent(QDragEnterEvent *event)
Definition: EditorPartArea.h:183