|
| Area (const Area &area) |
|
| Area (Controller *controller, const QString &name, const QString &title={}) |
|
| ~Area () override |
|
QList< QAction * > | actions () const |
|
View * | activeView () const |
|
void | addAction (QAction *action) |
|
void | addToolView (View *toolView, Position defaultPosition) |
|
void | addView (View *view, AreaIndex *index, View *after=nullptr) |
|
void | addView (View *view, AreaIndex *indexToSplit, Qt::Orientation orientation) |
|
void | addView (View *view, View *after=nullptr) |
|
void | addView (View *view, View *viewToSplit, Qt::Orientation orientation) |
|
void | clearDocuments () |
|
void | clearViews (bool silent=false) |
|
bool | closeView (View *view, bool silent=false) |
|
Controller * | controller () const |
|
QString | iconName () const |
|
AreaIndex * | indexOf (View *view) |
|
void | load (const KConfigGroup &group) |
|
void | moveToolView (View *toolView, Position newPosition) |
|
void | raiseToolView (View *toolView) |
|
View * | removeToolView (View *toolView) |
|
View * | removeView (View *view) |
|
RootAreaIndex * | rootIndex () const |
|
void | save (KConfigGroup &group) const |
|
void | setActiveView (View *view) |
|
void | setDesiredToolViews (const QMap< QString, Sublime::Position > &desiredToolViews) |
|
void | setIconName (const QString &iconName) |
|
void | setShownToolViews (Sublime::Position pos, const QStringList &ids) |
|
void | setTitle (const QString &title) |
|
void | setWorkingSet (const QString &name) |
|
QStringList | shownToolViews (Sublime::Position pos) const |
|
QString | title () const |
|
Position | toolViewPosition (View *toolView) const |
|
const QList< View * > & | toolViews () const |
|
QList< View * > | views () |
|
template<typename Operator > |
void | walkToolViews (Operator &op, Positions positions) |
|
template<typename Operator > |
void | walkViews (Operator &op, AreaIndex *index) |
|
bool | wantToolView (const QString &id) |
|
QString | workingSet () const |
|
| QObject (QObject *parent) |
|
| QObject (QObject *parent, const char *name) |
|
virtual | ~QObject () |
|
bool | blockSignals (bool block) |
|
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
|
const QObjectList & | children () const |
|
const char * | className () const |
|
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
|
void | deleteLater () |
|
void | destroyed (QObject *obj) |
|
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
|
bool | disconnect (const QObject *receiver, const char *method) |
|
void | dumpObjectInfo () |
|
void | dumpObjectTree () |
|
QList< QByteArray > | dynamicPropertyNames () const |
|
virtual bool | event (QEvent *e) |
|
virtual bool | eventFilter (QObject *watched, QEvent *event) |
|
T | findChild (const QString &name) const |
|
QList< T > | findChildren (const QRegExp ®Exp) const |
|
QList< T > | findChildren (const QString &name) const |
|
bool | inherits (const char *className) const |
|
void | insertChild (QObject *object) |
|
void | installEventFilter (QObject *filterObj) |
|
bool | isA (const char *className) const |
|
bool | isWidgetType () const |
|
void | killTimer (int id) |
|
virtual const QMetaObject * | metaObject () const |
|
void | moveToThread (QThread *targetThread) |
|
const char * | name () const |
|
const char * | name (const char *defaultName) const |
|
QString | objectName () const |
|
QObject * | parent () const |
|
QVariant | property (const char *name) const |
|
void | removeChild (QObject *object) |
|
void | removeEventFilter (QObject *obj) |
|
void | setName (const char *name) |
|
void | setObjectName (const QString &name) |
|
void | setParent (QObject *parent) |
|
bool | setProperty (const char *name, const QVariant &value) |
|
bool | signalsBlocked () const |
|
int | startTimer (int interval) |
|
QThread * | thread () const |
|
|
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
|
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
|
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
|
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
|
QString | tr (const char *sourceText, const char *disambiguation, int n) |
|
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
|
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
|
virtual void | childEvent (QChildEvent *event) |
|
virtual void | connectNotify (const char *signal) |
|
virtual void | customEvent (QEvent *event) |
|
virtual void | disconnectNotify (const char *signal) |
|
int | receivers (const char *signal) const |
|
QObject * | sender () const |
|
int | senderSignalIndex () const |
|
virtual void | timerEvent (QTimerEvent *event) |
|
QByteArray | normalizeSignalSlot (const char *signalSlot) |
|
| objectName |
|
Area - the universal view container.
Area contains views and tool views, knows about their positions and provides functionality to add new (tool)views and remove existing.
Area takes care of all placement/configuration details so that in order for MainWindow to show the area it just needs to reconstruct itself according to the area's rules.
Usual way of creating an area is:
...
area->addView(document->createView());
Definition at line 59 of file area.h.
void Sublime::Area::clearViews |
( |
bool |
silent = false | ) |
|
Removes all views from this area and deletes them.
If an open document has changes, and it is the last view of that document, the user may push 'Cancel', and the view will stay active.
- Parameters
-
silent | If this is true, the user is never asked for feedback. |
Definition at line 523 of file area.cpp.
bool Sublime::Area::closeView |
( |
View * |
view, |
|
|
bool |
silent = false |
|
) |
| |
Closes and deletes the view, asking the user for feedback if needed.
Closes the document if it is the last view. Does allow breaking the closing process. If it is the last view of the document that has changes, and the user pushed 'Cancel', false will be returned, and the view will not be closed.
- Parameters
-
silent | If this is false, the user will be asked for feedback. Otherwise he won't. |
Definition at line 484 of file area.cpp.
void Sublime::Area::setWorkingSet |
( |
const QString & |
name | ) |
|
Sets the working-set for this area.
The working-set is just a marker, and does nothing within Area. The actual view management has to be implemented in the entity that knows more about possible views, documents, etc. (kdevplatform/shell)
- Warning
- (KDevelop): Before calling this, make sure that all views are saved! (see IDocumentController::saveAllDocumentsForWindow)
Definition at line 471 of file area.cpp.
template<typename Operator >
void Sublime::Area::walkToolViews |
( |
Operator & |
op, |
|
|
Positions |
positions |
|
) |
| |
Walks the list of tool views.
The order in which tool views are walked is not specified.
Operator should be the class with bool operator()(View *view, Sublime::Position position) method. That method should return Area::StopWalker if the walker has to stop at current index or Area::ContinueWalker to continue.
Example (operator to print the list of views):
struct MyOperator {
std::cerr << view << " at position " << position << std::endl;
}
};
...
MyOperator op;
Definition at line 67 of file areawalkers.h.
template<typename Operator >
void Sublime::Area::walkViews |
( |
Operator & |
op, |
|
|
AreaIndex * |
index |
|
) |
| |
Walks the tree of area indices and executes the operator.
It will always walk the tree of views from top to bottom from left to right.
Operator should be the class with WalkerResult operator()(AreaIndex *index) method. That method should return Area::StopWalker if the walker has to stop at current index or Area::ContinueWalker to continue.
Example (operator to print the indices, assumes hypothetical operator <<()):
struct MyOperator {
std::cerr << index << std::endl;
}
};
...
MyOperator op;
Definition at line 61 of file areawalkers.h.