summaryrefslogtreecommitdiffstats
path: root/kbabel/kbabel/kbabelview.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
commit4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch)
treeb0a7cd1c184f0003c0292eb416ed27f674f9cc43 /kbabel/kbabel/kbabelview.h
parent1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff)
downloadtdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz
tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbabel/kbabel/kbabelview.h')
-rw-r--r--kbabel/kbabel/kbabelview.h118
1 files changed, 59 insertions, 59 deletions
diff --git a/kbabel/kbabel/kbabelview.h b/kbabel/kbabel/kbabelview.h
index a52ed4dc..fb86cd6b 100644
--- a/kbabel/kbabel/kbabelview.h
+++ b/kbabel/kbabel/kbabelview.h
@@ -65,8 +65,8 @@ struct ModuleInfo;
#include <kdockwidget.h>
#include <kurl.h>
#include <kconfig.h>
-#include <qwidget.h>
-#include <qstrlist.h>
+#include <tqwidget.h>
+#include <tqstrlist.h>
#include <resources.h>
#include <catalogview.h>
@@ -90,7 +90,7 @@ class TagListView;
* @author Matthias Kiefer <matthias.kiefer@gmx.de>
* @version 0.1
*/
-class KBabelView : public QWidget, public KBabel::CatalogView
+class KBabelView : public TQWidget, public KBabel::CatalogView
{
Q_OBJECT
public:
@@ -109,16 +109,16 @@ public:
* @return the view, that has opened file url or 0 if this
* file is not opened
*/
- static KBabelView *viewForURL(const KURL& url, const QString project);
+ static KBabelView *viewForURL(const KURL& url, const TQString project);
/**
* @return the view, that has no opened file url or 0 if there
* is no such view
*/
- static KBabelView *emptyView(const QString project);
+ static KBabelView *emptyView(const TQString project);
KURL currentURL() const;
- QString project() const { return _project->filename(); }
+ TQString project() const { return _project->filename(); }
void useProject (KBabel::Project::Ptr project);
bool isLastView() const;
@@ -178,7 +178,7 @@ public:
KBCatalog* catalog() const{return _catalog;}
- void processUriDrop(KURL::List& uriList, const QPoint & pos);
+ void processUriDrop(KURL::List& uriList, const TQPoint & pos);
/**
* checks the status of the displayed entry: last, first, fuzzy,...
@@ -186,12 +186,12 @@ public:
*/
void emitEntryState();
- void setRMBEditMenu(QPopupMenu*);
- void setRMBSearchMenu(QPopupMenu*);
- void setTagsMenu(QPopupMenu*);
- void setArgsMenu(QPopupMenu*);
+ void setRMBEditMenu(TQPopupMenu*);
+ void setRMBSearchMenu(TQPopupMenu*);
+ void setTagsMenu(TQPopupMenu*);
+ void setArgsMenu(TQPopupMenu*);
- QPtrList<ModuleInfo> dictionaries();
+ TQPtrList<ModuleInfo> dictionaries();
KBabelDictBox* searchView() { return dictBox; }
bool autoDiffEnabled() const {return _diffEnabled;}
@@ -202,7 +202,7 @@ public slots:
/** opens a filedialog and asks for an url */
void open();
- void open(const KURL& url, const QString & package=QString::null, bool checkModified=true, bool newView=false);
+ void open(const KURL& url, const TQString & package=TQString::null, bool checkModified=true, bool newView=false);
void setFilePackage();
void revertToSaved();
@@ -217,8 +217,8 @@ public slots:
bool findNext();
bool findPrev();
void find();
- void findInFile(QCString fileSource, KBabel::FindOptions options);
- void replaceInFile(QCString fileSource, KBabel::ReplaceOptions options);
+ void findInFile(TQCString fileSource, KBabel::FindOptions options);
+ void replaceInFile(TQCString fileSource, KBabel::ReplaceOptions options);
void replace();
void selectAll();
void deselectAll();
@@ -259,7 +259,7 @@ public slots:
void insertNextTag();
void insertNextTagMsgid();
void insertNextArg();
- void insertTagFromTool( const QString& tag );
+ void insertTagFromTool( const TQString& tag );
void showTagsMenu();
void showArgsMenu();
void skipToNextTag();
@@ -282,23 +282,23 @@ public slots:
void stopSearch();
void startSearch();
void startSelectionSearch();
- void startSearch(const QString id);
- void startSelectionSearch(const QString id);
+ void startSearch(const TQString id);
+ void startSelectionSearch(const TQString id);
- void configureDictionary(const QString id);
- void editDictionary(const QString id);
- void aboutDictionary(const QString id);
+ void configureDictionary(const TQString id);
+ void editDictionary(const TQString id);
+ void aboutDictionary(const TQString id);
/**
* this was originally protected, but we need this to expose for
* KBabelMW forwarding
*/
- virtual void wheelEvent(QWheelEvent*);
+ virtual void wheelEvent(TQWheelEvent*);
protected:
- virtual void dragEnterEvent(QDragEnterEvent *event);
- virtual void dropEvent(QDropEvent *event);
- virtual bool eventFilter(QObject*, QEvent* event);
+ virtual void dragEnterEvent(TQDragEnterEvent *event);
+ virtual void dropEvent(TQDropEvent *event);
+ virtual bool eventFilter(TQObject*, TQEvent* event);
signals:
/** emited when a fuzzy catalogentry is shown */
@@ -346,15 +346,15 @@ signals:
/**
* Use this signal to change the content of the statusbar
*/
- void signalChangeStatusbar(const QString& text);
+ void signalChangeStatusbar(const TQString& text);
/**
* Use this signal to change the content of the caption
*/
- void signalChangeCaption(const QString& text);
+ void signalChangeCaption(const TQString& text);
void signalNewFileOpened(KURL url);
- void signalResetProgressBar(QString,int);
+ void signalResetProgressBar(TQString,int);
void signalProgress(int);
void signalClearProgressBar();
@@ -365,7 +365,7 @@ signals:
void signalForwardHistory(bool have);
void signalBackHistory(bool have);
- void ledColorChanged(const QColor& color);
+ void ledColorChanged(const TQColor& color);
void signalDictionariesChanged();
@@ -441,12 +441,12 @@ private:
* Inserts a text into the msgstr (into the current form) using undoable commands.
* if @param clearFirst is set to true, it will clear the contents of msgstr before inserting
*/
- void modifyMsgstrText(const uint offset, const QString& text, bool clearFirst=false);
+ void modifyMsgstrText(const uint offset, const TQString& text, bool clearFirst=false);
protected slots:
- bool validateUsingTool( const KDataToolInfo & info, const QString & command );
- void modifyUsingTool( const KDataToolInfo & info, const QString & command );
- void modifyCatalogUsingTool( const KDataToolInfo & info, const QString & command );
+ bool validateUsingTool( const KDataToolInfo & info, const TQString & command );
+ void modifyUsingTool( const KDataToolInfo & info, const TQString & command );
+ void modifyCatalogUsingTool( const KDataToolInfo & info, const TQString & command );
private slots:
void msgstrPluralFormChanged (uint index);
@@ -455,7 +455,7 @@ private slots:
/** connected to the catalog. it is called when a new file is opened*/
void newFileOpened(bool readOnly);
- void showError(const QString& message);
+ void showError(const TQString& message);
void toggleFuzzyLed(bool on);
void toggleUntransLed(bool on);
@@ -493,7 +493,7 @@ private slots:
void informDictionary();
void setNewLanguage();
- void forwardProgressStart(const QString& msg);
+ void forwardProgressStart(const TQString& msg);
void forwardSearchStart();
void forwardSearchStop();
@@ -520,14 +520,14 @@ private slots:
void insertArg(int n);
void updateArgs();
- void insertChar(QChar ch);
+ void insertChar(TQChar ch);
void showTryLaterMessageBox();
void dummy(KSpell*) {}
private:
- static QPtrList<KBabelView> *viewList;
+ static TQPtrList<KBabelView> *viewList;
HidingMsgEdit* msgstrEdit;
HidingMsgEdit* msgidLabel;
@@ -537,7 +537,7 @@ private:
FindDialog* _replaceDialog;
ReplaceDialog* _replaceAskDialog;
- QPopupMenu* _dropMenu;
+ TQPopupMenu* _dropMenu;
KLed* _fuzzyLed;
KLed* _untransLed;
@@ -551,8 +551,8 @@ private:
bool _autoSearchTempDisabled;
- QValueList<uint> _backHistory;
- QValueList<uint> _forwardHistory;
+ TQValueList<uint> _backHistory;
+ TQValueList<uint> _forwardHistory;
// flag to not beep, when switching to the next entry, because
// go -> next or prev entry was used.
@@ -566,7 +566,7 @@ private:
/**
* the string that was marked during the last search
*/
- QString _lastFoundString;
+ TQString _lastFoundString;
/*
* flag, if internal find functions should break at end or ask for
@@ -590,13 +590,13 @@ private:
int _replaceExtraOffset;
/** appId for a source of the next files to be searched */
- QCString _fileSource;
+ TQCString _fileSource;
- QStringList _tags;
- QPopupMenu *_tagsMenu;
+ TQStringList _tags;
+ TQPopupMenu *_tagsMenu;
- QStringList _args;
- QPopupMenu *_argsMenu;
+ TQStringList _args;
+ TQPopupMenu *_argsMenu;
bool _diffEnabled;
bool _loadingDiffFile;
@@ -606,7 +606,7 @@ private:
* flag, set if editing KDE documentation PO-file
*/
bool _editingDocumentation;
- QPtrList<KDataTool> _autocheckTools;
+ TQPtrList<KDataTool> _autocheckTools;
//spellcheck things
private:
@@ -624,13 +624,13 @@ private:
{
KSpell *kspell;
KSpellConfig* config;
- QStringList wordList;
+ TQStringList wordList;
bool active;
int misspelled;
int replaced;
int posCorrection;
uint lastIndex;
- QPtrList<Position> posDict;
+ TQPtrList<Position> posDict;
SpellWhat what2Check;
// the last word, that was misspelled
@@ -639,11 +639,11 @@ private:
// needed if words with '-' are treated as seperate words
int inWordCorrection;
- QStringList origWords;
- QStringList newWords;
+ TQStringList origWords;
+ TQStringList newWords;
- QStringList ignoreList;
- QStringList newIgnoreList;
+ TQStringList ignoreList;
+ TQStringList newIgnoreList;
} spell;
struct {
@@ -665,23 +665,23 @@ private:
* @returns false, if the there is a synchronization error,
* means the word has not been found in the editor.
*/
- bool markMisspelled(const QString &orig, unsigned int pos);
+ bool markMisspelled(const TQString &orig, unsigned int pos);
private slots:
void spellcheck();
void cancelSpellcheck();
void spellStart(KSpell*);
- void spellMisspelled(const QString &orig, const QStringList &sug, unsigned int pos);
- void spellCorrected(const QString &orig, const QString &newWord, unsigned int pos);
+ void spellMisspelled(const TQString &orig, const TQStringList &sug, unsigned int pos);
+ void spellCorrected(const TQString &orig, const TQString &newWord, unsigned int pos);
void spellResult(bool);
void spellCleanDone();
- void spellAddIgnore(const QString &);
+ void spellAddIgnore(const TQString &);
// initialize spellchecking struct
void cleanUpSpellStruct();
void slotAutoSaveTimeout( );
private:
- void addSpellcheckWords(uint pos, QString text, uint index, uint form);
+ void addSpellcheckWords(uint pos, TQString text, uint index, uint form);
private:
// configuration file
@@ -692,7 +692,7 @@ private:
KBabel::RegExpExtractor* _tagExtractor;
KBabel::RegExpExtractor* _argExtractor;
- QTimer * autoSaveTimer;
+ TQTimer * autoSaveTimer;
int _autoSaveDelay;
int _currentTag;