56 #include <qcompilerdetection.h>
61 #include <QDialogButtonBox>
64 #include <QListWidget>
67 #include <QMetaObject>
70 #include <QPushButton>
71 #include <QRadioButton>
76 #include "../vtools/visualization/visualization.h"
77 #include "../ifc/xml/vabstractpattern.h"
78 #include "../ifc/ifcdef.h"
79 #include "../vgeometry/vgeometrydef.h"
80 #include "../vmisc/def.h"
81 #include "../vmisc/logging.h"
82 #include "../vmisc/vabstractapplication.h"
83 #include "../vmisc/vcommonsettings.h"
84 #include "../vwidgets/vmaingraphicsscene.h"
94 Q_DECLARE_LOGGING_CATEGORY(vDialog)
148 virtual void SelectedObject(
bool selected, quint32
object, quint32 tool);
237 virtual
void keyPressEvent(QKeyEvent *event) Q_DECL_OVERRIDE;
238 virtual
void closeEvent ( QCloseEvent * event ) Q_DECL_OVERRIDE;
239 virtual
void showEvent( QShowEvent *event ) Q_DECL_OVERRIDE;
258 void ValFormulaChanged(
bool &flag, QLineEdit *edit, QTimer * timer, const QString &postfix = QString());
260 const QString &postfix = QString());
261 qreal
Eval(const QString &text,
bool &flag, QLabel *label, const QString &postfix,
262 bool checkZero = true,
bool checkLessThanZero = false);
264 qreal
normalize(const qreal value, const qreal start, const qreal end) ;
268 const quint32 &ch1 =
NULL_ID, const quint32 &ch2 =
NULL_ID) const;
272 const quint32 &ch1 =
NULL_ID, const quint32 &ch2 =
NULL_ID) const;
278 template <typename T>
281 bool SetObject(const quint32 &
id, QComboBox *box, const QString &toolTip);
282 void DeployFormula(QPlainTextEdit *formula, QPushButton *buttonGrowLength,
int formulaBaseHeight);
284 template <typename T>
287 template <typename T>
290 template <typename T>
293 template <typename T>
296 template <typename T>
299 void ChangeColor(QWidget *widget, const QColor &color);
306 virtual bool eventFilter(QObject *
object, QEvent *event) Q_DECL_OVERRIDE;
307 quint32
DNumber(
const QString &baseName)
const;
315 static QFont
NodeFont(
bool nodeExcluded);
319 bool nodeExcluded =
true,
bool isDuplicate =
false);
326 template <
typename T>
332 template <
typename GObject>
334 const quint32 &ch1 =
NULL_ID,
const quint32 &ch2 =
NULL_ID)
const;
340 template <
typename T>
345 for (qint32 i = 0; i < list->count(); ++i)
347 QListWidgetItem *item = list->item(i);
348 internals.append(qvariant_cast<T>(item->data(Qt::UserRole)));
360 template <
typename T>
368 apply_Button = ui->buttonBox->button(QDialogButtonBox::Apply);
374 template <
typename T>
381 ok_Button = ui->buttonBox->button(QDialogButtonBox::Ok);
385 QPushButton *bCancel = ui->buttonBox->button(QDialogButtonBox::Cancel);
389 qApp->Settings()->GetOsSeparator() ? setLocale(QLocale()) : setLocale(QLocale::c());
393 template <
typename T>
406 template <
typename T>
414 T *toolVis = qobject_cast<T *>(
vis);
417 if (not scene->items().contains(toolVis))
419 scene->addItem(toolVis);
423 toolVis->RefreshGeometry();
428 template <
typename T>
433 value = box->currentData().toInt(&ok);
437 return static_cast<T
>(1);
444 return static_cast<T
>(value);
446 return static_cast<T
>(1);
The VContainer class container of all variables.
The VMainGraphicsScene class main scene.