Changeset 844 in ntrip
- Timestamp:
- Apr 25, 2008, 9:47:44 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bnswindow.cpp
r815 r844 125 125 _outPortLineEdit->setMaximumWidth(9*ww); 126 126 _mountpointLineEdit = new QLineEdit(settings.value("mountpoint").toString()); 127 _mountpointLineEdit->setMaximumWidth(9*ww); 127 128 _passwordLineEdit = new QLineEdit(settings.value("password").toString()); 128 129 _passwordLineEdit->setMaximumWidth(9*ww); … … 132 133 // TabWidget 133 134 // --------- 134 QWidget* tabs = new QWidget(); 135 QHBoxLayout* layout1 = new QHBoxLayout; 136 137 QWidget* tab_inp = new QWidget(); 138 QWidget* tab_out = new QWidget(); 139 layout1->addWidget(tab_inp); 140 layout1->addSpacing(10); 141 layout1->addWidget(tab_out); 142 143 tabs->setLayout(layout1); 144 145 // Input-Tab 146 // --------- 147 QGridLayout* iLayout = new QGridLayout; 148 iLayout->addWidget(new QLabel("Input Ports"), 0, 0, Qt::AlignLeft); 149 iLayout->addWidget(new QLabel("Ephemeris"), 1, 0, Qt::AlignLeft); 150 iLayout->addWidget(_ephPortLineEdit, 1, 1); 151 iLayout->addWidget(new QLabel("Clocks"), 2, 0, Qt::AlignLeft); 152 iLayout->addWidget(_clkPortLineEdit, 2, 1); 153 iLayout->addWidget(new QLabel(""), 3, 0, Qt::AlignLeft); 154 iLayout->addWidget(new QLabel(""), 4, 0, Qt::AlignLeft); 155 iLayout->addWidget(new QLabel(""), 5, 0, Qt::AlignLeft); 156 tab_inp->setLayout(iLayout); 157 158 // Output-Tab 159 // ---------- 160 QGridLayout* oLayout = new QGridLayout; 161 oLayout->addWidget(new QLabel("Log File"), 0, 0, Qt::AlignLeft); 162 oLayout->addWidget(_logFileLineEdit, 0, 1); 163 oLayout->addWidget(new QLabel("Output (Host)"), 1, 0, Qt::AlignLeft); 164 oLayout->addWidget(_outHostLineEdit, 1, 1); 165 oLayout->addWidget(new QLabel("Output (Port)"), 2, 0, Qt::AlignLeft); 166 oLayout->addWidget(_outPortLineEdit, 2, 1); 167 oLayout->addWidget(new QLabel("Mountpoint"), 3, 0, Qt::AlignLeft); 168 oLayout->addWidget(_mountpointLineEdit, 3, 1); 169 oLayout->addWidget(new QLabel("Password"), 4, 0, Qt::AlignLeft); 170 oLayout->addWidget(_passwordLineEdit, 4, 1); 171 oLayout->addWidget(new QLabel("Output (File)"), 5, 0, Qt::AlignLeft); 172 oLayout->addWidget(_outFileLineEdit, 5, 1); 173 tab_out->setLayout(oLayout); 135 QTabWidget* tabs = new QTabWidget(); 136 137 // Basic Input/Output Tab 138 // ---------------------- 139 QWidget* tab_bas = new QWidget(); 140 tabs->addTab(tab_bas, "Basic"); 141 142 QGridLayout* layout_bas = new QGridLayout; 143 layout_bas->addWidget(new QLabel("Input Ports"), 0, 0, Qt::AlignLeft); 144 layout_bas->addWidget(new QLabel("Ephemeris"), 1, 0, Qt::AlignLeft); 145 layout_bas->addWidget(_ephPortLineEdit, 1, 1); 146 layout_bas->addWidget(new QLabel("Clocks"), 2, 0, Qt::AlignLeft); 147 layout_bas->addWidget(_clkPortLineEdit, 2, 1); 148 layout_bas->setColumnMinimumWidth(2, 9*ww); 149 layout_bas->addWidget(new QLabel("Output Files"), 0, 3, Qt::AlignLeft); 150 layout_bas->addWidget(new QLabel("Log"), 1, 3, Qt::AlignLeft); 151 layout_bas->addWidget(_logFileLineEdit, 1, 4); 152 layout_bas->addWidget(new QLabel("Data"), 2, 3, Qt::AlignLeft); 153 layout_bas->addWidget(_outFileLineEdit, 2, 4); 154 layout_bas->addWidget(new QLabel(""), 3, 0); 155 layout_bas->addWidget(new QLabel(""), 4, 0); 156 layout_bas->addWidget(new QLabel(""), 5, 0); 157 158 tab_bas->setLayout(layout_bas); 159 160 // NTRIP Caster Tab 161 // ---------------- 162 QWidget* tab_cas = new QWidget(); 163 tabs->addTab(tab_cas, "Caster"); 164 165 QGridLayout* layout_cas = new QGridLayout; 166 layout_cas->addWidget(new QLabel(""), 0, 0); 167 layout_cas->addWidget(new QLabel("Host"), 1, 0, Qt::AlignLeft); 168 layout_cas->addWidget(_outHostLineEdit, 1, 1); 169 layout_cas->addWidget(new QLabel("Mountpoint"), 2, 0, Qt::AlignLeft); 170 layout_cas->addWidget(_mountpointLineEdit, 2, 1); 171 layout_cas->setColumnMinimumWidth(2, 9*ww); 172 layout_cas->addWidget(new QLabel("Port"), 1, 3, Qt::AlignLeft); 173 layout_cas->addWidget(_outPortLineEdit, 1, 4); 174 layout_cas->addWidget(new QLabel("Password"), 2, 3, Qt::AlignLeft); 175 layout_cas->addWidget(_passwordLineEdit, 2, 4); 176 layout_cas->addWidget(new QLabel(""), 3, 0); 177 layout_cas->addWidget(new QLabel(""), 4, 0); 178 layout_cas->addWidget(new QLabel(""), 5, 0); 179 180 tab_cas->setLayout(layout_cas); 174 181 175 182 // Log
Note:
See TracChangeset
for help on using the changeset viewer.