Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
Screen Class Reference

#include <Screen.h>

Inheritance diagram for Screen:
Collaboration diagram for Screen:

Public Member Functions

 Screen (const QString &name=QString())
const QPixmap & pixmap () const
const QString & name () const
const QStringList & aliases () const
bool isNull () const
int modifier (int m) const
const QList< int > & modifiers () const
bool switchCorner (int c) const
const QList< bool > & switchCorners () const
int switchCornerSize () const
bool fix (const Fix f) const
const QList< bool > & fixes () const
void loadSettings (QSettingsProxy &settings)
void saveSettings (QSettingsProxy &settings) const
QString screensSection () const
QString aliasesSection () const
bool swapped () const
void setName (const QString &name)
bool isServer () const
void markAsServer ()
bool operator== (const Screen &screen) const

Protected Member Functions

QStringList & aliases ()
void setModifier (const Modifier m, const int n)
QList< int > & modifiers ()
void addAlias (const QString &alias)
void setSwitchCorner (const SwitchCorner c, const bool on)
QList< bool > & switchCorners ()
void setSwitchCornerSize (const int val)
void setFix (const Fix f, const bool on)
QList< bool > & fixes ()
void setSwapped (const bool on)
Protected Member Functions inherited from ScreenConfig
 ScreenConfig ()=default
 ~ScreenConfig ()=default
template<typename T1, typename T2>
void readSettings (QSettingsProxy &settings, T1 &array, const QString &arrayName, const T2 &defaultValue)
template<typename T1, typename T2>
void readSettings (QSettingsProxy &settings, T1 &array, const QString &arrayName, const T2 &defaultValue, int entries)
template<typename T>
void writeSettings (QSettingsProxy &settings, const T &array, const QString &arrayName) const

Friends

class ScreenSettingsDialog
class ScreenSetupModel
class ScreenSetupView
QDataStream & operator<< (QDataStream &outStream, const Screen &screen)
QDataStream & operator>> (QDataStream &inStream, Screen &screen)

Additional Inherited Members

Public Types inherited from ScreenConfig
enum class  Modifier : int8_t {
  DefaultMod = -1 , Shift , Ctrl , Alt ,
  Meta , Super , None , NumModifiers
}
enum class  SwitchCorner : int8_t {
  TopLeft , TopRight , BottomLeft , BottomRight ,
  NumSwitchCorners
}
enum class  Fix : int8_t {
  CapsLock , NumLock , ScrollLock , XTest ,
  NumFixes
}
Static Public Member Functions inherited from ScreenConfig
static const char * modifierName (int idx)
static const char * fixName (int idx)
static const char * switchCornerName (int idx)

Constructor & Destructor Documentation

◆ Screen()

Screen::Screen ( const QString & name = QString())
explicit

Member Function Documentation

◆ addAlias()

void Screen::addAlias ( const QString & alias)
inlineprotected

◆ aliases() [1/2]

QStringList & Screen::aliases ( )
inlineprotected

◆ aliases() [2/2]

const QStringList & Screen::aliases ( ) const
inlinenodiscard

◆ aliasesSection()

QString Screen::aliasesSection ( ) const
nodiscard

◆ fix()

bool Screen::fix ( const Fix f) const
inlinenodiscard

◆ fixes() [1/2]

QList< bool > & Screen::fixes ( )
inlineprotected

◆ fixes() [2/2]

const QList< bool > & Screen::fixes ( ) const
inlinenodiscard

◆ isNull()

bool Screen::isNull ( ) const
inlinenodiscard

◆ isServer()

bool Screen::isServer ( ) const
inlinenodiscard

◆ loadSettings()

void Screen::loadSettings ( QSettingsProxy & settings)

◆ markAsServer()

void Screen::markAsServer ( )
inline

◆ modifier()

int Screen::modifier ( int m) const
inlinenodiscard

◆ modifiers() [1/2]

QList< int > & Screen::modifiers ( )
inlineprotected

◆ modifiers() [2/2]

const QList< int > & Screen::modifiers ( ) const
inlinenodiscard

◆ name()

const QString & Screen::name ( ) const
inlinenodiscard

◆ operator==()

bool Screen::operator== ( const Screen & screen) const

◆ pixmap()

const QPixmap & Screen::pixmap ( ) const
inlinenodiscard

◆ saveSettings()

void Screen::saveSettings ( QSettingsProxy & settings) const

◆ screensSection()

QString Screen::screensSection ( ) const
nodiscard

◆ setFix()

void Screen::setFix ( const Fix f,
const bool on )
inlineprotected

◆ setModifier()

void Screen::setModifier ( const Modifier m,
const int n )
inlineprotected

◆ setName()

void Screen::setName ( const QString & name)
inline

◆ setSwapped()

void Screen::setSwapped ( const bool on)
inlineprotected

◆ setSwitchCorner()

void Screen::setSwitchCorner ( const SwitchCorner c,
const bool on )
inlineprotected

◆ setSwitchCornerSize()

void Screen::setSwitchCornerSize ( const int val)
inlineprotected

◆ swapped()

bool Screen::swapped ( ) const
inlinenodiscard

◆ switchCorner()

bool Screen::switchCorner ( int c) const
inlinenodiscard

◆ switchCorners() [1/2]

QList< bool > & Screen::switchCorners ( )
inlineprotected

◆ switchCorners() [2/2]

const QList< bool > & Screen::switchCorners ( ) const
inlinenodiscard

◆ switchCornerSize()

int Screen::switchCornerSize ( ) const
inlinenodiscard

◆ operator<<

QDataStream & operator<< ( QDataStream & outStream,
const Screen & screen )
friend

◆ operator>>

QDataStream & operator>> ( QDataStream & inStream,
Screen & screen )
friend

◆ ScreenSettingsDialog

friend class ScreenSettingsDialog
friend

◆ ScreenSetupModel

friend class ScreenSetupModel
friend

◆ ScreenSetupView

friend class ScreenSetupView
friend

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