Kate
KateViewBar Class Reference
#include <kateviewhelpers.h>

Public Slots | |
void | hideCurrentBarWidget () |
Public Member Functions | |
void | addBarWidget (KateViewBarWidget *newBarWidget) |
void | addPermanentBarWidget (KateViewBarWidget *barWidget) |
bool | hasPermanentWidget (KateViewBarWidget *barWidget) const |
KateViewBar (bool external, KTextEditor::ViewBarContainer::Position pos, QWidget *parent, KateView *view) | |
void | removePermanentBarWidget (KateViewBarWidget *barWidget) |
void | showBarWidget (KateViewBarWidget *barWidget) |
Protected Member Functions | |
virtual void | hideEvent (QHideEvent *event) |
virtual void | keyPressEvent (QKeyEvent *event) |
Detailed Description
Definition at line 295 of file kateviewhelpers.h.
Constructor & Destructor Documentation
KateViewBar::KateViewBar | ( | bool | external, | |
KTextEditor::ViewBarContainer::Position | pos, | |||
QWidget * | parent, | |||
KateView * | view | |||
) |
Definition at line 1886 of file kateviewhelpers.cpp.
Member Function Documentation
void KateViewBar::addBarWidget | ( | KateViewBarWidget * | newBarWidget | ) |
Adds a widget to this viewbar.
Widget is initially invisible, you should call showBarWidget, to show it. Several widgets can be added to the bar, but only one can be visible
Definition at line 1898 of file kateviewhelpers.cpp.
void KateViewBar::addPermanentBarWidget | ( | KateViewBarWidget * | barWidget | ) |
Adds widget that will be always shown in the viewbar.
After adding permanent widget viewbar is immediately shown. ViewBar with permanent widget won't hide itself until permanent widget is removed. OTOH showing/hiding regular barWidgets will work as usual (they will be shown above permanent widget)
If permanent widget already exists, new one replaces old one Old widget is not deleted, caller can do it if it wishes
Definition at line 1912 of file kateviewhelpers.cpp.
bool KateViewBar::hasPermanentWidget | ( | KateViewBarWidget * | barWidget | ) | const |
- Returns:
- if viewbar has permanent widget
barWidget
Definition at line 1946 of file kateviewhelpers.cpp.
void KateViewBar::hideCurrentBarWidget | ( | ) | [slot] |
void KateViewBar::hideEvent | ( | QHideEvent * | event | ) | [protected, virtual] |
void KateViewBar::keyPressEvent | ( | QKeyEvent * | event | ) | [protected, virtual] |
void KateViewBar::removePermanentBarWidget | ( | KateViewBarWidget * | barWidget | ) |
Removes permanent bar widget from viewbar.
If no other viewbar widgets are shown, viewbar gets hidden.
barWidget is not deleted, caller must do it if it wishes
Definition at line 1927 of file kateviewhelpers.cpp.
void KateViewBar::showBarWidget | ( | KateViewBarWidget * | barWidget | ) |
Shows barWidget that was previously added with addBarWidget.
- See also:
- hideCurrentBarWidget
Definition at line 1951 of file kateviewhelpers.cpp.
The documentation for this class was generated from the following files: