Olive
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | Protected Member Functions | List of all members
Panel Class Referenceabstract

#include <panel.h>

Inheritance diagram for Panel:
EffectControls GraphEditor Project Timeline Viewer

Public Member Functions

 Panel (QWidget *parent=nullptr)
 
virtual ~Panel () override
 
virtual void Retranslate ()=0
 
virtual void LoadLayoutState (const QByteArray &data)
 
virtual QByteArray SaveLayoutState ()
 

Protected Member Functions

virtual void changeEvent (QEvent *e) override
 

Constructor & Destructor Documentation

Panel::Panel ( QWidget *  parent = nullptr)
Panel::~Panel ( )
overridevirtual

Member Function Documentation

void Panel::changeEvent ( QEvent *  e)
overrideprotectedvirtual

NOTE: While overriding changeEvent() is the official documented way of handling runtime language change events, I found it buggy to do it this way (some panels would change and others wouldn't, and the panels that did/didn't change would be different each time). The current workaround is calling Retranslate() on each panel manually from MainWindow::Retranslate which is triggered by its own changeEvent() that seems fairly reliable. Currently this function is mostly a no-op.

void Panel::LoadLayoutState ( const QByteArray &  data)
virtual

Reimplemented in EffectControls.

virtual void Panel::Retranslate ( )
pure virtual
QByteArray Panel::SaveLayoutState ( )
virtual

Reimplemented in EffectControls.


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