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

tdeui

Signals | Public Member Functions | List of all members
KLanguageButton Class Reference

#include <klanguagebutton.h>

Inherits TQWidget.

Signals

void activated (const TQString &id)
 
void highlighted (const TQString &id)
 

Public Member Functions

 KLanguageButton (TQWidget *parent=0, const char *name=0)
 
 KLanguageButton (const TQString &text, TQWidget *parent=0, const char *name=0)
 
virtual ~KLanguageButton ()
 
void insertItem (const TQIconSet &icon, const TQString &text, const TQString &id, const TQString &submenu=TQString::null, int index=-1)
 
void insertItem (const TQString &text, const TQString &id, const TQString &submenu=TQString::null, int index=-1)
 
void insertSeparator (const TQString &submenu=TQString::null, int index=-1)
 
void insertSubmenu (const TQIconSet &icon, const TQString &text, const TQString &id, const TQString &submenu=TQString::null, int index=-1)
 
void insertSubmenu (const TQString &text, const TQString &id, const TQString &submenu=TQString::null, int index=-1)
 
void insertLanguage (const TQString &path, const TQString &name, const TQString &sub=TQString::null, const TQString &submenu=TQString::null, int index=-1)
 
int count () const
 
void clear ()
 
void setText (const TQString &text)
 
TQString current () const
 
bool contains (const TQString &id) const
 
void setCurrentItem (const TQString &id)
 
TQString id (int i) const
 

Detailed Description

KLanguageButton provides a combobox with a 2-D dataset.

It also supports icons. It is also possible to construct a non combobox version.

All items are identified using strings, not integers.

Combined version of KTagCombo and KLanguageCombo but using a QPushButton instead.

Definition at line 47 of file klanguagebutton.h.

Constructor & Destructor Documentation

◆ KLanguageButton() [1/2]

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

Constructs a combobox widget with parent parent called name.

Parameters
parentThe parent of the combo box
nameThe name of the combo box

Definition at line 84 of file klanguagebutton.cpp.

◆ KLanguageButton() [2/2]

KLanguageButton::KLanguageButton ( const TQString &  text,
TQWidget *  parent = 0,
const char *  name = 0 
)

Constructs a version with static text.

The parent parent is called name.

Parameters
textThe text of the button
parentThe parent of the button
nameThe name of the button

Definition at line 90 of file klanguagebutton.cpp.

◆ ~KLanguageButton()

KLanguageButton::~KLanguageButton ( )
virtual

Deconstructor.

Definition at line 122 of file klanguagebutton.cpp.

Member Function Documentation

◆ activated

void KLanguageButton::activated ( const TQString &  id)
signal

This signal is emitted when a new item is activated.

The id is the identificator of the selected item.

◆ clear()

void KLanguageButton::clear ( )

Removes all combobox items.

Definition at line 211 of file klanguagebutton.cpp.

◆ contains()

bool KLanguageButton::contains ( const TQString &  id) const

Returns TRUE if the combobox contains id.

Definition at line 233 of file klanguagebutton.cpp.

◆ count()

int KLanguageButton::count ( ) const

Definition at line 206 of file klanguagebutton.cpp.

◆ current()

TQString KLanguageButton::current ( ) const

Returns the id of the combobox's current item.

Definition at line 238 of file klanguagebutton.cpp.

◆ id()

TQString KLanguageButton::id ( int  i) const

Definition at line 244 of file klanguagebutton.cpp.

◆ insertItem() [1/2]

void KLanguageButton::insertItem ( const TQIconSet &  icon,
const TQString &  text,
const TQString &  id,
const TQString &  submenu = TQString::null,
int  index = -1 
)

Inserts an item into the combo box.

A negative index will append the item.

Parameters
iconThe icon used used when displaying the item.
textThe text string used when displaying the item.
idThe text string used to identify the item.
submenuThe place where the item should be placed.
indexThe visual position in the submenu.

Definition at line 144 of file klanguagebutton.cpp.

◆ insertItem() [2/2]

void KLanguageButton::insertItem ( const TQString &  text,
const TQString &  id,
const TQString &  submenu = TQString::null,
int  index = -1 
)

Inserts an item into the combo box.

A negative index will append the item.

Parameters
textThe text string used when displaying the item.
idThe text string used to identify the item.
submenuThe place where the item should be placed.
indexThe visual position in the submenu.

Definition at line 153 of file klanguagebutton.cpp.

◆ insertLanguage()

void KLanguageButton::insertLanguage ( const TQString &  path,
const TQString &  name,
const TQString &  sub = TQString::null,
const TQString &  submenu = TQString::null,
int  index = -1 
)

Definition at line 131 of file klanguagebutton.cpp.

◆ insertSeparator()

void KLanguageButton::insertSeparator ( const TQString &  submenu = TQString::null,
int  index = -1 
)

Inserts a seperator item into the combo box.

A negative index will append the item.

Parameters
submenuThe place where the item should be placed.
indexThe visual position in the submenu.

Definition at line 159 of file klanguagebutton.cpp.

◆ insertSubmenu() [1/2]

void KLanguageButton::insertSubmenu ( const TQIconSet &  icon,
const TQString &  text,
const TQString &  id,
const TQString &  submenu = TQString::null,
int  index = -1 
)

Inserts a submenu into the combo box.

A negative index will append the item.

Parameters
iconThe icon used used when displaying the item.
textThe text string used when displaying the item.
idThe text string used to identify the item.
submenuThe place where the item should be placed.
indexThe visual position in the submenu.

Definition at line 166 of file klanguagebutton.cpp.

◆ insertSubmenu() [2/2]

void KLanguageButton::insertSubmenu ( const TQString &  text,
const TQString &  id,
const TQString &  submenu = TQString::null,
int  index = -1 
)

Inserts a submenu into the combo box.

A negative index will append the item.

Parameters
textThe text string used when displaying the item.
idThe text string used to identify the item.
submenuThe place where the item should be placed.
indexThe visual position in the submenu.

Definition at line 181 of file klanguagebutton.cpp.

◆ setCurrentItem()

void KLanguageButton::setCurrentItem ( const TQString &  id)

Sets id as current item.

Definition at line 277 of file klanguagebutton.cpp.

◆ setText()

void KLanguageButton::setText ( const TQString &  text)

Changes the current text item of the combobox, and makes the text static.

Definition at line 98 of file klanguagebutton.cpp.


The documentation for this class was generated from the following files:
  • klanguagebutton.h
  • klanguagebutton.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.