MCPcopy Create free account
hub / github.com/XRay3D/GERBER_X3 / createSettingsTab

Method createSettingsTab

GGEasy/gcode/gcplugin.cpp:58–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58SettingsTabInterface* Plugin::createSettingsTab(QWidget* parent)
59{
60
61 class Tab : public SettingsTabInterface, Settings {
62 QCheckBox* chbxInfo;
63 QCheckBox* chbxSameGFolder;
64 QCheckBox* chbxSimplifyHldi;
65 QComboBox* cbxProfileSort;
66 QLineEdit* leFileExtension;
67 QLineEdit* leFormatMilling;
68 QLineEdit* leFormatLaser;
69 QLineEdit* leLaserCPC;
70 QLineEdit* leLaserDPC;
71 QLineEdit* leSpindleCC;
72 QLineEdit* leSpindleLaserOff;
73 QPlainTextEdit* pteEnd;
74 QPlainTextEdit* pteLaserEnd;
75 QPlainTextEdit* pteLaserStart;
76 QPlainTextEdit* pteStart;
77
78 public:
79 Tab(QWidget* parent = nullptr)
80 : SettingsTabInterface(parent)
81 {
82 setObjectName(QString::fromUtf8("tabGCode"));
83 qDebug() << this;
84 auto /**/ verticalLayout1 = new QVBoxLayout(this);
85 /**/ verticalLayout1->setObjectName(QString::fromUtf8("/**/verticalLayout1"));
86 /**/ verticalLayout1->setContentsMargins(6, 6, 6, 6);
87 // chbxSameGFolder
88 chbxSameGFolder = new QCheckBox(this);
89 chbxSameGFolder->setObjectName(QString::fromUtf8("chbxSameGFolder"));
90 chbxSameGFolder->setText(QApplication::translate("SettingsDialog", "Save the G-Code to the project folder.", nullptr));
91 /**/ verticalLayout1->addWidget(chbxSameGFolder);
92
93 // chbxInfo
94 chbxInfo = new QCheckBox(this);
95 chbxInfo->setObjectName(QString::fromUtf8("chbxInfo"));
96 chbxInfo->setText(QApplication::translate("SettingsDialog", "Add a comment with the parameters G-\320\241ode", nullptr));
97 /**/ verticalLayout1->addWidget(chbxInfo);
98
99 // File Extension
100 auto lblFileExtension = new QLabel(this);
101 lblFileExtension->setObjectName(QString::fromUtf8("lblFileExtension"));
102 lblFileExtension->setText(QApplication::translate("SettingsDialog", "File Extension:", nullptr));
103 /**/ verticalLayout1->addWidget(lblFileExtension);
104 leFileExtension = new QLineEdit(this);
105 leFileExtension->setObjectName(QString::fromUtf8("leFileExtension"));
106 /**/ verticalLayout1->addWidget(leFileExtension);
107
108 auto tabwIndividualSettings = new QTabWidget(this);
109 tabwIndividualSettings->setObjectName(QString::fromUtf8("tabwIndividualSettings"));
110 { // Tab Milling
111
112 auto tabMilling = new QWidget();
113 tabMilling->setObjectName(QString::fromUtf8("tabMilling"));
114 auto verticalLayoutM = new QVBoxLayout(tabMilling);
115 verticalLayoutM->setObjectName(QString::fromUtf8("verticalLayoutM"));

Callers 1

SettingsDialogMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected