summaryrefslogtreecommitdiffstats
path: root/src/settings.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings.h')
-rw-r--r--src/settings.h98
1 files changed, 49 insertions, 49 deletions
diff --git a/src/settings.h b/src/settings.h
index ff8275b..c68bcab 100644
--- a/src/settings.h
+++ b/src/settings.h
@@ -24,7 +24,7 @@
#include <config.h>
#endif
-#include <qstringlist.h>
+#include <ntqstringlist.h>
#include <kcompletion.h>
@@ -38,10 +38,10 @@
class KConfig;
class KStandardDirs;
class KURL;
-class QString;
-class QRegExp;
-class QChar;
-class QFont;
+class TQString;
+class TQRegExp;
+class TQChar;
+class TQFont;
namespace KBibTeX
{
@@ -50,15 +50,15 @@ namespace KBibTeX
public:
struct SearchURL
{
- QString description;
- QString url;
+ TQString description;
+ TQString url;
bool includeAuthor;
};
struct UserDefinedInputFields
{
- QString name;
- QString label;
+ TQString name;
+ TQString label;
FieldLineEdit::InputType inputType;
};
@@ -67,15 +67,15 @@ namespace KBibTeX
void load( KConfig * config );
void save( KConfig * config );
- static QString fieldTypeToI18NString( const BibTeX::EntryField::FieldType fieldType );
- static QString entryTypeToI18NString( const BibTeX::Entry::EntryType entryType );
+ static TQString fieldTypeToI18NString( const BibTeX::EntryField::FieldType fieldType );
+ static TQString entryTypeToI18NString( const BibTeX::Entry::EntryType entryType );
- static KURL doiURL( const QString& doiText );
- static bool kpsewhich( const QString& filename );
- static KURL locateFile( const QString& filename, const QString& bibTeXFileName = QString::null, QWidget *window = NULL );
- KURL locateFile( const QString& filename, QWidget *window = NULL );
- static QString resolveLink( const QString& originalFilename, const QString& linkFilename );
- static bool openUrl( const KURL& url, QWidget *parent );
+ static KURL doiURL( const TQString& doiText );
+ static bool kpsewhich( const TQString& filename );
+ static KURL locateFile( const TQString& filename, const TQString& bibTeXFileName = TQString::null, TQWidget *window = NULL );
+ KURL locateFile( const TQString& filename, TQWidget *window = NULL );
+ static TQString resolveLink( const TQString& originalFilename, const TQString& linkFilename );
+ static bool openUrl( const KURL& url, TQWidget *parent );
#ifdef HAVE_YAZ
void z3950clearAll();
@@ -84,30 +84,30 @@ namespace KBibTeX
void z3950saveUser( KConfig *config );
typedef struct Z3950Server_
{
- QString charset, database, host, locale, name, syntax, user, password;
+ TQString charset, database, host, locale, name, syntax, user, password;
int port;
} Z3950Server;
- QMap<QString, Z3950Server> z3950_ServerList;
+ TQMap<TQString, Z3950Server> z3950_ServerList;
#endif // HAVE_YAZ
enum DragAction {COPYREFERENCE = 1, COPYBIBTEX = 2};
// FileIO section
- QString fileIO_Encoding;
- QString fileIO_ExportLanguage;
- QString fileIO_ExportBibliographyStyle;
- QChar fileIO_BibtexStringOpenDelimiter;
- QChar fileIO_BibtexStringCloseDelimiter;
+ TQString fileIO_Encoding;
+ TQString fileIO_ExportLanguage;
+ TQString fileIO_ExportBibliographyStyle;
+ TQChar fileIO_BibtexStringOpenDelimiter;
+ TQChar fileIO_BibtexStringCloseDelimiter;
BibTeX::FileExporterBibTeX::KeywordCasing fileIO_KeywordCasing;
BibTeX::FileExporterExternal::Exporter fileIO_ExporterHTML;
bool fileIO_EmbedFiles;
bool fileIO_EnclosingCurlyBrackets;
bool fileIO_useBibUtils;
- QString fileIO_bib2db5BasePath;
- QString fileIO_bib2db5ClassPath;
+ TQString fileIO_bib2db5BasePath;
+ TQString fileIO_bib2db5ClassPath;
int fileIO_NumberOfBackups;
- bool updateBib2Db5ClassPath( const QString& newBasePath, bool testOnly = false );
+ bool updateBib2Db5ClassPath( const TQString& newBasePath, bool testOnly = false );
// Editing section
bool editing_SearchBarClearField;
@@ -115,28 +115,28 @@ namespace KBibTeX
int editing_MainListDoubleClickAction;
int editing_MainListSortingColumn;
int editing_MainListSortingOrder;
- QStringList editing_FilterHistory;
+ TQStringList editing_FilterHistory;
bool editing_ShowMacros;
bool editing_ShowComments;
- QValueList<int> editing_MainListColumnsWidth;
- QValueList<int> editing_MainListColumnsIndex;
- QValueList<int> editing_HorSplitterSizes;
- QValueList<int> editing_VertSplitterSizes;
- QFont editing_SpecialFont;
+ TQValueList<int> editing_MainListColumnsWidth;
+ TQValueList<int> editing_MainListColumnsIndex;
+ TQValueList<int> editing_HorSplitterSizes;
+ TQValueList<int> editing_VertSplitterSizes;
+ TQFont editing_SpecialFont;
bool editing_UseSpecialFont;
bool editing_FirstNameFirst;
- QStringList editing_DocumentSearchPaths;
+ TQStringList editing_DocumentSearchPaths;
DragAction editing_DragAction;
int editing_findDuplicatesSensitivity;
// SearchURLs section
- QValueList<SearchURL*> searchURLs;
+ TQValueList<SearchURL*> searchURLs;
// UserDefinedInputFields section
- QValueList<UserDefinedInputFields*> userDefinedInputFields;
+ TQValueList<UserDefinedInputFields*> userDefinedInputFields;
// External section
- QString external_XSLTStylesheetHTML;
+ TQString external_XSLTStylesheetHTML;
bool external_bibconvAvailable;
bool external_bibtex2htmlAvailable;
bool external_bib2xhtmlAvailable;
@@ -146,10 +146,10 @@ namespace KBibTeX
bool external_ris2xmlAvailable;
// Id Suggestions
- QStringList idSuggestions_formatStrList;
+ TQStringList idSuggestions_formatStrList;
int idSuggestions_default;
bool idSuggestions_forceDefault;
- QStringList idSuggestions_smallWords;
+ TQStringList idSuggestions_smallWords;
// Auto-completion for user fields (non-persistant)
void addToCompletion( BibTeX::File *file );
@@ -159,11 +159,11 @@ namespace KBibTeX
KCompletion* completionMacro;
// Keyword list
- QStringList keyword_GlobalList;
+ TQStringList keyword_GlobalList;
// Online Database Search;
int webQuery_LastEngine;
- QString webQuery_LastSearchTerm;
+ TQString webQuery_LastSearchTerm;
int webQuery_LastNumberOfResults;
bool webQuery_ImportAll;
@@ -172,30 +172,30 @@ namespace KBibTeX
void restoreDefaultSearchURLs();
- QString detectLyXInPipe();
+ TQString detectLyXInPipe();
// web query history/default values
- QString getWebQueryDefault( const QString &key );
- void setWebQueryDefault( const QString &key, const QString& value );
+ TQString getWebQueryDefault( const TQString &key );
+ void setWebQueryDefault( const TQString &key, const TQString& value );
// characters that do match this regexp are
// not allowed in entry ids or macro keys
- static const QRegExp noIdChars;
+ static const TQRegExp noIdChars;
/** Create backup of file as specified in fileIO_NumberOfBackups */
- bool createBackup( const KURL &url, QWidget *window = NULL );
+ bool createBackup( const KURL &url, TQWidget *window = NULL );
private:
static Settings* staticSettings;
KCompletion **m_completion;
- static QStringList m_lyxRcFileNames;
+ static TQStringList m_lyxRcFileNames;
- QMap<QString, QString> m_webQueryDefaults;
+ TQMap<TQString, TQString> m_webQueryDefaults;
Settings();
~Settings();
- bool checkExternalToolAvailable( const QString &binary );
+ bool checkExternalToolAvailable( const TQString &binary );
void checkExternalToolsAvailable();
int completionFieldTypeToIndex( BibTeX::EntryField::FieldType fieldType );