|
Locus No Pilotus
Project of four first grade MIPT DAFE/RSE students (for engineering practical work in the second semester) in Qt C++
|
Класс, упрощающий отображение классов gui в QTableWidget's. More...
#include <tables_connection.h>


Public Member Functions | |
| TablesConnection ()=default | |
| void | SetRemoveButtons (QPushButton *targets_remove_button, QPushButton *hills_remove_button, QPushButton *tr_circles_remove_button, QPushButton *tr_lines_remove_button) |
| Устанавливает значение всех кнопок для удаления объектов | |
| void | SetSettingsTables (QTableWidget *targets_info, QTableWidget *hills_info, QTableWidget *tr_circles_info, QTableWidget *tr_lines_info) |
| Устанавливает значения всех таблиц с информацией | |
| void | Setup (DataManager *manager, PlotArea *area) |
| void | UpdateTable (gui::ObjectType obj_type) |
| Обновляет значения таблицы с определенным типом объекта | |
| void | UpdateTables () |
| Обновляет данные в таблицах всех объектов | |
Private Slots | |
| void | DisableRemoveHillButton () |
| void | DisableRemoveTargetButton () |
| void | DisableRemoveTrappyCircleButton () |
| void | DisableRemoveTrappyLineButton () |
| void | EnableRemoveHillButton (int row, int column) |
| void | EnableRemoveTargetButton (int row, int column) |
| void | EnableRemoveTrappyCircleButton (int row, int column) |
| void | EnableRemoveTrappyLineButton (int row, int column) |
| void | HillsItemChanged (int row, int column) |
| void | RemoveHillItem () |
| void | RemoveTargetItem () |
| void | RemoveTrappyCircleItem () |
| void | RemoveTrappyLineItem () |
| void | TargetsItemChanged (int row, int column) |
| void | TrappyCirclesItemChanged (int row, int column) |
| void | TrappyLinesItemChanged (int row, int column) |
Private Member Functions | |
| void | DisableTablesConnections_ () |
| void | UpdateRemoveButtonConnections_ () |
| void | UpdateTable_ (const std::vector< gui::Hill > &hills) |
| Обновляет значения таблицы с Hills. | |
| void | UpdateTable_ (const std::vector< gui::Target > &targets) |
| Обновляет значения таблицы с Targets. | |
| void | UpdateTable_ (const std::vector< gui::TrappyCircle > &trappy_circles) |
| Обновляет значения таблицы с TrappyCircles. | |
| void | UpdateTable_ (const std::vector< gui::TrappyLine > &trappy_lines) |
| Обновляет значения таблицы с TrappyLines. | |
| void | UpdateTablesConnections_ () |
Private Attributes | |
| std::unique_ptr< PlotArea > | area_ |
| std::unique_ptr< QPushButton > | hills_remove_button_ {nullptr} |
| std::unique_ptr< QTableWidget > | hills_table_ {nullptr} |
| std::unique_ptr< DataManager > | manager_ |
| int | selected_column_ {INT_MAX} |
| std::unique_ptr< QPushButton > | targets_remove_button_ {nullptr} |
| std::unique_ptr< QTableWidget > | targets_table_ {nullptr} |
| std::unique_ptr< QPushButton > | tr_circles_remove_button_ {nullptr} |
| std::unique_ptr< QTableWidget > | tr_circles_table_ {nullptr} |
| std::unique_ptr< QPushButton > | tr_lines_remove_button_ {nullptr} |
| std::unique_ptr< QTableWidget > | tr_lines_table_ {nullptr} |
Класс, упрощающий отображение классов gui в QTableWidget's.
|
default |
|
inlineprivateslot |

|
inlineprivateslot |

|
inlineprivateslot |

|
inlineprivateslot |

|
private |


|
inlineprivateslot |

|
inlineprivateslot |

|
inlineprivateslot |

|
inlineprivateslot |

|
privateslot |


|
privateslot |


|
privateslot |


|
privateslot |


|
privateslot |


|
inline |
Устанавливает значение всех кнопок для удаления объектов
| targets_remove_button | |
| hills_remove_button | |
| tr_circles_remove_button | |
| tr_lines_remove_button |


|
inline |
Устанавливает значения всех таблиц с информацией
| hills_info | QTableWidget с информацией о hills |
| targets_info | QTableWidget с информацией о hills |
| tr_circles_info | QTableWidget с информацией о hills |
| tr_lines_info | QTableWidget с информацией о hills |


| void data_tools::TablesConnection::Setup | ( | DataManager * | manager, |
| PlotArea * | area ) |
|
privateslot |


|
privateslot |


|
privateslot |


|
private |


| void data_tools::TablesConnection::UpdateTable | ( | gui::ObjectType | obj_type | ) |
Обновляет значения таблицы с определенным типом объекта
| obj_type | тип объекта |


|
private |
Обновляет значения таблицы с Hills.
| hills | вектор новых значений |

|
private |
Обновляет значения таблицы с Targets.
| targets | вектор новых значений |


|
private |
Обновляет значения таблицы с TrappyCircles.
| trappy_circles | вектор новых значений |

|
private |
Обновляет значения таблицы с TrappyLines.
| trappy_lines | вектор новых значений |

| void data_tools::TablesConnection::UpdateTables | ( | ) |
Обновляет данные в таблицах всех объектов


|
private |


|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |