#include <jezabelpanel.h>
Public Methods | |
JezabelPanel (const char *type, const char *instance, int flags=0, QWidget *_parent=0, WFlags f=0) | |
Constructs a control panel (with no parent). More... | |
QWidget* | mainArea () |
Returns the main area of the panel, where the JezabelWidgets live. Children of this area are layed out vertically. | |
void | registerControl (QString &name, int val, QObject *control, const char *signal, const char *slot) |
Register an integer-valued control (such as a slider), so that its value can be saved and restored. More... | |
void | registerControl (QString &name, QString val, QObject *control, const char *signal, const char *slot) |
Register a QString control (such as a QLineEdit), so that its value can be saved and restored. More... | |
void | start () |
Indicates all controls have been registered and panel can start operation. Initializes values of controls. | |
void | stop () |
Saves current state by type and instance name. After this, you can register new controls and start(). | |
~JezabelPanel () | |
Destructor saves current state by type and instance name. | |
Static Public Methods | |
JezabelPanel* | find (QObject *thing) |
Find a JezabelPanel that is an ancestor of thing. |
Here is a typical example of usage of JezabelPanel:
JezabelApplication a( argc, argv ); JezabelPanel *panel = new JezabelPanel("test_curve","current"); JezabelWidget *foo = new JezabelCurve("curve",panel->mainArea()); a.setMainWidget( panel );
This inserts a JezabelCurve widget in the panel and makes the panel the application's main widget.
The result looks like this:
It's important to give each JezabelWidget within the panel a distinct name, so that it's preset values can be identified.
test_fixedshelfeq.cpp, test_graphicfilter.cpp, test_ladspa.cpp, and test_variableshelfeq.cpp.
|
Constructs a control panel (with no parent).
|
|
Register a QString control (such as a QLineEdit), so that its value can be saved and restored.
|
|
Register an integer-valued control (such as a slider), so that its value can be saved and restored.
|