All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions
Qtilities::Plugins::SessionLog::SessionLogMode Class Reference

The session log mode is used to display output from the Qtilities Logging module as a mode in the Qtilities::CoreGui::QtilitiesMainWindow. More...

#include <SessionLogMode.h>

Inheritance diagram for Qtilities::Plugins::SessionLog::SessionLogMode:
Inheritance graph
[legend]

List of all members.

Public Member Functions

QString contextString () const
 Returns a context string for the context associated with this mode.
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.
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.
- Public Member Functions inherited from Qtilities::CoreGui::Interfaces::IMode
virtual 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.
virtual QString contextHelpId () const
 Returns a help ID for this context.
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.
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

The session log mode is used to display output from the Qtilities Logging module as a mode in the Qtilities::CoreGui::QtilitiesMainWindow.


Member Function Documentation

QString Qtilities::Plugins::SessionLog::SessionLogMode::contextString ( ) const
inlinevirtual

Returns a context string for the context associated with this mode.

By default no context will be associated with a mode.

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

QIcon Qtilities::Plugins::SessionLog::SessionLogMode::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::Plugins::SessionLog::SessionLogMode::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::Plugins::SessionLog::SessionLogMode::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.

bool Qtilities::Plugins::SessionLog::SessionLogMode::setModeIcon ( QIcon  icon)
virtual

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.

The expected mode icon size is 48x48.

See also:
modeIcon()

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



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