Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
|
#include <CPanelLogicsEditor.hpp>
Classes | |
struct | SPrvDrawingArea |
struct | SPrvLogicsFunctionalBar |
Static Public Attributes | |
static const int32_t | kMinimumWidthToolBox = 200 |
Private Attributes | |
CLogicsAllowed & | m_logicsAllowed |
iv::types::logic::customBlockId | m_firstFreeIdLibrary |
std::optional< iv::types::unitId > | m_activeLogicId |
std::optional< iv::units::eUnitType > | m_activeLomType |
SPrvLogicsFunctionalBar | m_functionalBar |
bool | m_searchTagsAndLabelsRepeatFlag |
SLogicsToolBox * | m_toolBox |
bool | m_isLibrary |
std::map< uint16_t, std::unique_ptr< SPrvDrawingArea > > | m_drawingAreas |
std::unique_ptr< SPrvDrawingArea > | m_startingEmptyDrawingArea |
CPaned * | m_panedRef |
std::map< EContextMenu, std::unique_ptr< CMenuContext > > | m_contextMenus |
AbstractCanvasItem::TId | m_elementIdForCurrentContextMenu |
std::optional< iv::math::geometry::Point2d > | m_pointForCurrentContextMenu |
std::map< CDrawLogicsElements::TTupleElementType, CLogicsDrawingAreaModel::EActionOnLogicsComponent > | m_doubleClickActions |
std::string | m_libraryNameToSelectOpt |
Class that controls the different parts of the logics view:
|
explicit |
|
override |
|
delete |
|
delete |
|
delete |
bool CPanelLogicsEditor::addLibrary | ( | const std::string & | name | ) |
bool CPanelLogicsEditor::addLibrary | ( | iv::types::logic::customBlockId | idLibrary, |
const std::string & | name, | ||
const std::string & | file ) |
|
static |
|
overridevirtual |
Implements AbstractViewPanelEditor.
void CPanelLogicsEditor::changeToolBox | ( | ) |
bool CPanelLogicsEditor::cloneLibrary | ( | const std::string & | name | ) |
bool CPanelLogicsEditor::deleteCurrentLibrary | ( | ) |
|
private |
void CPanelLogicsEditor::generateLogicsGenerationParams | ( | const iv::logic::LogicGenerationParams & | generationParams | ) |
Generates the logic generation parameters for the given generationParams.
generationParams | The parameters for logic generation. |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
private |
|
nodiscard |
|
static |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
static |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
void CPanelLogicsEditor::grabFocusCanvas | ( | std::optional< iv::types::unitId > | logicId | ) |
|
static |
bool CPanelLogicsEditor::isLibrary | ( | ) | const |
|
nodiscard |
bool CPanelLogicsEditor::loadLibrary | ( | const std::string & | libraryFile, |
std::string & | libraryName, | ||
std::string & | resultMsg ) |
void CPanelLogicsEditor::logicProcessLibLoad | ( | ) |
|
delete |
|
delete |
|
static |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
CPanelLogicsEditor::prvBuildContextMenus
Context menus are built in CPanelLogicsEditor, and not in CPanelLogicsDrawingArea where they are used, in order to prevent building as many context menus as logics (units) the project has, since the context menus will be the same for all the logics.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
void CPanelLogicsEditor::rebuildToolBox | ( | ) |
|
static |
bool CPanelLogicsEditor::renameLibrary | ( | const std::string & | name | ) |
void CPanelLogicsEditor::resetToolBoxSelection | ( | ) |
void CPanelLogicsEditor::runContextMenuAction | ( | CLogicsDrawingAreaModel::EActionOnLogicsComponent | action | ) |
void CPanelLogicsEditor::runDoubleClickAction | ( | const CDrawLogicsElements::TTupleElementType & | elementType | ) |
bool CPanelLogicsEditor::saveFileActiveLibrary | ( | const std::string & | fileName, |
std::string & | resultMsg ) const |
void CPanelLogicsEditor::setActiveLibraryById | ( | std::optional< iv::types::unitId > | idLibrary | ) |
void CPanelLogicsEditor::setActiveLogicId | ( | std::optional< iv::types::unitId > | logicId | ) |
void CPanelLogicsEditor::setActiveLOMType | ( | std::optional< iv::units::eUnitType > | lomType | ) |
void CPanelLogicsEditor::setActiveUnitId | ( | std::optional< iv::types::unitId > | logicId | ) |
|
private |
void CPanelLogicsEditor::setElementIdForCurrentContextMenu | ( | AbstractCanvasItem::TId | id | ) |
void CPanelLogicsEditor::setFunctionalBarSelectedLogicId | ( | std::optional< iv::types::unitId > | logicId | ) | const |
void CPanelLogicsEditor::setFunctionalBarSelectedLOM | ( | std::optional< iv::types::unitId > | lomId | ) | const |
void CPanelLogicsEditor::setPointClickedForCurrentContextMenu | ( | iv::math::geometry::Point2d | pointClicked | ) |
void CPanelLogicsEditor::setSearchTagsAndLabelsRepeatFlag | ( | bool | changed | ) |
void CPanelLogicsEditor::showContextMenu | ( | EContextMenu | contextMenuType | ) |
|
overridevirtual |
Implements AbstractViewPanelEditor.
void CPanelLogicsEditor::updateCurrentLibraryFilePath | ( | const std::string & | file | ) | const |
|
static |
|
static |
|
static |
|
inlinestatic |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |