SILICON
Loading...
Searching...
No Matches
SislVisualizer Class Reference

#include <sislVisualizer.hpp>

Inheritance diagram for SislVisualizer:
Collaboration diagram for SislVisualizer:

Public Member Functions

 SislVisualizer (QWidget *parent=nullptr)
void setDescription (sisl::IsaDescription description)
void zoom (bool in)

Private Member Functions

void changeEvent (QEvent *event) override
void setupUI ()
void showOverview ()
void showFormat (const std::optional< std::string > &formatName)
void drawOverviewTitle ()
void drawAllFormatBoxes (const ThemeColors &theme, qreal &y)
void drawStandaloneInstructionsBox (const ThemeColors &theme, qreal &y)
void drawAllEnums (const ThemeColors &theme, qreal &y)
void drawFormatHeader (const std::string &formatName, const ThemeColors &theme, qreal &y)
void drawInstructionsForFormat (const std::optional< std::string > &formatName, const ThemeColors &theme, qreal &y)
void drawAliases (const sisl::InstructionDescription &inst, const ThemeColors &theme, qreal &y)
void drawLayout (const std::vector< sisl::FieldDescription > &fields, std::size_t width, const std::vector< sisl::FixedFieldDescription > &fixedFields, qreal y, const ThemeColors &theme)
void drawFieldSlices (const std::vector< sisl::FieldDescription > &fields, std::size_t width, const std::vector< sisl::FixedFieldDescription > &fixedFields, qreal top, const ThemeColors &theme, std::vector< bool > &occupied, std::vector< bool > &indexes)
void drawUnoccupiedSlices (std::size_t width, qreal top, const ThemeColors &theme, std::vector< bool > &occupied, std::vector< bool > &indexes)
void drawAxisIndices (std::size_t width, qreal y, const ThemeColors &theme, const std::vector< bool > &indexes)
void resetScene (bool showHint)
void finalizeScene ()

Private Attributes

sisl::IsaDescription description
QGraphicsScene * scene = nullptr
QGraphicsView * view = nullptr
QPushButton * backButton = nullptr
QLabel * hintLabel = nullptr
bool overview = true
std::optional< std::string > currentFormat
CallbackScope callbacks

Detailed Description

Definition at line 31 of file sislVisualizer.hpp.

Constructor & Destructor Documentation

◆ SislVisualizer()

SislVisualizer ( QWidget * parent = nullptr)
explicit

Definition at line 189 of file sislVisualizer.cpp.

Member Function Documentation

◆ changeEvent()

void changeEvent ( QEvent * event)
overrideprivate

Definition at line 335 of file sislVisualizer.cpp.

◆ drawAliases()

void drawAliases ( const sisl::InstructionDescription & inst,
const ThemeColors & theme,
qreal & y )
private

Definition at line 399 of file sislVisualizer.cpp.

◆ drawAllEnums()

void drawAllEnums ( const ThemeColors & theme,
qreal & y )
private

Definition at line 296 of file sislVisualizer.cpp.

◆ drawAllFormatBoxes()

void drawAllFormatBoxes ( const ThemeColors & theme,
qreal & y )
private

Definition at line 255 of file sislVisualizer.cpp.

◆ drawAxisIndices()

void drawAxisIndices ( std::size_t width,
qreal y,
const ThemeColors & theme,
const std::vector< bool > & indexes )
private

Definition at line 517 of file sislVisualizer.cpp.

◆ drawFieldSlices()

void drawFieldSlices ( const std::vector< sisl::FieldDescription > & fields,
std::size_t width,
const std::vector< sisl::FixedFieldDescription > & fixedFields,
qreal top,
const ThemeColors & theme,
std::vector< bool > & occupied,
std::vector< bool > & indexes )
private

Definition at line 437 of file sislVisualizer.cpp.

◆ drawFormatHeader()

void drawFormatHeader ( const std::string & formatName,
const ThemeColors & theme,
qreal & y )
private

Definition at line 354 of file sislVisualizer.cpp.

◆ drawInstructionsForFormat()

void drawInstructionsForFormat ( const std::optional< std::string > & formatName,
const ThemeColors & theme,
qreal & y )
private

Definition at line 374 of file sislVisualizer.cpp.

◆ drawLayout()

void drawLayout ( const std::vector< sisl::FieldDescription > & fields,
std::size_t width,
const std::vector< sisl::FixedFieldDescription > & fixedFields,
qreal y,
const ThemeColors & theme )
private

Definition at line 417 of file sislVisualizer.cpp.

◆ drawOverviewTitle()

void drawOverviewTitle ( )
private

Definition at line 250 of file sislVisualizer.cpp.

◆ drawStandaloneInstructionsBox()

void drawStandaloneInstructionsBox ( const ThemeColors & theme,
qreal & y )
private

Definition at line 280 of file sislVisualizer.cpp.

◆ drawUnoccupiedSlices()

void drawUnoccupiedSlices ( std::size_t width,
qreal top,
const ThemeColors & theme,
std::vector< bool > & occupied,
std::vector< bool > & indexes )
private

Definition at line 487 of file sislVisualizer.cpp.

◆ finalizeScene()

void finalizeScene ( )
private

Definition at line 228 of file sislVisualizer.cpp.

◆ resetScene()

void resetScene ( bool showHint)
private

Definition at line 222 of file sislVisualizer.cpp.

◆ setDescription()

void setDescription ( sisl::IsaDescription description)

Definition at line 217 of file sislVisualizer.cpp.

◆ setupUI()

void setupUI ( )
private

Definition at line 193 of file sislVisualizer.cpp.

◆ showFormat()

void showFormat ( const std::optional< std::string > & formatName)
private

Definition at line 317 of file sislVisualizer.cpp.

◆ showOverview()

void showOverview ( )
private

Definition at line 235 of file sislVisualizer.cpp.

◆ zoom()

void zoom ( bool in)

Definition at line 173 of file sislVisualizer.cpp.

Member Data Documentation

◆ backButton

QPushButton* backButton = nullptr
private

Definition at line 87 of file sislVisualizer.hpp.

◆ callbacks

CallbackScope callbacks
private

Definition at line 91 of file sislVisualizer.hpp.

◆ currentFormat

std::optional<std::string> currentFormat
private

Definition at line 90 of file sislVisualizer.hpp.

◆ description

sisl::IsaDescription description
private

Definition at line 84 of file sislVisualizer.hpp.

◆ hintLabel

QLabel* hintLabel = nullptr
private

Definition at line 88 of file sislVisualizer.hpp.

◆ overview

bool overview = true
private

Definition at line 89 of file sislVisualizer.hpp.

◆ scene

QGraphicsScene* scene = nullptr
private

Definition at line 85 of file sislVisualizer.hpp.

◆ view

QGraphicsView* view = nullptr
private

Definition at line 86 of file sislVisualizer.hpp.


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