• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeui
 

tdeui

Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
KTabCtl Class Reference

#include <ktabctl.h>

Inherits TQWidget.

Signals

void tabSelected (int)
 

Public Member Functions

 KTabCtl (TQWidget *parent=0, const char *name=0)
 
void show ()
 
void setFont (const TQFont &font)
 
void setTabFont (const TQFont &font)
 
void addTab (TQWidget *, const TQString &)
 
bool isTabEnabled (const TQString &)
 
void setTabEnabled (const TQString &, bool)
 
void setBorder (bool)
 
void setShape (TQTabBar::Shape shape)
 
virtual TQSize sizeHint () const
 

Protected Slots

void showTab (int i)
 

Protected Member Functions

void paintEvent (TQPaintEvent *)
 
void resizeEvent (TQResizeEvent *)
 
void setSizes ()
 
TQRect getChildRect () const
 
virtual void virtual_hook (int id, void *data)
 

Protected Attributes

TQTabBar * tabs
 
TQMemArray< TQWidget * > pages
 
int bh
 
bool blBorder
 

Detailed Description

Tabbed dialog with extended features.

KTabCtl is very similar to TQTabDialog, with the following differences:

  • To avoid confusion, the API is almost identical with TQTabDialog.
  • Does not create any buttons, therefore KTabCtl is not limited to dialog boxes. You can use it whereever you want.
  • emits the signal tabSelected(int pagenumber) when the user selects one of the tabs. This gives you the chance to update the widget contents of a single page. The signal is emitted before the page is shown. This is very useful if the contents of some widgets on page A depend on the contents of some other widgets on page B.
Author
Alexander Sanda (alex@.nosp@m.dark.nosp@m.star..nosp@m.ping.nosp@m..at)
Version
$Id$

Definition at line 48 of file ktabctl.h.

Constructor & Destructor Documentation

◆ KTabCtl()

KTabCtl::KTabCtl ( TQWidget *  parent = 0,
const char *  name = 0 
)

KTabCtl provides a universal tab control.

It is in no ways limited to dialogs and can be used for whatever you want. It has no buttons or any other stuff.

However, this is based on the original TQTabDialog.

Definition at line 34 of file ktabctl.cpp.

◆ ~KTabCtl()

KTabCtl::~KTabCtl ( )

Definition at line 45 of file ktabctl.cpp.

Member Function Documentation

◆ addTab()

void KTabCtl::addTab ( TQWidget *  w,
const TQString &  name 
)

Definition at line 319 of file ktabctl.cpp.

◆ getChildRect()

TQRect KTabCtl::getChildRect ( ) const
protected

Definition at line 274 of file ktabctl.cpp.

◆ isTabEnabled()

bool KTabCtl::isTabEnabled ( const TQString &  name)

Definition at line 102 of file ktabctl.cpp.

◆ paintEvent()

void KTabCtl::paintEvent ( TQPaintEvent *  )
protected

Definition at line 238 of file ktabctl.cpp.

◆ resizeEvent()

void KTabCtl::resizeEvent ( TQResizeEvent *  )
protected

Definition at line 50 of file ktabctl.cpp.

◆ setBorder()

void KTabCtl::setBorder ( bool  state)

Definition at line 182 of file ktabctl.cpp.

◆ setFont()

void KTabCtl::setFont ( const TQFont &  font)

Definition at line 66 of file ktabctl.cpp.

◆ setShape()

void KTabCtl::setShape ( TQTabBar::Shape  shape)

Definition at line 187 of file ktabctl.cpp.

◆ setSizes()

void KTabCtl::setSizes ( )
protected

Definition at line 124 of file ktabctl.cpp.

◆ setTabEnabled()

void KTabCtl::setTabEnabled ( const TQString &  name,
bool  state 
)

Definition at line 112 of file ktabctl.cpp.

◆ setTabFont()

void KTabCtl::setTabFont ( const TQFont &  font)

Definition at line 75 of file ktabctl.cpp.

◆ show()

void KTabCtl::show ( void  )

Definition at line 84 of file ktabctl.cpp.

◆ showTab

void KTabCtl::showTab ( int  i)
protectedslot

Definition at line 291 of file ktabctl.cpp.

◆ sizeHint()

TQSize KTabCtl::sizeHint ( void  ) const
virtual

Definition at line 193 of file ktabctl.cpp.

◆ virtual_hook()

void KTabCtl::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

Definition at line 333 of file ktabctl.cpp.

Member Data Documentation

◆ bh

int KTabCtl::bh
protected

Definition at line 83 of file ktabctl.h.

◆ blBorder

bool KTabCtl::blBorder
protected

Definition at line 84 of file ktabctl.h.

◆ pages

TQMemArray<TQWidget *> KTabCtl::pages
protected

Definition at line 82 of file ktabctl.h.

◆ tabs

TQTabBar* KTabCtl::tabs
protected

Definition at line 81 of file ktabctl.h.


The documentation for this class was generated from the following files:
  • ktabctl.h
  • ktabctl.cpp

tdeui

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

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.9.4
This website is maintained by Timothy Pearson.