ff7tk  1.2.0.13
Work with Final Fantasy 7 game data
Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
OrientationWidget Class Reference

#include <OrientationWidget.h>

Inheritance diagram for OrientationWidget:
Inheritance graph
[legend]
Collaboration diagram for OrientationWidget:
Collaboration graph
[legend]

Public Types

enum  Style { Grid, Arrow }
 
enum  Direction { North, East, South, West }
 
enum  RotationDirection { ClockWise, CounterClockWise }
 

Public Slots

void setValue (int value)
 
void setStyle (OrientationWidget::Style style)
 
void setRotationDirection (OrientationWidget::RotationDirection rotationDirection)
 
void setZeroDirection (OrientationWidget::Direction zeroDirection)
 

Signals

void valueChanged (int i)
 
void valueEdited (int i)
 

Public Member Functions

 OrientationWidget (QWidget *parent=nullptr)
 
 OrientationWidget (quint8 value, Direction zeroDirection=West, RotationDirection rotationDirection=CounterClockWise, Style style=Style::Grid, QWidget *parent=nullptr)
 
quint8 value () const
 
bool isReadOnly () const
 
void setReadOnly (bool ro)
 
virtual QSize minimumSizeHint () const override
 
virtual QSize sizeHint () const override
 

Protected Member Functions

virtual void changeEvent (QEvent *e) override
 
virtual void paintEvent (QPaintEvent *e) override
 
virtual void mousePressEvent (QMouseEvent *e) override
 
virtual void mouseMoveEvent (QMouseEvent *e) override
 

Member Enumeration Documentation

◆ Direction

Enumerator
North 
East 
South 
West 

◆ RotationDirection

Enumerator
ClockWise 
CounterClockWise 

◆ Style

Enumerator
Grid 
Arrow 

Constructor & Destructor Documentation

◆ OrientationWidget() [1/2]

OrientationWidget::OrientationWidget ( QWidget *  parent = nullptr)
explicit

◆ OrientationWidget() [2/2]

OrientationWidget::OrientationWidget ( quint8  value,
Direction  zeroDirection = West,
RotationDirection  rotationDirection = CounterClockWise,
Style  style = Style::Grid,
QWidget *  parent = nullptr 
)
explicit

Member Function Documentation

◆ changeEvent()

void OrientationWidget::changeEvent ( QEvent *  e)
overrideprotectedvirtual

◆ isReadOnly()

bool OrientationWidget::isReadOnly ( ) const

◆ minimumSizeHint()

QSize OrientationWidget::minimumSizeHint ( ) const
overridevirtual

◆ mouseMoveEvent()

virtual void OrientationWidget::mouseMoveEvent ( QMouseEvent *  e)
inlineoverrideprotectedvirtual

◆ mousePressEvent()

virtual void OrientationWidget::mousePressEvent ( QMouseEvent *  e)
inlineoverrideprotectedvirtual

◆ paintEvent()

void OrientationWidget::paintEvent ( QPaintEvent *  e)
overrideprotectedvirtual

◆ setReadOnly()

void OrientationWidget::setReadOnly ( bool  ro)

◆ setRotationDirection

void OrientationWidget::setRotationDirection ( OrientationWidget::RotationDirection  rotationDirection)
slot

◆ setStyle

void OrientationWidget::setStyle ( OrientationWidget::Style  style)
slot

◆ setValue

void OrientationWidget::setValue ( int  value)
slot

◆ setZeroDirection

void OrientationWidget::setZeroDirection ( OrientationWidget::Direction  zeroDirection)
slot

◆ sizeHint()

QSize OrientationWidget::sizeHint ( ) const
overridevirtual

◆ value()

quint8 OrientationWidget::value ( ) const

◆ valueChanged

void OrientationWidget::valueChanged ( int  i)
signal

◆ valueEdited

void OrientationWidget::valueEdited ( int  i)
signal

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