Styler.cpp
Go to the documentation of this file.
1 #include "Styler.h"
2 
3 // TerraLib
6 
7 // Qt
8 #include <QPushButton>
9 #include <QGridLayout>
10 
12 QDialog(parent)
13 {
14  initDialog();
15 
16  m_explorer->setLayer(l, "", 0);
17 }
18 
20 {
21  setWindowTitle(tr("Change Layer Style"));
22 
23  QPushButton* btn = new QPushButton(tr("Close"), this);
24  QHBoxLayout* hL = new QHBoxLayout;
25 
26  hL->addSpacerItem(new QSpacerItem(0, 0, QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding));
27  hL->addWidget(btn);
28 
30 
31  QVBoxLayout* vL = new QVBoxLayout;
32 
33  vL->addWidget(m_explorer);
34  vL->addLayout(hL);
35 
36  QGridLayout* grd = new QGridLayout(this);
37  grd->addLayout(vL, 0, 0);
38 
39  connect(btn, SIGNAL(released()), SLOT(close()));
40 }
te::qt::widgets::StyleDockWidget * m_explorer
Definition: Styler.h:57
This is the base class for layers.
Definition: AbstractLayer.h:77
Styler(te::map::AbstractLayer *l, QWidget *parent=0)
Definition: Styler.cpp:11
This is the base class for Layers.
A dock widget used control the geographic data style using SE elements and a property browser to show...
void initDialog()
Definition: Styler.cpp:19
void setLayer(te::map::AbstractLayer *layer, std::string selColor, te::se::Rule *currentRule)
Sets a style element to this widget.
A dock widget used control the geographic data style using SE elements and a property browser to show...