kswitchlanguagedialog.cpp
96 TQLabel *label = new TQLabel( i18n("Please choose language which should be used for this application"), d->page, "label1" );
108 for ( TQStringList::ConstIterator it = defaultLanguages.begin(); it != defaultLanguages.end(); ++it )
123 KPushButton *addLangButton = new KPushButton(i18n("Add fallback language"), d->page, "addLangButton");
124 TQToolTip::add(addLangButton, i18n("Adds one more language which will be used if other translations do not contain proper translation"));
153 KPushButton *removeButton = const_cast<KPushButton*>(::tqt_cast<const KPushButton*>(signalSender));
157 kdError() << "KSwitchLanguageDialog::removeButtonClicked() called from something else than KPushButton";
181 for ( TQPtrList<KLanguageButton>::ConstIterator it = d->languageButtons.begin(); it != d->languageButtons.end(); ++it )
198 for ( TQPtrList<KLanguageButton>::ConstIterator it = d->languageButtons.begin(); it != d->languageButtons.end(); ++it )
222 i18n("Language for this application has been changed. The change will take effect upon next start of application"), //text
280 void KSwitchLanguageDialogPrivate::addLanguageButton(const TQString & languageCode, bool primaryLanguage)
316 TQToolTip::add(languageButton, i18n("This is main application language which will be used first before any other languages"));
320 TQToolTip::add(languageButton, i18n("This is language which will be used if any previous languages does not contain proper translation"));
326 languagesLayout->addWidget( languageLabel, numRows + 1, 1, (TQt::AlignmentFlags)TQt::AlignAuto );
327 languagesLayout->addWidget( languageButton, numRows + 1, 2, (TQt::AlignmentFlags)TQt::AlignAuto );
331 languagesLayout->addWidget( removeButton, numRows + 1, 3, (TQt::AlignmentFlags)TQt::AlignAuto );
A dialog base class with standard buttons and predefined layouts.
Definition: kdialogbase.h:192
void setMainWidget(TQWidget *widget)
Sets the main user definable widget.
Definition: kdialogbase.cpp:1431
static int spacingHint()
Return the number of pixels you shall use between widgets inside a dialog according to the KDE standa...
Definition: kdialog.cpp:110
KLanguageButton provides a combobox with a 2-D dataset.
Definition: klanguagebutton.h:48
void setText(const TQString &text)
Changes the current text item of the combobox, and makes the text static.
Definition: klanguagebutton.cpp:98
TQString current() const
Returns the id of the combobox's current item.
Definition: klanguagebutton.cpp:238
void 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.
Definition: klanguagebutton.cpp:144
static void information(TQWidget *parent, const TQString &text, const TQString &caption=TQString::null, const TQString &dontShowAgainName=TQString::null, int options=Notify)
Display an "Information" dialog.
Definition: tdemessagebox.cpp:883
This is nothing but a TQPushButton with drag-support and KGuiItem support.
Definition: kpushbutton.h:38
Standard "switch application language" dialog box.
Definition: kswitchlanguagedialog.h:39
virtual void slotOk()
Activated when the Ok button has been clicked.
Definition: kswitchlanguagedialog.cpp:193
KSwitchLanguageDialog(TQWidget *parent=0, const char *name=0, bool modal=true)
Constructor.
Definition: kswitchlanguagedialog.cpp:85
virtual void slotAddLanguageButton()
Called to add one language button to dialog.
Definition: kswitchlanguagedialog.cpp:137
virtual void removeButtonClicked()
Called when "Remove" language button is clicked.
Definition: kswitchlanguagedialog.cpp:143
virtual void languageOnButtonChanged(const TQString &)
Called when one of language buttons changes state.
Definition: kswitchlanguagedialog.cpp:179
bool hasGroup(const TQString &group) const
int readListEntry(const TQString &pKey, TQStrList &list, char sep=',') const
virtual void sync()
bool hasKey(const TQString &key) const
void writeEntry(const TQString &pKey, const TQString &pValue, bool bPersistent=true, bool bGlobal=false, bool bNLS=false)
static TDEConfig * config()
static TDELocale * locale()
TQStringList languageList() const
static TQString defaultLanguage()
TQStringList allLanguagesTwoAlpha() const
TQString twoAlphaToLanguageName(const TQString &code) const
kdbgstream kdError(int area=0)
TQString label(StdAccel id)