summaryrefslogtreecommitdiffstats
path: root/kbabel/catalogmanager/catalogmanagerview.h
diff options
context:
space:
mode:
Diffstat (limited to 'kbabel/catalogmanager/catalogmanagerview.h')
-rw-r--r--kbabel/catalogmanager/catalogmanagerview.h122
1 files changed, 61 insertions, 61 deletions
diff --git a/kbabel/catalogmanager/catalogmanagerview.h b/kbabel/catalogmanager/catalogmanagerview.h
index e4421973..9c93d195 100644
--- a/kbabel/catalogmanager/catalogmanagerview.h
+++ b/kbabel/catalogmanager/catalogmanagerview.h
@@ -35,17 +35,17 @@
#ifndef CATALOGMANAGERVIEW_H
#define CATALOGMANAGERVIEW_H
-#include <qdict.h>
-#include <qlistview.h>
-#include <qdatetime.h>
-#include <qtimer.h>
-#include <qfileinfo.h>
-#include <qguardedptr.h>
+#include <tqdict.h>
+#include <tqlistview.h>
+#include <tqdatetime.h>
+#include <tqtimer.h>
+#include <tqfileinfo.h>
+#include <tqguardedptr.h>
#include <kdialogbase.h>
#include <kdirwatch.h>
#include <kprocess.h>
-#include <qptrlist.h>
+#include <tqptrlist.h>
#include "kbproject.h"
#include "projectsettings.h"
@@ -78,7 +78,7 @@ class CatalogManagerView : public QListView
{
Q_OBJECT
public:
- CatalogManagerView(KBabel::Project::Ptr project, QWidget* parent=0, const char* name=0);
+ CatalogManagerView(KBabel::Project::Ptr project, TQWidget* parent=0, const char* name=0);
virtual ~CatalogManagerView();
KBabel::CatManSettings settings() const;
@@ -89,9 +89,9 @@ public:
void pause(bool);
/** if file fileWithPath exists in the treeview, this is updated */
- void updateFile(QString fileWithPath, bool force = false);
+ void updateFile(TQString fileWithPath, bool force = false);
- void updateAfterSave(QString fileWithPath, KBabel::PoInfo &info);
+ void updateAfterSave(TQString fileWithPath, KBabel::PoInfo &info);
bool isActive() const {return _active;}
bool isStopped() const {return _stop;}
@@ -99,10 +99,10 @@ public:
void restoreView(KConfig *config);
void saveView(KConfig *config) const;
- void setRMBMenuFile( QPopupMenu *m);
- void setRMBMenuDir( QPopupMenu *m);
- void setDirCommandsMenu( QPopupMenu *m);
- void setFileCommandsMenu( QPopupMenu *m);
+ void setRMBMenuFile( TQPopupMenu *m);
+ void setRMBMenuDir( TQPopupMenu *m);
+ void setDirCommandsMenu( TQPopupMenu *m);
+ void setFileCommandsMenu( TQPopupMenu *m);
CVSHandler * cvsHandler();
SVNHandler * svnHandler();
@@ -184,7 +184,7 @@ public slots:
void svnInfo();
void svnInfoMarked();
- QString find(KBabel::FindOptions &options, QStringList &rest);
+ TQString find(KBabel::FindOptions &options, TQStringList &rest);
void showLog();
@@ -193,7 +193,7 @@ public slots:
/**
* Stop searching, do not try to proceed to the next file
* @ref @find will return clear list of rest to be searched
- * and @ref QString::null, if search string was not is the last searched file
+ * and @ref TQString::null, if search string was not is the last searched file
*/
void stopSearch();
@@ -201,7 +201,7 @@ public slots:
* Information for this file has been read. If the file is in
* @ref @_readInfoFileList, it will update progress bar by emitting @ref @progress
*/
- void fileInfoRead( QString file );
+ void fileInfoRead( TQString file );
void gotoNextUntranslated();
void gotoPreviousUntranslated();
@@ -218,10 +218,10 @@ public slots:
void gotoNextMarked();
void gotoPreviousMarked();
- void validateUsingTool( const KDataToolInfo &, const QString& );
- void validateMarkedUsingTool( const KDataToolInfo &, const QString& );
+ void validateUsingTool( const KDataToolInfo &, const TQString& );
+ void validateMarkedUsingTool( const KDataToolInfo &, const TQString& );
- void showError( const QString package, const int num);
+ void showError( const TQString package, const int num);
void updateCurrent();
@@ -230,33 +230,33 @@ public slots:
* after 'cvs commit' or 'svn commit' the file contents have not changed
* but the CVS/SVN file status could have changed.
*/
- void updateFiles( const QStringList& files );
+ void updateFiles( const TQStringList& files );
/**
* Returns the list of all currently selected files. If current selection is dir,
* it returns list of all its children.
*/
- QStringList current();
+ TQStringList current();
/**
* Returns the list of all currently marked files.
*/
- QStringList marked();
+ TQStringList marked();
signals:
- void openFile(QString filename,QString package);
- void openFileInNewWindow(QString filename,QString package);
- void openTemplate(QString openFilename,QString saveFileName,QString package);
- void openTemplateInNewWindow(QString openFilename,QString saveFileName,QString package);
- void gotoFileEntry(QString filename,QString package,int msgid);
- void prepareProgressBar(QString msg,int max);
+ void openFile(TQString filename,TQString package);
+ void openFileInNewWindow(TQString filename,TQString package);
+ void openTemplate(TQString openFilename,TQString saveFileName,TQString package);
+ void openTemplateInNewWindow(TQString openFilename,TQString saveFileName,TQString package);
+ void gotoFileEntry(TQString filename,TQString package,int msgid);
+ void prepareProgressBar(TQString msg,int max);
void progress(int);
void clearProgressBar();
void prepareFindProgressBar(int max);
void signalBuildTree(bool done);
void signalSearchedFile(int count);
- void newValidationFile(QString);
- void newValidationTool(QString);
+ void newValidationFile(TQString);
+ void newValidationTool(TQString);
void setValidationProgressBar(int);
void advanceValidationFileProgressBar(int);
void setMaxValidationProgressBar(int);
@@ -284,7 +284,7 @@ protected:
* @see CatalogManagerView::buildDir
* @see CatalogManagerView::updateDir
*/
- bool buildDir(QString relDir,bool fast=true);
+ bool buildDir(TQString relDir,bool fast=true);
/**
* This function is traversing the real directory on the
@@ -297,7 +297,7 @@ protected:
* @see CatalogManagerView::buildDir
* @see CatalogManagerView::updateDir
*/
- bool buildDir(const QString& baseDir,const QString& relDir, const QString extension,bool fast=true);
+ bool buildDir(const TQString& baseDir,const TQString& relDir, const TQString extension,bool fast=true);
/**
* updates dir relDir and if any new subdir is added
@@ -306,27 +306,27 @@ protected:
* This function doesn't enters subdirs except when a new subdir is added.
* @see CatalogManagerView::buildDir
*/
- void updateDir(QString relDir);
+ void updateDir(TQString relDir);
/**
* stops the update timer and the dirwatch
* @see KDirWatch::stop
- * @see QTimer::stop
+ * @see TQTimer::stop
*/
- virtual void hideEvent(QHideEvent*);
+ virtual void hideEvent(TQHideEvent*);
/**
* restarts the update timer and the dirwatch
* @see KDirWatch::start
- * @see QTimer::start
+ * @see TQTimer::start
*/
- virtual void showEvent(QShowEvent*);
+ virtual void showEvent(TQShowEvent*);
/** used for dragging */
- virtual void contentsMousePressEvent(QMouseEvent* e);
+ virtual void contentsMousePressEvent(TQMouseEvent* e);
/** used for dragging */
- virtual void contentsMouseMoveEvent(QMouseEvent* e);
+ virtual void contentsMouseMoveEvent(TQMouseEvent* e);
- void showStatistics( CatManListItem *i, QStringList &packages);
+ void showStatistics( CatManListItem *i, TQStringList &packages);
protected slots:
/** rebuilds the tree*/
@@ -338,13 +338,13 @@ protected slots:
void checkUpdate();
/** this is called from KDirWatch when a directory has changed */
- void directoryChanged(const QString& dir);
+ void directoryChanged(const TQString& dir);
/** this is called from KDirWatch when a directory has been deleted */
- void directoryDeleted(const QString& dir);
+ void directoryDeleted(const TQString& dir);
- void showContentsMenu(QListViewItem *, const QPoint &, int col);
+ void showContentsMenu(TQListViewItem *, const TQPoint &, int col);
/** does the default action on the currently selected item*/
- void activateItem(QListViewItem *);
+ void activateItem(TQListViewItem *);
/** emits the state of the selected item using selectedChanged*/
void checkSelected();
/** calls @ref activateItem with the selected item as argument*/
@@ -366,7 +366,7 @@ protected slots:
private slots:
void showOutput(KProcess *proc, char *buffer, int buflen);
void processEnded(KProcess *proc);
- void columnClicked(QListViewItem * item, const QPoint & pnt, int c);
+ void columnClicked(TQListViewItem * item, const TQPoint & pnt, int c);
void slotToggleCVSOrSVNColumn( bool );
@@ -396,33 +396,33 @@ private:
* deletes item with package name (relative directory) relDir
* and makes sure, that all subitems are removed from the lists
*/
- void deleteDirItem(QString relDir);
+ void deleteDirItem(TQString relDir);
- bool hasMatchingWords( QStringList &itemWords, QStringList &searchWords);
+ bool hasMatchingWords( TQStringList &itemWords, TQStringList &searchWords);
CatManListItem *itemBelow( CatManListItem *item );
CatManListItem *itemAbove( CatManListItem *item );
- void validate_internal( const QStringList&, const KDataToolInfo &, const QString& );
+ void validate_internal( const TQStringList&, const KDataToolInfo &, const TQString& );
void doCVSCommand( CVS::Command cmd, bool marked = false, bool templates = false );
void doSVNCommand( SVN::Command cmd, bool marked = false, bool templates = false );
private:
- QDict<CatManListItem> _dirList;
- QDict<CatManListItem> _fileList;
+ TQDict<CatManListItem> _dirList;
+ TQDict<CatManListItem> _fileList;
KDirWatch *_dirWatch;
- QTimer *_updateTimer;
+ TQTimer *_updateTimer;
// list of files for which was calculated the progress bar for reading file info
- QStringList _readInfoFileList;
+ TQStringList _readInfoFileList;
// current count of already read files in @ref @_readInfoFileList.
int _readInfoCount;
KBabel::CatManSettings _settings;
- QStringList _markerList;
+ TQStringList _markerList;
bool _active;
// stopping, application quit
@@ -431,17 +431,17 @@ private:
bool _stopSearch;
int _updateNesting;
- QPtrList<KProcess> _pendingProcesses;
+ TQPtrList<KProcess> _pendingProcesses;
- QTextEdit* _logView;
+ TQTextEdit* _logView;
KDialogBase* _logWindow;
- QPopupMenu* _fileContentsMenu;
- QPopupMenu* _dirContentsMenu;
- QPopupMenu* _dirCommandsMenu;
- QPopupMenu* _fileCommandsMenu;
+ TQPopupMenu* _fileContentsMenu;
+ TQPopupMenu* _dirContentsMenu;
+ TQPopupMenu* _dirCommandsMenu;
+ TQPopupMenu* _fileCommandsMenu;
/** used for starting a drag */
- QPoint _pressPos;
+ TQPoint _pressPos;
KBabelDictBox* _dictBox;