A thin layer over QEditor.
More...
|
| enum | Position { West,
North,
South,
East
} |
| |
|
| | QCodeEdit (QWidget *p=0) |
| | ctor More...
|
| |
| | QCodeEdit (bool actions, QWidget *p=0) |
| | ctor More...
|
| |
| | QCodeEdit (const QString &layout, QWidget *p=0) |
| | ctor More...
|
| |
| | QCodeEdit (const QString &layout, bool actions, QWidget *p=0) |
| | ctor More...
|
| |
| virtual | ~QCodeEdit () |
| | dtor More...
|
| |
| QEditor * | editor () const |
| |
| QPanelLayout * | panelLayout () const |
| |
| QAction * | addPanel (QPanel *panel, Position pos, bool _add=false) |
| | Add a panel. More...
|
| |
| QAction * | addPanel (const QString &name, Position pos, bool _add=false) |
| |
| bool | hasPanel (const QString &type) const |
| |
| QList< QPanel * > | panels (const QString &type=QString()) const |
| |
| QAction * | toggleViewAction (QPanel *p) const |
| |
| void | sendPanelCommand (const QString &type, const char *signature, const QList< QGenericArgument > &args=Q_COMMAND) |
| | Send a command to every panel of a given type. More...
|
| |
| | QCodeEdit (QEditor *e, QPanelLayout *p) |
| | ctor More...
|
| |
| | QCodeEdit (QEditor *e, const QString &l) |
| | ctor More...
|
| |
A thin layer over QEditor.
The QCodeEdit class provides simple means to associate panels with editors and manage them.
| QCodeEdit::QCodeEdit |
( |
QWidget * |
p = 0 | ) |
|
ctor
The created editor object comes with builtin actions.
| QCodeEdit::QCodeEdit |
( |
bool |
actions, |
|
|
QWidget * |
p = 0 |
|
) |
| |
ctor
- Parameters
-
| actions | whether the QEditor object should create builtin actions |
| QCodeEdit::QCodeEdit |
( |
const QString & |
layout, |
|
|
QWidget * |
p = 0 |
|
) |
| |
ctor
- Parameters
-
| layout | structure of the panel layout |
The created editor object comes with builtin actions.
| QCodeEdit::QCodeEdit |
( |
const QString & |
layout, |
|
|
bool |
actions, |
|
|
QWidget * |
p = 0 |
|
) |
| |
ctor
- Parameters
-
| layout | structure of the panel layout |
| actions | whether the QEditor object should create builtin actions |
| QCodeEdit::~QCodeEdit |
( |
| ) |
|
|
virtual |
dtor
- Warning
- Destroyes the editor and the panel layout it manages
ctor
- Parameters
-
| e | editor to manage |
| p | panel layout to associate with the editor |
| QCodeEdit::QCodeEdit |
( |
QEditor * |
e, |
|
|
const QString & |
l |
|
) |
| |
ctor
- Parameters
-
| e | editor to manage |
| l | structure of the panel layout |
| QAction * QCodeEdit::addPanel |
( |
QPanel * |
panel, |
|
|
Position |
pos, |
|
|
bool |
_add = false |
|
) |
| |
Add a panel.
- Returns
- Toggle view action for the added panel
- Parameters
-
| panel | panel to add |
| pos | position of the panel in the layout |
| _add | whether to add the show action of the panel to the menu of the editor |
References QPanel::attach().
Referenced by addPanel().
| QAction * QCodeEdit::addPanel |
( |
const QString & |
name, |
|
|
Position |
pos, |
|
|
bool |
_add = false |
|
) |
| |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
- Returns
- Toggle view action for the added panel
- Parameters
-
| name | name of panel to add |
| pos | position of the panel in the layout |
| _add | whether to add the show action of the panel to the menu of the editor |
References addPanel().
| QEditor * QCodeEdit::editor |
( |
| ) |
const |
- Returns
- the managed editor
| bool QCodeEdit::hasPanel |
( |
const QString & |
type | ) |
const |
| QList< QPanel * > QCodeEdit::panels |
( |
const QString & |
type = QString() | ) |
const |
| void QCodeEdit::sendPanelCommand |
( |
const QString & |
type, |
|
|
const char * |
signature, |
|
|
const QList< QGenericArgument > & |
args = Q_COMMAND |
|
) |
| |
| QAction * QCodeEdit::toggleViewAction |
( |
QPanel * |
p | ) |
const |
- Returns
- the toggle view action of a given panel
References panels().
The documentation for this class was generated from the following files: