KHTML
#include <khtmlviewbar.h>
Public Types | |
enum | Position { Top, Bottom } |
Public Slots | |
void | hideCurrentBarWidget () |
Public Member Functions | |
KHTMLViewBar (Position position, KHTMLView *view, QWidget *parent) | |
void | addBarWidget (KHTMLViewBarWidget *newBarWidget) |
void | addPermanentBarWidget (KHTMLViewBarWidget *barWidget) |
bool | hasPermanentWidget (KHTMLViewBarWidget *barWidget) const |
void | removePermanentBarWidget (KHTMLViewBarWidget *barWidget) |
void | showBarWidget (KHTMLViewBarWidget *barWidget) |
Protected Member Functions | |
virtual void | hideEvent (QHideEvent *event) |
virtual void | keyPressEvent (QKeyEvent *event) |
Detailed Description
Definition at line 28 of file khtmlviewbar.h.
Member Enumeration Documentation
Enumerator | |
---|---|
Top | |
Bottom |
Definition at line 32 of file khtmlviewbar.h.
Constructor & Destructor Documentation
Definition at line 30 of file khtmlviewbar.cpp.
Member Function Documentation
void KHTMLViewBar::addBarWidget | ( | KHTMLViewBarWidget * | 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 42 of file khtmlviewbar.cpp.
void KHTMLViewBar::addPermanentBarWidget | ( | KHTMLViewBarWidget * | 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 56 of file khtmlviewbar.cpp.
bool KHTMLViewBar::hasPermanentWidget | ( | KHTMLViewBarWidget * | barWidget | ) | const |
- Returns
- if viewbar has permanent widget
barWidget
Definition at line 86 of file khtmlviewbar.cpp.
|
slot |
Hides currently shown bar widget.
Definition at line 110 of file khtmlviewbar.cpp.
|
protectedvirtual |
Definition at line 139 of file khtmlviewbar.cpp.
|
protectedvirtual |
Definition at line 129 of file khtmlviewbar.cpp.
void KHTMLViewBar::removePermanentBarWidget | ( | KHTMLViewBarWidget * | 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 71 of file khtmlviewbar.cpp.
void KHTMLViewBar::showBarWidget | ( | KHTMLViewBarWidget * | barWidget | ) |
Shows barWidget that was previously added with addBarWidget.
- See also
- hideCurrentBarWidget
Definition at line 91 of file khtmlviewbar.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.