diff options
Diffstat (limited to 'kfilereplace/configurationclasses.h')
-rw-r--r-- | kfilereplace/configurationclasses.h | 116 |
1 files changed, 58 insertions, 58 deletions
diff --git a/kfilereplace/configurationclasses.h b/kfilereplace/configurationclasses.h index 82bff991..0d36261b 100644 --- a/kfilereplace/configurationclasses.h +++ b/kfilereplace/configurationclasses.h @@ -18,44 +18,44 @@ #define CONFIGURATIONCLASSES_H // QT -#include <qstring.h> -#include <qstringlist.h> -#include <qdatetime.h> -#include <qmap.h> -#include <qregexp.h> +#include <tqstring.h> +#include <tqstringlist.h> +#include <tqdatetime.h> +#include <tqmap.h> +#include <tqregexp.h> -typedef QMap<QString,QString> KeyValueMap; +typedef TQMap<TQString,TQString> KeyValueMap; // entry strings in the kfilereplacerc file -const QString rcDirectoriesList = "Directories list"; -const QString rcFiltersList = "Filters list"; -const QString rcRecentFiles = "Recent files"; -const QString rcAllStringsMustBeFound = "All strings must be found"; -const QString rcEncoding = "Encoding"; -const QString rcCaseSensitive = "Case sensitive"; -const QString rcConfirmStrings = "Confirm strings"; -const QString rcConfirmFiles = "Confirm files"; -const QString rcConfirmDirs = "Confirm directories"; -const QString rcFollowSymLinks = "Follow symbolic links"; -const QString rcHaltOnFirstOccur = "Halt on first occurrence"; -const QString rcIgnoreHidden = "Ignore hidden files"; -const QString rcRecursive = "Search/replace in sub folders"; -const QString rcVariables = "Enable variables"; -const QString rcRegularExpressions = "Enable regular expressions"; -const QString rcMinFileSize = "Minimum file size"; -const QString rcMaxFileSize = "Maximum file size"; -const QString rcValidAccessDate = "Access mode"; -const QString rcMinDate = "Minimum access date"; -const QString rcMaxDate = "Maximum access date"; -const QString rcOwnerUser = "Owner user filters"; -const QString rcOwnerGroup = "Owner group filters"; -const QString rcSearchMode = "Search only mode"; -const QString rcBackupExtension = "Backup file extension"; -const QString rcIgnoreFiles = "Ignore files if there is no match"; -const QString rcNotifyOnErrors = "NotifyOnErrors"; -const QString rcAskConfirmReplace = "Ask confirmation on replace"; -const QString rcDontAskAgain = "Dont ask again"; +const TQString rcDirectoriesList = "Directories list"; +const TQString rcFiltersList = "Filters list"; +const TQString rcRecentFiles = "Recent files"; +const TQString rcAllStringsMustBeFound = "All strings must be found"; +const TQString rcEncoding = "Encoding"; +const TQString rcCaseSensitive = "Case sensitive"; +const TQString rcConfirmStrings = "Confirm strings"; +const TQString rcConfirmFiles = "Confirm files"; +const TQString rcConfirmDirs = "Confirm directories"; +const TQString rcFollowSymLinks = "Follow symbolic links"; +const TQString rcHaltOnFirstOccur = "Halt on first occurrence"; +const TQString rcIgnoreHidden = "Ignore hidden files"; +const TQString rcRecursive = "Search/replace in sub folders"; +const TQString rcVariables = "Enable variables"; +const TQString rcRegularExpressions = "Enable regular expressions"; +const TQString rcMinFileSize = "Minimum file size"; +const TQString rcMaxFileSize = "Maximum file size"; +const TQString rcValidAccessDate = "Access mode"; +const TQString rcMinDate = "Minimum access date"; +const TQString rcMaxDate = "Maximum access date"; +const TQString rcOwnerUser = "Owner user filters"; +const TQString rcOwnerGroup = "Owner group filters"; +const TQString rcSearchMode = "Search only mode"; +const TQString rcBackupExtension = "Backup file extension"; +const TQString rcIgnoreFiles = "Ignore files if there is no match"; +const TQString rcNotifyOnErrors = "NotifyOnErrors"; +const TQString rcAskConfirmReplace = "Ask confirmation on replace"; +const TQString rcDontAskAgain = "Dont ask again"; // Default configuration options -const QString EncodingOption = "utf8"; +const TQString EncodingOption = "utf8"; const bool RecursiveOption = true; const bool CaseSensitiveOption = false; const bool FollowSymbolicLinksOption = false; @@ -64,11 +64,11 @@ const bool VariablesOption = false; const bool StopWhenFirstOccurenceOption = false; const bool IgnoreHiddenOption = false; const int FileSizeOption = -1; -const QString AccessDateOption="unknown"; -const QString ValidAccessDateOption="unknown"; -const QString OwnerOption="false,Name,Equals To"; +const TQString AccessDateOption="unknown"; +const TQString ValidAccessDateOption="unknown"; +const TQString OwnerOption="false,Name,Equals To"; const bool SearchModeOption=true; -const QString BackupExtensionOption="false,~"; +const TQString BackupExtensionOption="false,~"; const bool IgnoreFilesOption = true; const bool NotifyOnErrorsOption = false; const bool AskConfirmReplaceOption = false; @@ -82,18 +82,18 @@ class RCOptions bool m_askConfirmReplace, m_dontAskAgain; - QStringList m_directories; - QStringList m_filters; - QString m_currentDirectory; + TQStringList m_directories; + TQStringList m_filters; + TQString m_currentDirectory; int m_minSize, m_maxSize; - QString m_dateAccess, + TQString m_dateAccess, m_minDate, m_maxDate; - QString m_encoding; + TQString m_encoding; bool m_caseSensitive, m_recursive, @@ -111,23 +111,23 @@ class RCOptions bool m_ownerUserIsChecked, m_ownerGroupIsChecked; - QString m_ownerUserType, + TQString m_ownerUserType, m_ownerGroupType, m_ownerUserValue, m_ownerGroupValue, m_ownerUserBool, m_ownerGroupBool; - QString m_backupExtension; + TQString m_backupExtension; bool m_ignoreFiles; KeyValueMap m_mapStringsView; - QString m_quickSearchString, + TQString m_quickSearchString, m_quickReplaceString; - QStringList m_recentStringFileList; + TQStringList m_recentStringFileList; bool m_notifyOnErrors; @@ -139,27 +139,27 @@ class RCOptions class ResultViewEntry { private: - QString m_key; - QString m_data; - QRegExp m_rxKey; + TQString m_key; + TQString m_data; + TQRegExp m_rxKey; bool m_regexp; bool m_caseSensitive; int m_pos; int m_matchedStringsOccurrence; public: - ResultViewEntry(QString nkey, QString ndata, bool regexp, bool caseSensitive); - int lineNumber(const QString& line) const ; - int columnNumber(const QString& line) const ; + ResultViewEntry(TQString nkey, TQString ndata, bool regexp, bool caseSensitive); + int lineNumber(const TQString& line) const ; + int columnNumber(const TQString& line) const ; void incOccurrences(); int occurrences() const ; bool regexp()const ; - int pos(const QString& line) ; + int pos(const TQString& line) ; void incPos(); - QString capturedText(const QString& line) ; - QString message(const QString& capturedText, int x, int y) const; + TQString capturedText(const TQString& line) ; + TQString message(const TQString& capturedText, int x, int y) const; int keyLength() const; int dataLength() const; - void updateLine(QString& line); + void updateLine(TQString& line); }; #endif |