QElectroTech  0.70
Public Member Functions | Private Member Functions | Private Attributes | List of all members
NumerotationContextCommands Class Reference

#include <numerotationcontextcommands.h>

Public Member Functions

 NumerotationContextCommands (const NumerotationContext &, Diagram *=nullptr)
 Constructor. More...
 
 ~NumerotationContextCommands ()
 Destructor. More...
 
NumerotationContext next ()
 NumerotationContextCommands::next. More...
 
NumerotationContext previous ()
 NumerotationContextCommands::previous. More...
 
QString toRepresentedString ()
 NumerotationContextCommands::toFinalString. More...
 

Private Member Functions

void setNumStrategy (const QString &)
 NumerotationContextCommands::setNumStrategy apply the good strategy relative to . More...
 

Private Attributes

Diagramdiagram_
 
NumerotationContext context_
 
NumStrategystrategy_
 

Detailed Description

this class provide methods to handle content of NumerotationContext.

Definition at line 29 of file numerotationcontextcommands.h.

Constructor & Destructor Documentation

◆ NumerotationContextCommands()

NumerotationContextCommands::NumerotationContextCommands ( const NumerotationContext nc,
Diagram d = nullptr 
)

Constructor.

Definition at line 24 of file numerotationcontextcommands.cpp.

◆ ~NumerotationContextCommands()

NumerotationContextCommands::~NumerotationContextCommands ( )

Destructor.

Definition at line 33 of file numerotationcontextcommands.cpp.

References strategy_.

Member Function Documentation

◆ next()

NumerotationContext NumerotationContextCommands::next ( )

◆ previous()

NumerotationContext NumerotationContextCommands::previous ( )

◆ setNumStrategy()

void NumerotationContextCommands::setNumStrategy ( const QString &  str)
private

NumerotationContextCommands::setNumStrategy apply the good strategy relative to .

Definition at line 89 of file numerotationcontextcommands.cpp.

References diagram_, and strategy_.

Referenced by next(), previous(), and toRepresentedString().

◆ toRepresentedString()

QString NumerotationContextCommands::toRepresentedString ( )

NumerotationContextCommands::toFinalString.

Returns
the string represented by the numerotation context

Definition at line 71 of file numerotationcontextcommands.cpp.

References context_, diagram_, NumerotationContext::itemAt(), setNumStrategy(), NumerotationContext::size(), and strategy_.

Referenced by QETProject::autoFolioNumberingSelectedFolios(), and QETProject::updateDiagramsFolioData().

Member Data Documentation

◆ context_

NumerotationContext NumerotationContextCommands::context_
private

Definition at line 42 of file numerotationcontextcommands.h.

Referenced by next(), previous(), and toRepresentedString().

◆ diagram_

Diagram* NumerotationContextCommands::diagram_
private

Definition at line 41 of file numerotationcontextcommands.h.

Referenced by setNumStrategy(), and toRepresentedString().

◆ strategy_

NumStrategy* NumerotationContextCommands::strategy_
private

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