umbrello  2.35.1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
Public Slots | Public Member Functions | Private Types | Private Slots | Private Member Functions | Private Attributes | List of all members
DocWindow Class Reference

#include <docwindow.h>

Inheritance diagram for DocWindow:
Collaboration diagram for DocWindow:

Public Slots

void slotAssociationRemoved (AssociationWidget *association)
 
void slotWidgetRemoved (UMLWidget *widget)
 

Public Member Functions

 DocWindow (UMLDoc *doc, QWidget *parent=0)
 
 ~DocWindow ()
 
void showDocumentation (UMLObject *object, bool overwrite=false)
 
void showDocumentation (UMLScene *scene, bool overwrite=false)
 
void showDocumentation (UMLWidget *widget, bool overwrite=false)
 
void showDocumentation (AssociationWidget *widget, bool overwrite=false)
 
void updateDocumentation (bool clear=false, bool startup=false)
 
void reset ()
 
bool isTyping () const
 
void setFocus ()
 

Private Types

enum  ShowingType {
  st_Project, st_UMLScene, st_UMLObject, st_UMLWidget,
  st_Association
}
 

Private Slots

void slotTextChanged ()
 
void slotFocusEnabledChanged (int state)
 

Private Member Functions

bool isModified () const
 
QLabel * createPixmapLabel ()
 
void updateLabel (const QString &name=QString())
 
void toForeground ()
 

Private Attributes

UMLObjectm_pUMLObject
 The UMLObject we are going to show documentation. More...
 
UMLScenem_pUMLScene
 The UMLScene we are going to show documentation. More...
 
UMLDocm_pUMLDoc
 The Project we are going to show documentation. More...
 
UMLWidgetm_pUMLWidget
 The UMLWidget we are going to show documentation. More...
 
AssociationWidgetm_pAssocWidget
 The association we are going to show documentation. More...
 
ShowingType m_Showing
 Which type of documentation we are showing. More...
 
QLabel * m_typeLabel
 label for type icon More...
 
QLabel * m_nameLabel
 label for name text More...
 
ModifiedWidgetm_modifiedWidget
 label for modified flag icon More...
 
KTextEdit * m_docTE
 documentation widget More...
 
bool m_focusEnabled
 

Detailed Description

Author
Paul Hensgen Bugs and comments to umbre.nosp@m.llo-.nosp@m.devel.nosp@m.@kde.nosp@m..org or https://bugs.kde.org

Member Enumeration Documentation

enum DocWindow::ShowingType
private

Used internally to know which type of object we are showing documentation for.

Enumerator
st_Project 
st_UMLScene 
st_UMLObject 
st_UMLWidget 
st_Association 

Constructor & Destructor Documentation

DocWindow::DocWindow ( UMLDoc doc,
QWidget *  parent = 0 
)
explicit

Constructor.

Here is the call graph for this function:

DocWindow::~DocWindow ( )

Destructor.

Member Function Documentation

QLabel * DocWindow::createPixmapLabel ( )
private

Creates a QLabel used with a pixmap.

Returns
the just created QLabel
bool DocWindow::isModified ( ) const
private

Checks if the user is typing in the documentation edit window.

Here is the call graph for this function:

bool DocWindow::isTyping ( ) const

Checks if the user is typing in the documentation edit window.

void DocWindow::reset ( )

Re-initializes the class for a new document.

Here is the call graph for this function:

void DocWindow::setFocus ( )
void DocWindow::showDocumentation ( UMLObject object,
bool  overwrite = false 
)

Called when a widget wishes to display its documentation in the doc window. If there was already documentation there, that will be updated before being removed from the view.

Also call this function if you update the documentation in another place, such as a properties dialog. Just set overwrite to true.

Overwrite is used when you believe that the documentation window is already displaying documentation for the widget you wish to display. Overwrite just determines whose version is more up to date.

Here is the call graph for this function:

void DocWindow::showDocumentation ( UMLScene scene,
bool  overwrite = false 
)

This method is the same as the one for UMLObjects except it displays documentation for a diagram.

Here is the call graph for this function:

void DocWindow::showDocumentation ( UMLWidget widget,
bool  overwrite = false 
)

This method is the same as the one for UMLObjects except it displays documentation for an object instance (StateWidget/ ObjectWidget).

Here is the call graph for this function:

void DocWindow::showDocumentation ( AssociationWidget widget,
bool  overwrite = false 
)

This method is the same as the one for UMLObjects except it displays documentation for an association instance (AssociationWidget).

Here is the call graph for this function:

void DocWindow::slotAssociationRemoved ( AssociationWidget association)
slot

An association was removed from the UMLScene. If the association removed was the association whose documentation is being shown, m_pAssocWidget is set to 0.

Here is the call graph for this function:

void DocWindow::slotFocusEnabledChanged ( int  status)
privateslot

Set state of focus enabled support.

void DocWindow::slotTextChanged ( )
privateslot

text from the edit field has been changed

Here is the call graph for this function:

void DocWindow::slotWidgetRemoved ( UMLWidget widget)
slot

A widget was removed from the UMLScene. If the association removed was the association which documentation is being shown, m_pUMLWidget is set to 0.

Here is the call graph for this function:

void DocWindow::toForeground ( )
private

Bring doc window to foreground if it is tabbed with other dock widgets.

Here is the call graph for this function:

void DocWindow::updateDocumentation ( bool  clear = false,
bool  startup = false 
)

Call when you wish move changes in the doc window back into the members documentation.

If clear is true the doc window will display the documentation for the current project instead of the widget documentation.

This is usually called before displaying a properties dialog.

Parameters
clearIf true, show the documentation of current project
startupIf true, no setModified(true) calls will be done and nothing is pushed to the undo stack

Here is the call graph for this function:

void DocWindow::updateLabel ( const QString &  name = QString())
private

Updates the info label with the current state. If the given name is empty only the modified icon is set.

Here is the call graph for this function:

Member Data Documentation

KTextEdit* DocWindow::m_docTE
private

documentation widget

bool DocWindow::m_focusEnabled
private
ModifiedWidget* DocWindow::m_modifiedWidget
private

label for modified flag icon

QLabel* DocWindow::m_nameLabel
private

label for name text

AssociationWidget* DocWindow::m_pAssocWidget
private

The association we are going to show documentation.

UMLDoc* DocWindow::m_pUMLDoc
private

The Project we are going to show documentation.

UMLObject* DocWindow::m_pUMLObject
private

The UMLObject we are going to show documentation.

UMLScene* DocWindow::m_pUMLScene
private

The UMLScene we are going to show documentation.

UMLWidget* DocWindow::m_pUMLWidget
private

The UMLWidget we are going to show documentation.

ShowingType DocWindow::m_Showing
private

Which type of documentation we are showing.

QLabel* DocWindow::m_typeLabel
private

label for type icon


The documentation for this class was generated from the following files: