kate
Kate::ToolViewManager Class Reference
Interface to the toolviewmanager. More...
#include <toolviewmanager.h>
Inheritance diagram for Kate::ToolViewManager:
Public Types | |
enum | Position { Left, Right, Top, Bottom } |
Public Member Functions | |
QWidget * | createToolView (const QString &identifier, ToolViewManager::Position pos, const QPixmap &icon, const QString &text) |
bool | hideToolView (QWidget *widget) |
bool | moveToolView (QWidget *widget, ToolViewManager::Position pos) |
bool | showToolView (QWidget *widget) |
ToolViewManager (void *toolViewManager) | |
virtual | ~ToolViewManager () |
Detailed Description
Interface to the toolviewmanager.Definition at line 32 of file toolviewmanager.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
Kate::ToolViewManager::ToolViewManager | ( | void * | toolViewManager | ) |
Kate::ToolViewManager::~ToolViewManager | ( | ) | [virtual] |
Member Function Documentation
QWidget * Kate::ToolViewManager::createToolView | ( | const QString & | identifier, | |
ToolViewManager::Position | pos, | |||
const QPixmap & | icon, | |||
const QString & | text | |||
) |
add a given widget to the given sidebar if possible, name is very important
- Parameters:
-
identifier unique identifier for this toolview pos position for the toolview, if we are in session restore, this is only a preference icon icon to use for the toolview text text to use in addition to icon
- Returns:
- created toolview on success or 0
Definition at line 56 of file toolviewmanager.cpp.
bool Kate::ToolViewManager::hideToolView | ( | QWidget * | widget | ) |
Hide the toolview.
- Parameters:
-
widget to hide, widget given must be widget constructed by createToolView
- Returns:
- bool success
Definition at line 77 of file toolviewmanager.cpp.
bool Kate::ToolViewManager::moveToolView | ( | QWidget * | widget, | |
ToolViewManager::Position | pos | |||
) |
Move the toolview.
- Parameters:
-
widget to show, widget given must be widget constructed by createToolView pos position to move widget to
- Returns:
- bool success
Definition at line 61 of file toolviewmanager.cpp.
bool Kate::ToolViewManager::showToolView | ( | QWidget * | widget | ) |
Show the toolview.
- Parameters:
-
widget to show, widget given must be widget constructed by createToolView
- Returns:
- bool success
Definition at line 69 of file toolviewmanager.cpp.
The documentation for this class was generated from the following files: