1 #include "NomenclatureToolConfigDialog.h" 4 #include <QColorDialog> 10 #include <QVBoxLayout> 12 #include "FeatureNomenclatureTool.h" 25 QVBoxLayout *mainLayout =
new QVBoxLayout;
26 setLayout(mainLayout);
29 mainLayout->addWidget(settingsAreaWidget);
32 mainLayout->addWidget(buttonsAreaWidget);
34 QGridLayout *settingsAreaLayout =
new QGridLayout;
35 settingsAreaWidget->setLayout(settingsAreaLayout);
39 QLabel *fontSizeLabel =
new QLabel(
"Font Size");
40 settingsAreaLayout->addWidget(fontSizeLabel, row, 0);
43 for (
int i = 8; i <= 20; i++) {
49 QLabel *fontColorLabel =
new QLabel(
"Font Color");
50 settingsAreaLayout->addWidget(fontColorLabel, row, 0);
58 QLabel *showVectorsLabel =
new QLabel(
"Show feature extents");
59 settingsAreaLayout->addWidget(showVectorsLabel, row, 0);
71 QLabel *showApprovedLabel =
new QLabel(
"Show IAU approved only");
72 settingsAreaLayout->addWidget(showApprovedLabel, row, 0);
78 QLabel *defaultOnLabel =
new QLabel(
79 "Enabled when " + QCoreApplication::instance()->applicationName() +
81 settingsAreaLayout->addWidget(defaultOnLabel, row, 0);
88 QHBoxLayout *buttonsAreaLayout =
new QHBoxLayout;
89 buttonsAreaWidget->setLayout(buttonsAreaLayout);
91 buttonsAreaLayout->addStretch();
93 QPushButton *okayButton =
new QPushButton(
"&Ok");
94 okayButton->setIcon(QIcon::fromTheme(
"dialog-ok"));
95 buttonsAreaLayout->addWidget(okayButton);
96 connect(okayButton, SIGNAL(clicked()),
98 connect(okayButton, SIGNAL(clicked()),
99 this, SLOT(accept()));
101 QPushButton *applyButton =
new QPushButton(
"&Apply");
102 applyButton->setIcon(QIcon::fromTheme(
"dialog-ok-apply"));
103 buttonsAreaLayout->addWidget(applyButton);
104 connect(applyButton, SIGNAL(clicked()),
107 QPushButton *cancelButton =
new QPushButton(
"&Cancel");
108 cancelButton->setIcon(QIcon::fromTheme(
"dialog-cancel"));
109 buttonsAreaLayout->addWidget(cancelButton);
110 connect(cancelButton, SIGNAL(clicked()),
111 this, SLOT(reject()));
152 QPalette colorPalette;
171 QColor newColor = QColorDialog::getColor(
172 colorPalette.color(QPalette::Button),
this);
174 if(newColor.isValid()) {
175 colorPalette.setColor(QPalette::Button, newColor);
int toInt(const QString &string)
Global function to convert from a string to an integer.
Namespace for ISIS/Bullet specific routines.