Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CSheetModelFactory Class Reference

#include <CSheetModelFactory.hpp>

Inheritance diagram for CSheetModelFactory:
[legend]

Public Member Functions

 CSheetModelFactory ()=delete
 
 CSheetModelFactory (const CSheetModelFactory &other)=delete
 
CSheetModelFactoryoperator= (const CSheetModelFactory &other)=delete
 
 CSheetModelFactory (CSheetModelFactory &&other)=delete
 
CSheetModelFactoryoperator= (CSheetModelFactory &&other)=delete
 
 ~CSheetModelFactory ()=delete
 

Static Public Member Functions

static void addColumnDefinitionToSheetModel (const std::shared_ptr< AbstractSheetModel > &sheetModel, const iv::gui::sheets::ColumnId &columnId, uint32_t columnPosition, const std::string &columnTitle, const std::string &columnTooltip, uint16_t columnWidth, bool isVisible)
 
static void removeColumnDefinitionFromSheetModel (const std::shared_ptr< AbstractSheetModel > &sheetModel, const iv::gui::sheets::ColumnId &columnId)
 
static void addCommonCellDefinitionListeners (iv::gui::sheets::CellDefinition &cellDefinition)
 
static void addRowDefinitionToSheetModel (const std::shared_ptr< AbstractSheetModel > &sheetModel, const iv::gui::sheets::RowId &rowId, uint32_t rowPosition, bool isVisible)
 
static bool findLowerBoundRow (const std::shared_ptr< AbstractSheetModel > &sheetModel, const iv::gui::sheets::RowId &rowIdReference, iv::gui::sheets::RowId *resultRowId)
 
static void removeRow (const std::shared_ptr< AbstractSheetModel > &sheetModel, const iv::gui::sheets::RowId &rowId)
 
static void updateRowTitles (const std::shared_ptr< AbstractSheetModel > &sheetModel)
 
static bool findLowerBoundRowCheckingInAscendingPositionOrder (const std::shared_ptr< AbstractSheetModel > &sheetModel, const iv::gui::sheets::RowId &rowIdReference, iv::gui::sheets::RowId *resultRowId)
 
static std::shared_ptr< AbstractSheetModelcreateCSheetModelTankCalibrationTable (const std::shared_ptr< iv::tanks::TankCalibrationData > &calibrationDataRef, double *selectedTrim)
 
static void updateCSheetModelTankCalibrationTable (const std::shared_ptr< AbstractSheetModel > &sheetModel, const std::shared_ptr< iv::tanks::TrimCalibrationData > &calibrationDataRef)
 
static void addRowToCSheetModelTankCalibrationTable (const std::shared_ptr< iv::tanks::TrimCalibrationData > &calibrationDataRef, const std::shared_ptr< AbstractSheetModel > &sheetModel, const iv::gui::sheets::RowId &rowId)
 
static std::string getCSheetModelTankCalibrationTableColumnName (iv::gui::sheets::ColumnId columnId, bool shortName=true)
 
static iv::gui::sheets::CellDefinition prvCreateButtonCellDefinition (const std::string &text)
 

Static Public Attributes

static const int32_t kDefaultLanguageColumnPosition = 9
 
static const int32_t kNoId = 0
 

Constructor & Destructor Documentation

◆ CSheetModelFactory() [1/3]

CSheetModelFactory::CSheetModelFactory ( )
delete

◆ CSheetModelFactory() [2/3]

CSheetModelFactory::CSheetModelFactory ( const CSheetModelFactory & other)
delete

◆ CSheetModelFactory() [3/3]

CSheetModelFactory::CSheetModelFactory ( CSheetModelFactory && other)
delete

◆ ~CSheetModelFactory()

CSheetModelFactory::~CSheetModelFactory ( )
delete

Member Function Documentation

◆ addColumnDefinitionToSheetModel()

void CSheetModelFactory::addColumnDefinitionToSheetModel ( const std::shared_ptr< AbstractSheetModel > & sheetModel,
const iv::gui::sheets::ColumnId & columnId,
uint32_t columnPosition,
const std::string & columnTitle,
const std::string & columnTooltip,
uint16_t columnWidth,
bool isVisible )
static

◆ addCommonCellDefinitionListeners()

void CSheetModelFactory::addCommonCellDefinitionListeners ( iv::gui::sheets::CellDefinition & cellDefinition)
static

◆ addRowDefinitionToSheetModel()

void CSheetModelFactory::addRowDefinitionToSheetModel ( const std::shared_ptr< AbstractSheetModel > & sheetModel,
const iv::gui::sheets::RowId & rowId,
uint32_t rowPosition,
bool isVisible )
static

◆ addRowToCSheetModelTankCalibrationTable()

void CSheetModelFactory::addRowToCSheetModelTankCalibrationTable ( const std::shared_ptr< iv::tanks::TrimCalibrationData > & calibrationDataRef,
const std::shared_ptr< AbstractSheetModel > & sheetModel,
const iv::gui::sheets::RowId & rowId )
static

◆ createCSheetModelTankCalibrationTable()

std::shared_ptr< AbstractSheetModel > CSheetModelFactory::createCSheetModelTankCalibrationTable ( const std::shared_ptr< iv::tanks::TankCalibrationData > & calibrationDataRef,
double * selectedTrim )
static

◆ findLowerBoundRow()

bool CSheetModelFactory::findLowerBoundRow ( const std::shared_ptr< AbstractSheetModel > & sheetModel,
const iv::gui::sheets::RowId & rowIdReference,
iv::gui::sheets::RowId * resultRowId )
static

Finds the first row that is not considered to go before rowIdReference (i.e., either it is equivalent or goes after).

Parameters
[in]sheetModelAbstractSheetModel to work with
[in]rowIdReferenceRow (unitId, channelId) as a reference in the search. #param[out] resultRowId First row that is not considered to go before rowIdReference.

◆ findLowerBoundRowCheckingInAscendingPositionOrder()

bool CSheetModelFactory::findLowerBoundRowCheckingInAscendingPositionOrder ( const std::shared_ptr< AbstractSheetModel > & sheetModel,
const iv::gui::sheets::RowId & rowIdReference,
iv::gui::sheets::RowId * resultRowId )
static

◆ getCSheetModelTankCalibrationTableColumnName()

std::string CSheetModelFactory::getCSheetModelTankCalibrationTableColumnName ( iv::gui::sheets::ColumnId columnId,
bool shortName = true )
static

◆ operator=() [1/2]

CSheetModelFactory & CSheetModelFactory::operator= ( const CSheetModelFactory & other)
delete

◆ operator=() [2/2]

CSheetModelFactory & CSheetModelFactory::operator= ( CSheetModelFactory && other)
delete

◆ prvCreateButtonCellDefinition()

iv::gui::sheets::CellDefinition CSheetModelFactory::prvCreateButtonCellDefinition ( const std::string & text)
static

◆ removeColumnDefinitionFromSheetModel()

void CSheetModelFactory::removeColumnDefinitionFromSheetModel ( const std::shared_ptr< AbstractSheetModel > & sheetModel,
const iv::gui::sheets::ColumnId & columnId )
static

◆ removeRow()

void CSheetModelFactory::removeRow ( const std::shared_ptr< AbstractSheetModel > & sheetModel,
const iv::gui::sheets::RowId & rowId )
static

◆ updateCSheetModelTankCalibrationTable()

void CSheetModelFactory::updateCSheetModelTankCalibrationTable ( const std::shared_ptr< AbstractSheetModel > & sheetModel,
const std::shared_ptr< iv::tanks::TrimCalibrationData > & calibrationDataRef )
static

◆ updateRowTitles()

void CSheetModelFactory::updateRowTitles ( const std::shared_ptr< AbstractSheetModel > & sheetModel)
static

Member Data Documentation

◆ kDefaultLanguageColumnPosition

const int32_t CSheetModelFactory::kDefaultLanguageColumnPosition = 9
inlinestatic

◆ kNoId

const int32_t CSheetModelFactory::kNoId = 0
inlinestatic

The documentation for this class was generated from the following files: