LibrePCB Developers Documentation
SEE_SwitchToSchematicPage Class Referencefinal

The SEE_SwitchToSchematicPage class. More...

#include <schematiceditorevent.h>

+ Inheritance diagram for SEE_SwitchToSchematicPage:
+ Collaboration diagram for SEE_SwitchToSchematicPage:

Public Member Functions

 SEE_SwitchToSchematicPage (unsigned int schematicIndex)
virtual ~SEE_SwitchToSchematicPage ()
unsigned int getSchematicIndex () const noexcept
- Public Member Functions inherited from SEE_Base
 SEE_Base (EventType_t type)
virtual ~SEE_Base ()
EventType_t getType () const noexcept
bool isAccepted () const noexcept
virtual void setAccepted (bool accepted) noexcept

Private Attributes

unsigned int mSchematicIndex
 the requested schematic page index More...

Additional Inherited Members

- Public Types inherited from SEE_Base
enum  EventType_t
 FSM event types. More...
- Protected Attributes inherited from SEE_Base
EventType_t mType
bool mAccepted

Detailed Description

The SEE_SwitchToSchematicPage class.

If someone (the user or the application) wants to switch to another schematic page in the schematic editor, this is not allowed at any time (for example, while drawing a netline in the active schematic, you cannot switch to another schematic). So this type of event must be processed by the FSM. The FSM then will only decide whether changing the schematic is allowed (event accepted) or not (event rejected). If the event was accepted, the schematic editor then will switch to the requested schematic page.

See also

Constructor & Destructor Documentation

◆ SEE_SwitchToSchematicPage()

SEE_SwitchToSchematicPage ( unsigned int  schematicIndex)

◆ ~SEE_SwitchToSchematicPage()

virtual ~SEE_SwitchToSchematicPage ( )

Member Function Documentation

◆ getSchematicIndex()

unsigned int getSchematicIndex ( ) const

Member Data Documentation

◆ mSchematicIndex

unsigned int mSchematicIndex

the requested schematic page index

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