47 #ifndef MIRA_EDITORPARTAREA_H_ 48 #define MIRA_EDITORPARTAREA_H_ 55 #include <QMouseEvent> 61 class EditorPartWindow;
62 class EditorPartAreaTabBar;
76 EditorPartArea(QWidget* parent=0, Qt::WindowFlags flags=Qt::WindowFlags()) ;
104 virtual bool eventFilter(QObject*
object, QEvent* event);
155 std::set<EditorPartWindow*> mSubWindows;
156 std::set<EditorPartWindow*> mDockedSubWindows;
160 bool mAutoHideDecorations;
171 setAcceptDrops(
true);
183 event->acceptProposedAction();
188 int tab = tabAt(event->pos());
189 if(tab>=0 && tab!=currentIndex())
190 setCurrentIndex(tab);
196 QTabBar::mouseDoubleClickEvent(e);
198 if(e->button()==Qt::LeftButton)
This is a replacement for QMdiArea.
Definition: EditorPartArea.h:71
virtual bool eventFilter(QObject *object, QEvent *event)
void scrollToSubWindow(EditorPartWindow *window)
void setAutoHideDecorations(bool on)
void tabDoubleClicked(int index)
virtual void mouseDoubleClickEvent(QMouseEvent *e)
Definition: EditorPartArea.h:194
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
void restoredSubwindow(EditorPartWindow *window)
void scrolledAreaBy(int dx, int dy)
void onTabDoubleClicked(int)
void resizeMaximizedSubwindows(const QSize &size)
std::set< EditorPartWindow * > getSubWindows()
EditorPartAreaTabBar(QWidget *parent)
Definition: EditorPartArea.h:170
void rearrangeMaximizedSubwindows()
std::vector< EditorPartWindow * > getTabbedWindows()
void updateMaximizedSubwindowsVisibility()
void dockSubwindow(EditorPartWindow *window)
Definition: EditorPartWindow.h:61
void rearrangeMaximizedSubwindow(EditorPartWindow *window)
void undockSubwindow(EditorPartWindow *window)
void editorWindowActivated(EditorPartWindow *window)
void onFocusChanged(QWidget *old, QWidget *now)
void removeSubWindow(EditorPartWindow *window)
EditorPartArea(QWidget *parent=0, Qt::WindowFlags flags=Qt::WindowFlags())
virtual void addSubWindow(EditorPartWindow *window)
void dragMoveEvent(QDragMoveEvent *event)
Definition: EditorPartArea.h:186
void setBackground(const QBrush &brush)
void tabContextMenu(int index, QPoint globalPos)
virtual void contextMenuEvent(QContextMenuEvent *e)
Definition: EditorPartArea.h:202
EditorPartWindow * activeSubWindow() const
void activateSubWindow(EditorPartWindow *window)
friend class ScrollArea
Definition: EditorPartArea.h:149
Definition: EditorPartArea.h:165
virtual void resizeEvent(QResizeEvent *event)
void dragEnterEvent(QDragEnterEvent *event)
Definition: EditorPartArea.h:181
void maximizedSubwindow(EditorPartWindow *window)