• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KHTML

KHTMLViewBar Class Reference

#include <khtmlviewbar.h>

Inheritance diagram for KHTMLViewBar:
QWidget

List of all members.

Public Types

enum  Position { Top, Bottom }

Public Slots

void hideCurrentBarWidget ()

Public Member Functions

void addBarWidget (KHTMLViewBarWidget *newBarWidget)
void addPermanentBarWidget (KHTMLViewBarWidget *barWidget)
bool hasPermanentWidget (KHTMLViewBarWidget *barWidget) const
 KHTMLViewBar (Position position, KHTMLView *view, QWidget *parent)
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

enum KHTMLViewBar::Position
Enumerator:
Top 
Bottom 

Definition at line 32 of file khtmlviewbar.h.


Constructor & Destructor Documentation

KHTMLViewBar::KHTMLViewBar ( Position  position,
KHTMLView *  view,
QWidget *  parent 
)

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.

void KHTMLViewBar::hideCurrentBarWidget (  )  [slot]

Hides currently shown bar widget.

Definition at line 109 of file khtmlviewbar.cpp.

void KHTMLViewBar::hideEvent ( QHideEvent *  event  )  [protected, virtual]

Definition at line 138 of file khtmlviewbar.cpp.

void KHTMLViewBar::keyPressEvent ( QKeyEvent *  event  )  [protected, virtual]

Definition at line 128 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:
  • khtmlviewbar.h
  • khtmlviewbar.cpp

KHTML

Skip menu "KHTML"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal