|
The Vish Visualization Shell 0.3
Vish
|
Base class for convenient messing around with the status to be displayed for a certain object. More...
#include <ocean/shrimp/VObjectStatus.hpp>
Public Member Functions | |
| bool | setStatusCritical (const RefPtr< ValuePool > &Context, const string &what) const |
| Same as setStatusError() but with an annoying popup message. | |
| bool | setStatusError (const RefPtr< ValuePool > &Context, const string &what, bool AnnouncePublic=false) const |
| Indicate an error happening to this object. | |
| bool | setStatusInfo (const RefPtr< ValuePool > &Context, const string &what) const |
| Set the status info text for the given object, relative to the given context. | |
| bool | setStatusWarning (const RefPtr< ValuePool > &Context, const string &what) const |
| Indicate an informative warning message happening to this object. | |
| StatusIndicator (VObject *what, const string &initialtext="", int EL=0, const string &statusslotname=Slotname) | |
| virtual | ~StatusIndicator () |
| Destructor, virtual, such that dynamic type information is possible. | |
Public Attributes | |
| VOutput< VObjectStatus > | StatusInfo |
| The exported slot. | |
Static Public Attributes | |
| static const char | Slotname [] = "status" |
| The name of the slot that will be used for this status. | |
Base class for convenient messing around with the status to be displayed for a certain object.
| Wizt::StatusIndicator::StatusIndicator | ( | VObject * | what, |
| const string & | initialtext = "", |
||
| int | EL = 0, |
||
| const string & | statusslotname = Slotname |
||
| ) |
Constructor
@code
struct MyObject : VObject, StatusIndicator { MyObject(...) : VObject(...), StatusIndicator(this) {} };
| bool Wizt::StatusIndicator::setStatusError | ( | const RefPtr< ValuePool > & | Context, |
| const string & | what, | ||
| bool | AnnouncePublic = false |
||
| ) | const |
Indicate an error happening to this object.
| AnnouncePublic | If true then the error messages produced here will also be announced to the VActionNotifier which possibly pops up some intentionally annoying window to the user, and might go into some logfile. |
References Wizt::VObjectStatus::status, StatusInfo, and Wizt::VActionNotifier::Warning().
Referenced by Wizt::DeferredRenderObject::renderGL().
| bool Wizt::StatusIndicator::setStatusInfo | ( | const RefPtr< ValuePool > & | Context, |
| const string & | what | ||
| ) | const |
Set the status info text for the given object, relative to the given context.
References Wizt::VObjectStatus::status, and StatusInfo.
Referenced by Wizt::VCameraLens::environment_render(), GeoCameraLens::environment_render(), Wizt::CatchStatus::update(), and Wizt::DeferredRenderObject::update().