32 #ifndef CXLAYOUTEDITORWIDGET_H_
33 #define CXLAYOUTEDITORWIDGET_H_
35 #include "cxGuiExport.h"
63 QSize size = QLineEdit::minimumSizeHint();
64 size.setWidth(size.height()*2);
88 void rowsColumnsChangedSlot();
89 void contextMenuSlot(
const QPoint& point);
90 void splitActionSlot();
91 void mergeActionSlot();
92 void groupActionSlot();
93 void typeActionSlot();
101 void colorRegion(
LayoutRegion region, QString selectColor, QString backColor);
102 std::set<LayoutData::iterator> getSelectedViews();
103 void updateSelection(QPoint pos);
104 void setSaneGroupIDs();
106 QBoxLayout* mTopLayout;
107 QBoxLayout* mRCLayout;
108 QGridLayout* mLayout;
111 QLineEdit* mNameEdit;
113 std::vector<std::vector<GridElement> > mViewDataCache;
115 std::map<PLANE_TYPE, QString> mPlaneNames;
122 ViewNamesType(PLANE_TYPE plane,
View::Type view, QString name) : mPlane(plane), mView(view), mName(name) {}
127 std::vector<ViewNamesType> mViewNames;
128 QString getViewName(LayoutViewData data)
const;
130 virtual void mouseMoveEvent(QMouseEvent* event);
131 virtual void mousePressEvent(QMouseEvent* event);
virtual QSize sizeHint() const
SmallLineEdit(QWidget *parent=0)