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

KHTML

Public Types | Public Slots | Public Member Functions | Protected Member Functions | List of all members
KHTMLViewBar Class Reference

#include <khtmlviewbar.h>

Inheritance diagram for KHTMLViewBar:
Inheritance graph
[legend]

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

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 110 of file khtmlviewbar.cpp.

void KHTMLViewBar::hideEvent ( QHideEvent *  event)
protectedvirtual

Definition at line 139 of file khtmlviewbar.cpp.

void KHTMLViewBar::keyPressEvent ( QKeyEvent *  event)
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:
  • khtmlviewbar.h
  • khtmlviewbar.cpp
This file is part of the KDE documentation.
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.

KHTML

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal