All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Slots | Public Member Functions
Qtilities::Testing::DebugWidget Class Reference

A widget providing debug information about a Qtilities application. More...

#include <DebugWidget.h>

Inheritance diagram for Qtilities::Testing::DebugWidget:
Inheritance graph
[legend]

List of all members.

Public Slots

void handle_factoryListSelectionChanged (const QString &factory_name)
 Handles selection changes in the factory list widget.
void handle_objectPoolDoubleClick (QObject *object)
 Global object pool double click.

Public Member Functions

void aboutToBeActivated ()
 This function is called when the mode is about to be activated. That is, when the user clicks on the mode and it is going to become the active mode.
void finalizeMode ()
 Finalize the mode, will be called in initializeDependencies().
void initializeMode ()
 This function is called in the initializeDependencies() function, thus all objects implementing interfaces in which a mode might be interested will be present in the global object pool.
QIcon modeIcon () const
 An icon for the mode.
QString modeName () const
 The name of the mode which is the text used to represent it.
QWidget * modeWidget ()
 The main window's central widget for the mode.
QObject * objectBase ()
 Returns the QObject* base of the interface.
const QObject * objectBase () const
 Returns a const QObject* base of the interface.
- Public Member Functions inherited from Qtilities::CoreGui::Interfaces::IMode
virtual QString contextHelpId () const
 Returns a help ID for this context.
virtual QString contextString () const
 Returns a context string for the context associated with this mode.
virtual void justActivated ()
 This function is called after a mode was activated. That is, when the user clicked on the mode and it became the active mode.
virtual int modeID () const
 Returns a unique ID for this mode.
virtual bool setModeIcon (QIcon icon)
 A function which can be implemented by modes if they allow their icon to be changed. By default this function does nothing and returns false.
void setModeID (int mode_id)
 Sets the mode ID for this mode.
void setTargetManagerIDs (QList< int > new_target_manager_ids)
 Sets the list of mode managers in which this mode must appear.
int supportedExtensionWidgetLocations () const
 Returns the supported locations of extension widgets in this mode.
QList< int > targetManagerIDs () const
 Gets the list of mode managers in which this mode must appear.
- Public Member Functions inherited from Qtilities::Core::Interfaces::IObjectBase
QString objectOriginID () const
 Allows interfaces to provide some sort of source identification.
void setObjectOriginID (const QString &object_origin_id)
 Allows setting of the object source ID of this interface implementation.

Detailed Description

A widget providing debug information about a Qtilities application.

For more information see the Debugging Qtilities Applications article.


Member Function Documentation

void Qtilities::Testing::DebugWidget::aboutToBeActivated ( )
virtual

This function is called when the mode is about to be activated. That is, when the user clicks on the mode and it is going to become the active mode.

By default this function does nothing. Modes that require this functionality must reimplement this virtual function.

See also:
justActivated()

Reimplemented from Qtilities::CoreGui::Interfaces::IMode.

QIcon Qtilities::Testing::DebugWidget::modeIcon ( ) const
virtual

An icon for the mode.

The expected mode icon size is 48x48.

See also:
setModeIcon()

Implements Qtilities::CoreGui::Interfaces::IMode.

QWidget * Qtilities::Testing::DebugWidget::modeWidget ( )
virtual

The main window's central widget for the mode.

This widget must have a proper layout in order to be displayed correctly.

Implements Qtilities::CoreGui::Interfaces::IMode.

const QObject* Qtilities::Testing::DebugWidget::objectBase ( ) const
inlinevirtual

Returns a const QObject* base of the interface.

This function can be used in const methods, but make sure that you don't modify things that should stay const. An example where this is used is when we want to get a property on an object in a const method. This is a const operation.

Implements Qtilities::Core::Interfaces::IObjectBase.



Qtilities : Reference Documentation Back to top Copyright © 2009-2013, Jaco Naudé