synthclone
0.3.0
|
Utility view class. More...
#include <synthclone/view.h>
Public Slots | |
virtual void | setCloseEnabled (bool enabled) |
Enables/disables closing for this view. More... | |
virtual void | setVisible (bool visible) |
Sets the visibility of the root widget. More... | |
Signals | |
void | closeEnabledChanged (bool enabled) |
Emitted when closing is enabled/disabled. More... | |
void | closeRequest () |
Emitted when a root widget's close button is pressed. More... | |
void | visibilityChanged (bool visible) |
Emitted when the visibility flag for the view changes. More... | |
Public Member Functions | |
bool | isCloseEnabled () const |
Gets a boolean indicating whether or not closing of this view is enabled. More... | |
bool | isVisible () const |
Gets a boolean indicating whether or not the view is visible. More... | |
Protected Member Functions | |
View (QWidget *rootWidget, QObject *parent=0) | |
Constructs a new View. More... | |
virtual | ~View () |
Destroys the View object. More... | |
const QWidget * | getRootWidget () const |
Gets the root widget for this view. More... | |
QWidget * | getRootWidget () |
Gets the root widget for this view. More... | |
Utility view class.
Captures any close event and emits a signal instead of requiring the subclassing of a widget.
Views based on this class attempt to build on the 'passive view' design pattern, meaning that the view knows nothing about the model, and is subject to the will of the controller.
|
explicitprotected |
|
protectedvirtual |
Destroys the View object.
|
signal |
Emitted when closing is enabled/disabled.
enabled | Whether or not closing is enabled. |
|
signal |
Emitted when a root widget's close button is pressed.
|
protected |
Gets the root widget for this view.
|
protected |
Gets the root widget for this view.
bool synthclone::View::isCloseEnabled | ( | ) | const |
Gets a boolean indicating whether or not closing of this view is enabled.
bool synthclone::View::isVisible | ( | ) | const |
Gets a boolean indicating whether or not the view is visible.
|
virtualslot |
Enables/disables closing for this view.
If closing is disabled, closeRequest() signals will not be raised when a user presses the close button in the taskbar. Closing is enabled by default.
enabled | Whether or not closing is enabled. |
|
virtualslot |
Sets the visibility of the root widget.
visible | Whether or not the root widget should be visible. |
|
signal |
Emitted when the visibility flag for the view changes.
visible | The updated visibility flag. |