#include <dockviewbase.h>
Inherits TQVBox.
Inherited by Kate::ListboxView, and Kate::MessageView.
Public Member Functions | |
DockViewBase (TQWidget *parent=0, const char *name=0) | |
DockViewBase (const TQString &prefix, const TQString &title, TQWidget *parent=0, const char *name=0) | |
void | setTitlePrefix (const TQString &prefix) |
TQString | titlePrefix () const |
void | setTitle (const TQString &title) |
void | setTitle (const TQString &prefix, const TQString &title) |
TQString | title () const |
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.
Definition at line 53 of file dockviewbase.h.
Constructor & Destructor Documentation
◆ DockViewBase() [1/2]
Kate::DockViewBase::DockViewBase | ( | TQWidget * | parent = 0 , |
const char * | name = 0 |
||
) |
Create a KateDockViewBase.
Definition at line 39 of file dockviewbase.cpp.
◆ DockViewBase() [2/2]
Kate::DockViewBase::DockViewBase | ( | const TQString & | prefix, |
const TQString & | title, | ||
TQWidget * | parent = 0 , |
||
const char * | name = 0 |
||
) |
Create a KateDockViewBase with the title prefix prefix
and the title title
.
Definition at line 46 of file dockviewbase.cpp.
Member Function Documentation
◆ setTitle() [1/2]
void Kate::DockViewBase::setTitle | ( | const TQString & | prefix, |
const TQString & | title | ||
) |
Convenience method, sets both the prefix and title.
Definition at line 80 of file dockviewbase.cpp.
◆ setTitle() [2/2]
void Kate::DockViewBase::setTitle | ( | const TQString & | title | ) |
Set the title to title
.
Definition at line 69 of file dockviewbase.cpp.
◆ setTitlePrefix()
void Kate::DockViewBase::setTitlePrefix | ( | const TQString & | prefix | ) |
Set the title prefix to prefix
.
Definition at line 58 of file dockviewbase.cpp.
◆ title()
TQString Kate::DockViewBase::title | ( | ) | const |
- Returns
- the title of the KateDockViewBase
Definition at line 75 of file dockviewbase.cpp.
◆ titlePrefix()
TQString Kate::DockViewBase::titlePrefix | ( | ) | const |
- Returns
- The title prefix.
Definition at line 64 of file dockviewbase.cpp.
The documentation for this class was generated from the following files: