| 258 | } |
| 259 | |
| 260 | void StoreProgress::save_run(ISessionDataGetter *getter) |
| 261 | { |
| 262 | _isExport = false; |
| 263 | setTitle(L_S(STR_PAGE_DLG, S_ID(IDS_DLG_SAVE), "Save")); |
| 264 | QString file = _store_session->MakeSaveFile(false); |
| 265 | _fileLab->setText(file); |
| 266 | _store_session->_sessionDataGetter = getter; |
| 267 | |
| 268 | if (_store_session->IsLogicDataType() && _view != NULL) |
| 269 | { |
| 270 | QFormLayout *lay = new QFormLayout(); |
| 271 | lay->setContentsMargins(5, 0, 0, 0); |
| 272 | _start_cursor = new DsComboBox(); |
| 273 | _end_cursor = new DsComboBox(); |
| 274 | |
| 275 | _start_cursor->addItem("-"); |
| 276 | _end_cursor->addItem("-"); |
| 277 | |
| 278 | auto &cursor_list = _view->get_cursorList(); |
| 279 | |
| 280 | for (int i=0; i<cursor_list.size(); i++){ |
| 281 | //tr |
| 282 | QString cursor_name = L_S(STR_PAGE_DLG, S_ID(IDS_DLG_CURSOR), "Cursor") + |
| 283 | QString::number(i+1); |
| 284 | _start_cursor->addItem(cursor_name); |
| 285 | _end_cursor->addItem(cursor_name); |
| 286 | } |
| 287 | |
| 288 | lay->addRow(L_S(STR_PAGE_DLG, S_ID(IDS_DLG_START_CURSOR), "Start") , _start_cursor); |
| 289 | lay->addRow(L_S(STR_PAGE_DLG, S_ID(IDS_DLG_END_CURSOR), "End"), _end_cursor); |
| 290 | _grid->addLayout(lay, 2, 0, 1, 2); |
| 291 | } |
| 292 | |
| 293 | show(); |
| 294 | } |
| 295 | |
| 296 | void StoreProgress::export_run() |
| 297 | { |
no test coverage detected