diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:09:56 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:09:56 -0600 |
commit | 5ca50f0ef6000d132b45fc6a50cf3062245bd070 (patch) | |
tree | 99c6b7de89d289e0a80ec21f7525dc514bc759d1 /kmouth/phrasebook/phrasebookdialog.h | |
parent | 722a076e84b860a947f4c68417db82526b03b1a1 (diff) | |
download | tdeaccessibility-5ca50f0ef6000d132b45fc6a50cf3062245bd070.tar.gz tdeaccessibility-5ca50f0ef6000d132b45fc6a50cf3062245bd070.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kmouth/phrasebook/phrasebookdialog.h')
-rw-r--r-- | kmouth/phrasebook/phrasebookdialog.h | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/kmouth/phrasebook/phrasebookdialog.h b/kmouth/phrasebook/phrasebookdialog.h index fcc2cc2..bacd7a9 100644 --- a/kmouth/phrasebook/phrasebookdialog.h +++ b/kmouth/phrasebook/phrasebookdialog.h @@ -35,7 +35,7 @@ class PhraseTreeItem; class PhraseTree; class TQStringList; class TQString; -class KListView; +class TDEListView; struct StandardBook { TQString name; @@ -85,7 +85,7 @@ private: /** initializes the list of standard phrase books */ void initStandardPhraseBooks (); - KListView *books; + TDEListView *books; }; /** @@ -93,12 +93,12 @@ private: * inserting a standard phrase book. * @author Gunnar Schmi Dt */ -class StandardPhraseBookInsertAction : public KAction { +class StandardPhraseBookInsertAction : public TDEAction { Q_OBJECT public: - StandardPhraseBookInsertAction (const KURL &url, const TQString& name, const TQObject* receiver, const char* slot, KActionCollection* parent) - : KAction (name, "phrasebook", 0, 0, 0, parent, 0) { + StandardPhraseBookInsertAction (const KURL &url, const TQString& name, const TQObject* receiver, const char* slot, TDEActionCollection* parent) + : TDEAction (name, "phrasebook", 0, 0, 0, parent, 0) { this->url = url; connect (this, TQT_SIGNAL(slotActivated (const KURL &)), receiver, slot); }; @@ -107,7 +107,7 @@ public: public slots: void slotActivated () { - KAction::slotActivated(); + TDEAction::slotActivated(); emit slotActivated (url); }; @@ -140,7 +140,7 @@ protected: * @author Gunnar Schmi Dt */ -class PhraseBookDialog : public KMainWindow { +class PhraseBookDialog : public TDEMainWindow { friend class InitialPhraseBookWidget; Q_OBJECT @@ -168,7 +168,7 @@ public slots: void slotTextChanged (const TQString &s); void slotNoKey(); void slotCustomKey(); - void capturedShortcut (const KShortcut& cut); + void capturedShortcut (const TDEShortcut& cut); void selectionChanged (); void contextMenuRequested(TQListViewItem *, const TQPoint &pos, int); @@ -197,7 +197,7 @@ private: static StandardBookList standardPhraseBooks (); void initGUI(); - /** initializes the KActions of the window */ + /** initializes the TDEActions of the window */ void initActions(); /** initializes the list of standard phrase books */ void initStandardPhraseBooks (); @@ -205,13 +205,13 @@ private: TQListViewItem *addBook (TQListViewItem *parent, TQListViewItem *after, PhraseBook *book); TQListViewItem *addBook (TQListViewItem *item, PhraseBook *book); - void setShortcut (const KShortcut &cut); + void setShortcut (const TDEShortcut &cut); void _warning (const KKeySequence &cut, TQString sAction, TQString sTitle); - bool isGlobalKeyPresent (const KShortcut& cut, bool warnUser); - bool isPhraseKeyPresent (const KShortcut& cut, bool warnUser); - bool isKeyPresent (const KShortcut& cut, bool warnUser); + bool isGlobalKeyPresent (const TDEShortcut& cut, bool warnUser); + bool isPhraseKeyPresent (const TDEShortcut& cut, bool warnUser); + bool isKeyPresent (const TDEShortcut& cut, bool warnUser); PhraseBook book; bool phrasebookChanged; @@ -219,19 +219,19 @@ private: PhraseTree *treeView; ButtonBoxWidget *buttonBox; - KAction* fileNewPhrase; - KAction* fileNewBook; - KAction* fileSave; - KAction* fileImport; - KToolBarPopupAction* toolbarImport; - KActionMenu* fileImportStandardBook; - KAction* fileExport; - KAction* filePrint; - KAction* fileClose; - KAction* editCut; - KAction* editCopy; - KAction* editPaste; - KAction* editDelete; + TDEAction* fileNewPhrase; + TDEAction* fileNewBook; + TDEAction* fileSave; + TDEAction* fileImport; + TDEToolBarPopupAction* toolbarImport; + TDEActionMenu* fileImportStandardBook; + TDEAction* fileExport; + TDEAction* filePrint; + TDEAction* fileClose; + TDEAction* editCut; + TDEAction* editCopy; + TDEAction* editPaste; + TDEAction* editDelete; }; #endif |