aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui/programtableview.cpp
Commit message (Collapse)AuthorAge
* Disable text elide for memory and program views.Pavel Pisa2019-06-05
| | | | | | | | | | Set of Monospace font does not ensure that different hexadecimal numbers do not vary in in the text size on MAC OS. QFontDatabase::systemFont(QFontDatabase::FixedFont) works on MAC OS but selected font looks ugly. Disable elide ensures that most of the text is seen. Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
* The follow stage selects address cell to make rest visible.Pavel Pisa2019-03-31
| | | | Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
* Do not save program view start address when changed due to program executed.Pavel Pisa2019-03-25
| | | | Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
* More precise program and memory tableviews column width calculation.Pavel Pisa2019-03-15
| | | | | | | This should resolve text elide problem experienced on some combination of desktop/fonts setting. Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
* Fix nested calls of setCurrentIndex which caused breakage.Pavel Pisa2019-03-14
| | | | | | | | | | | | | | | | | ProgramTableView::focus_address() calls QAbstractItemView::setCurrentIndex(). verticalScrollBar() value is updated as result of current row change. This emits signal valueChanged which is connected to ProgramTableView::adjust_scroll_pos(). It checks if the limit of range covered by actual model and row to address offset is reached. If the top or bottom 1/8 of range is reached then model needs to be adjusted to cover continuation area. Model shift requires update of the current row to stay on the same address even that row 0 address offset is changed. This model shifting is required because range of scroll is only signed integer and QTableView is even more limited in row count to work reliably. Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
* Enable copy from memory and program views.Pavel Pisa2019-02-15
| | | | Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
* Extend program view to support selected stage followup.Pavel Pisa2019-02-11
| | | | Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
* Converted program listing to be QTableView based.Pavel Pisa2019-02-11
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>