Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CPanelTanksCalibrationTableEditor.hpp
Go to the documentation of this file.
1#ifndef LIBS_PANELS_CPANELTANKSCALIBRATIONTABLEEDITOR_HPP_
2#define LIBS_PANELS_CPANELTANKSCALIBRATIONTABLEEDITOR_HPP_
3
6#include "ui/gui/CEditNum.hpp"
9
11{
12public:
13 explicit CPanelTanksCalibrationTableEditor(const std::weak_ptr<iv::tanks::TankCalibrationData> &calibrationData,
14 std::string_view tankName);
16
17 AbstractComponentGUI *buildPanel(CDialog *dialogFather) override;
18 void update() override;
19
20private:
21 AbstractComponentGUI *prvBuildButtonsLayout(const std::shared_ptr<AbstractSheetModel> &sheetModel, CSheet *sheet);
22 std::shared_ptr<AbstractSheetModel> prvCreateSheetModel();
23 void prvUpdateSheetModel() const;
24
25 const std::string m_tankName;
27
30
31 std::weak_ptr<iv::tanks::TankCalibrationData> m_calibrationData;
32 std::shared_ptr<AbstractSheetModel> m_sheetModelRef;
34};
35
36#endif /* LIBS_PANELS_CPANELTANKSCALIBRATIONTABLEEDITOR_HPP_ */
Definition AbstractComponentGUI.hpp:30
Definition AbstractViewPanelEditor.hpp:12
Definition CComboBox.hpp:48
Definition CDialog.hpp:21
Definition CPanelTanksCalibrationTableEditor.hpp:11
CSheet * m_sheetRef
Definition CPanelTanksCalibrationTableEditor.hpp:33
std::weak_ptr< iv::tanks::TankCalibrationData > m_calibrationData
Definition CPanelTanksCalibrationTableEditor.hpp:31
const std::string m_tankName
Definition CPanelTanksCalibrationTableEditor.hpp:25
double m_displayingTrim
Definition CPanelTanksCalibrationTableEditor.hpp:28
AbstractComponentGUI * prvBuildButtonsLayout(const std::shared_ptr< AbstractSheetModel > &sheetModel, CSheet *sheet)
Definition CPanelTanksCalibrationTableEditor.cpp:817
~CPanelTanksCalibrationTableEditor() override=default
std::shared_ptr< AbstractSheetModel > prvCreateSheetModel()
Definition CPanelTanksCalibrationTableEditor.cpp:876
void update() override
Definition CPanelTanksCalibrationTableEditor.cpp:800
std::shared_ptr< AbstractSheetModel > m_sheetModelRef
Definition CPanelTanksCalibrationTableEditor.hpp:32
AbstractComponentGUI * buildPanel(CDialog *dialogFather) override
Definition CPanelTanksCalibrationTableEditor.cpp:759
uint32_t m_selectedTrim
Definition CPanelTanksCalibrationTableEditor.hpp:29
CPanelTanksCalibrationTableEditor(const std::weak_ptr< iv::tanks::TankCalibrationData > &calibrationData, std::string_view tankName)
Definition CPanelTanksCalibrationTableEditor.cpp:736
void prvUpdateSheetModel() const
Definition CPanelTanksCalibrationTableEditor.cpp:885
CComboBox * m_trimSelection
Definition CPanelTanksCalibrationTableEditor.hpp:26
Definition CSheet.hpp:20