Kate::DockViewBase Class Reference

#include <dockviewbase.h>

List of all members.


Detailed Description

Base class for dockwidget views This class creates a widget meant to be set as the main widget for a KDockWidget.

This class provides a title in two parts, titlePrefix and title. The size policies are set so that neither will prevent resizing the view to a width smaller than the texts, the titlePrefix (on the left) will remain fully visible for as long as possible.

Use the titlePrefix to describe the nature of the view contents, for example "Messages".

Use the title to inform the user what is currently in the view, for example the name of a related file, a command or similar.

To add widgets, just create them with this as the parent.

Author:
Anders Lund <anders@alweb.dk>

Definition at line 53 of file dockviewbase.h.


Public Member Functions

 DockViewBase (QWidget *parent=0, const char *name=0)
 DockViewBase (const QString &prefix, const QString &title, QWidget *parent=0, const char *name=0)
void setTitlePrefix (const QString &prefix)
QString titlePrefix () const
void setTitle (const QString &title)
void setTitle (const QString &prefix, const QString &title)
QString title () const

Constructor & Destructor Documentation

Kate::DockViewBase::DockViewBase QWidget *  parent = 0,
const char *  name = 0
 

Create a KateDockViewBase.

Kate::DockViewBase::DockViewBase const QString &  prefix,
const QString &  title,
QWidget *  parent = 0,
const char *  name = 0
 

Create a KateDockViewBase with the title prefix prefix and the title title.


Member Function Documentation

void Kate::DockViewBase::setTitle const QString &  prefix,
const QString &  title
 

Convenience method, sets both the prefix and title.

void Kate::DockViewBase::setTitle const QString &  title  ) 
 

Set the title to title.

void Kate::DockViewBase::setTitlePrefix const QString &  prefix  ) 
 

Set the title prefix to prefix.

QString Kate::DockViewBase::title  )  const
 

Returns:
the title of the KateDockViewBase

QString Kate::DockViewBase::titlePrefix  )  const
 

Returns:
The title prefix.

The documentation for this class was generated from the following file:
KDE Home | KDE Accessibility Home | Description of Access Keys