28 #include "../propertybrowser/AbstractPropertyManager.h" 37 m_editAction(editAction),
42 QtTreePropertyBrowser* pb =
new QtTreePropertyBrowser(w);
43 pb->setPropertiesWithoutValueMarked(
true);
44 pb->setResizeMode(QtTreePropertyBrowser::ResizeToContents);
48 QGridLayout* lay =
new QGridLayout(w);
53 connect(wid, SIGNAL(aboutToBeclosed()), SLOT(
gridClosed()));
57 setAttribute(Qt::WA_DeleteOnClose,
true);
74 QStringList types_names;
76 types_names <<tr(
"Planar Grid")
77 <<tr(
"Geographic Grid");
84 grid_prop->addSubProperty(font_prop);
89 grid_prop->addSubProperty(color_prop);
95 grid_prop->addSubProperty(type_prop);
98 addProperty(grid_prop, tr(
"Grid"), QColor(175, 255, 175));
100 wid->connect(
this, SIGNAL(
colorChanged(
const QColor&)), SLOT(setColor(
const QColor&)));
101 wid->connect(
this, SIGNAL(
fontChanged(
const QFont&)), SLOT(setFont(
const QFont&)));
102 wid->connect(
this, SIGNAL(
gridTypeChanged(
const int&)), SLOT(setGridType(
const int&)));
static AbstractPropertyManager & getInstance()
It returns a reference to the singleton instance.