KWin
Loading...
Searching...
No Matches
Signals | Public Member Functions | Protected Member Functions | Properties | List of all members
KWin::AnimationsModel Class Reference

#include <animationsmodel.h>

Inheritance diagram for KWin::AnimationsModel:
KWin::EffectsModel

Signals

void animationEnabledChanged ()
 
void animationIndexChanged ()
 
void currentConfigurableChanged ()
 
void defaultAnimationEnabledChanged ()
 
void defaultAnimationIndexChanged ()
 
- Signals inherited from KWin::EffectsModel
void loaded ()
 

Public Member Functions

 AnimationsModel (QObject *parent=nullptr)
 
bool animationEnabled () const
 
void setAnimationEnabled (bool enabled)
 
int animationIndex () const
 
void setAnimationIndex (int index)
 
bool currentConfigurable () const
 
bool defaultAnimationEnabled () const
 
int defaultAnimationIndex () const
 
void load ()
 
void save ()
 
void defaults ()
 
bool isDefaults () const
 
bool needsSave () const
 
- Public Member Functions inherited from KWin::EffectsModel
 EffectsModel (QObject *parent=nullptr)
 
QHash< int, QByteArray > roleNames () const override
 
QModelIndex index (int row, int column, const QModelIndex &parent={}) const override
 
QModelIndex parent (const QModelIndex &child) const override
 
int rowCount (const QModelIndex &parent={}) const override
 
int columnCount (const QModelIndex &parent={}) const override
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
 
void updateEffectStatus (const QModelIndex &rowIndex, Status effectState)
 
void load (LoadOptions options=LoadOptions::None)
 
void save ()
 
void defaults ()
 
bool isDefaults () const
 
bool needsSave () const
 
QModelIndex findByPluginId (const QString &pluginId) const
 
void requestConfigure (const QModelIndex &index, QWindow *transientParent)
 

Protected Member Functions

bool shouldStore (const EffectData &data) const override
 

Properties

bool animationEnabled
 
int animationIndex
 
bool currentConfigurable
 
bool defaultAnimationEnabled
 
int defaultAnimationIndex
 

Additional Inherited Members

- Public Types inherited from KWin::EffectsModel
enum  AdditionalRoles {
  NameRole = Qt::UserRole + 1 , DescriptionRole , AuthorNameRole , AuthorEmailRole ,
  LicenseRole , VersionRole , CategoryRole , ServiceNameRole ,
  IconNameRole , StatusRole , VideoRole , WebsiteRole ,
  SupportedRole , ExclusiveRole , InternalRole , ConfigurableRole ,
  EnabledByDefaultRole , ConfigModuleRole , EnabledByDefaultFunctionRole
}
 
enum class  Status { Disabled = Qt::Unchecked , EnabledUndeterminded = Qt::PartiallyChecked , Enabled = Qt::Checked }
 
enum class  LoadOptions { None , KeepDirty }
 

Detailed Description

Definition at line 17 of file animationsmodel.h.

Constructor & Destructor Documentation

◆ AnimationsModel()

KWin::AnimationsModel::AnimationsModel ( QObject * parent = nullptr)
explicit

Definition at line 17 of file animationsmodel.cpp.

Member Function Documentation

◆ animationEnabled()

bool KWin::AnimationsModel::animationEnabled ( ) const

Definition at line 38 of file animationsmodel.cpp.

◆ animationEnabledChanged

void KWin::AnimationsModel::animationEnabledChanged ( )
signal

◆ animationIndex()

int KWin::AnimationsModel::animationIndex ( ) const

Definition at line 51 of file animationsmodel.cpp.

◆ animationIndexChanged

void KWin::AnimationsModel::animationIndexChanged ( )
signal

◆ currentConfigurable()

bool KWin::AnimationsModel::currentConfigurable ( ) const

Definition at line 64 of file animationsmodel.cpp.

◆ currentConfigurableChanged

void KWin::AnimationsModel::currentConfigurableChanged ( )
signal

◆ defaultAnimationEnabled()

bool KWin::AnimationsModel::defaultAnimationEnabled ( ) const

Definition at line 69 of file animationsmodel.cpp.

◆ defaultAnimationEnabledChanged

void KWin::AnimationsModel::defaultAnimationEnabledChanged ( )
signal

◆ defaultAnimationIndex()

int KWin::AnimationsModel::defaultAnimationIndex ( ) const

Definition at line 74 of file animationsmodel.cpp.

◆ defaultAnimationIndexChanged

void KWin::AnimationsModel::defaultAnimationIndexChanged ( )
signal

◆ defaults()

void KWin::AnimationsModel::defaults ( )

Definition at line 143 of file animationsmodel.cpp.

◆ isDefaults()

bool KWin::AnimationsModel::isDefaults ( ) const

Definition at line 150 of file animationsmodel.cpp.

◆ load()

void KWin::AnimationsModel::load ( )

Definition at line 126 of file animationsmodel.cpp.

◆ needsSave()

bool KWin::AnimationsModel::needsSave ( ) const

Definition at line 157 of file animationsmodel.cpp.

◆ save()

void KWin::AnimationsModel::save ( )

Definition at line 131 of file animationsmodel.cpp.

◆ setAnimationEnabled()

void KWin::AnimationsModel::setAnimationEnabled ( bool enabled)

Definition at line 43 of file animationsmodel.cpp.

◆ setAnimationIndex()

void KWin::AnimationsModel::setAnimationIndex ( int index)

Definition at line 56 of file animationsmodel.cpp.

◆ shouldStore()

bool KWin::AnimationsModel::shouldStore ( const EffectData & data) const
overrideprotectedvirtual

Returns whether the given effect should be stored in the model.

Parameters
dataThe effect.
Returns
true if the effect should be stored, otherwise false.

Reimplemented from KWin::EffectsModel.

Definition at line 79 of file animationsmodel.cpp.

Property Documentation

◆ animationEnabled

bool KWin::AnimationsModel::animationEnabled
readwrite

Definition at line 20 of file animationsmodel.h.

◆ animationIndex

int KWin::AnimationsModel::animationIndex
readwrite

Definition at line 21 of file animationsmodel.h.

◆ currentConfigurable

bool KWin::AnimationsModel::currentConfigurable
read

Definition at line 22 of file animationsmodel.h.

◆ defaultAnimationEnabled

bool KWin::AnimationsModel::defaultAnimationEnabled
read

Definition at line 23 of file animationsmodel.h.

◆ defaultAnimationIndex

int KWin::AnimationsModel::defaultAnimationIndex
read

Definition at line 24 of file animationsmodel.h.


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