27 #ifndef __KLANGBUTTON_H__
28 #define __KLANGBUTTON_H__
32 #include <tdelibs_export.h>
34 class KLanguageButtonPrivate;
67 KLanguageButton(
const TQString & text, TQWidget * parent = 0,
const char * name = 0);
83 void insertItem(
const TQIconSet& icon,
const TQString &text,
84 const TQString &
id,
const TQString &submenu = TQString::null,
94 void insertItem(
const TQString &text,
const TQString &
id,
95 const TQString &submenu = TQString::null,
int index = -1 );
102 void insertSeparator(
const TQString &submenu = TQString::null,
113 void insertSubmenu(
const TQIconSet & icon,
const TQString &text,
114 const TQString &
id,
const TQString &submenu = TQString::null,
124 void insertSubmenu(
const TQString &text,
const TQString &
id,
125 const TQString &submenu = TQString::null,
int index = -1);
128 void insertLanguage(
const TQString& path,
const TQString& name,
129 const TQString& sub = TQString::null,
130 const TQString &submenu = TQString::null,
int index = -1);
141 void setText(
const TQString & text);
145 TQString current()
const;
149 bool contains(
const TQString &
id )
const;
153 void setCurrentItem(
const TQString &
id );
155 TQString id(
int i )
const;
163 void highlighted(
const TQString &
id );
166 void slotActivated(
int );
167 void slotHighlighted(
int );
170 int currentItem()
const;
171 void setCurrentItem(
int );
172 void init(
const char * name);
176 TQPopupMenu *m_popup, *m_oldPopup;
179 KLanguageButtonPrivate * d;