diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /parts/outputviews/makeitem.h | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/outputviews/makeitem.h')
-rw-r--r-- | parts/outputviews/makeitem.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/parts/outputviews/makeitem.h b/parts/outputviews/makeitem.h index e95dd4df..94acc3e2 100644 --- a/parts/outputviews/makeitem.h +++ b/parts/outputviews/makeitem.h @@ -12,7 +12,7 @@ #ifndef MakeItem_h #define MakeItem_h -#include <qstring.h> +#include <tqstring.h> enum EOutputLevel { @@ -27,7 +27,7 @@ class MakeItem public: enum Type { Normal, Error, Warning, Diagnostic }; MakeItem(); - MakeItem( const QString& text ); + MakeItem( const TQString& text ); virtual ~MakeItem(); enum DisplayModes @@ -37,23 +37,23 @@ public: Append = 2 // item's text can be appended (append has been overloaded) }; virtual int displayMode() const { return ImmDisplay; } - virtual bool append( const QString& ) { return false; } + virtual bool append( const TQString& ) { return false; } virtual Type type() { return Diagnostic; } virtual bool visible( EOutputLevel level ) { return level > eVeryShort; } - virtual QString text( EOutputLevel ); - virtual QString formattedText( EOutputLevel, bool bright_bg ); - QString icon(); - QString color( bool bright_bg ); + virtual TQString text( EOutputLevel ); + virtual TQString formattedText( EOutputLevel, bool bright_bg ); + TQString icon(); + TQString color( bool bright_bg ); - static QString br(); + static TQString br(); - QString m_text; + TQString m_text; }; class CommandItem : public MakeItem { public: - CommandItem(const QString command) + CommandItem(const TQString command) : MakeItem( command ) {} @@ -68,7 +68,7 @@ public: Type type() { return m_normalExit && m_exitStatus == 0 ? Diagnostic : Error; } virtual bool visible( EOutputLevel ) { return true; } - QString text( EOutputLevel level ); + TQString text( EOutputLevel level ); private: bool m_normalExit; @@ -78,7 +78,7 @@ private: class DirectoryItem : public MakeItem { public: - DirectoryItem( const QString& dir, const QString& text ) + DirectoryItem( const TQString& dir, const TQString& text ) : MakeItem( text ) , directory( dir ) {} @@ -88,7 +88,7 @@ public: static void setShowDirectoryMessages( bool show ) { m_showDirectoryMessages = show; } static bool getShowDirectoryMessages() { return m_showDirectoryMessages; } - QString directory; + TQString directory; protected: static bool m_showDirectoryMessages; @@ -97,7 +97,7 @@ protected: class EnteringDirectoryItem : public DirectoryItem { public: - EnteringDirectoryItem( const QString& dir, const QString& text ) + EnteringDirectoryItem( const TQString& dir, const TQString& text ) : DirectoryItem( dir, text ) {} bool visible( EOutputLevel ) @@ -105,13 +105,13 @@ public: return m_showDirectoryMessages; } - virtual QString text( EOutputLevel ); + virtual TQString text( EOutputLevel ); }; class ExitingDirectoryItem : public DirectoryItem { public: - ExitingDirectoryItem( const QString& dir, const QString& text ) + ExitingDirectoryItem( const TQString& dir, const TQString& text ) : DirectoryItem( dir, text ) {} bool visible( EOutputLevel level ) @@ -119,7 +119,7 @@ public: return m_showDirectoryMessages && level > eVeryShort; } - virtual QString text( EOutputLevel ); + virtual TQString text( EOutputLevel ); }; namespace KTextEditor { class Cursor; class Document; } @@ -127,26 +127,26 @@ namespace KTextEditor { class Cursor; class Document; } class ErrorItem : public MakeItem { public: - ErrorItem( const QString& fn, int ln, const QString& tx, const QString& line, bool isWarning, bool isInstatiationInfo, const QString& compiler ); + ErrorItem( const TQString& fn, int ln, const TQString& tx, const TQString& line, bool isWarning, bool isInstatiationInfo, const TQString& compiler ); virtual ~ErrorItem(); - virtual bool append( const QString& text ); + virtual bool append( const TQString& text ); virtual int displayMode() const { return DelayedDisplay | Append; } Type type() { return m_isInstatiationInfo ? Diagnostic : (m_isWarning ? Warning : Error); } virtual bool visible( EOutputLevel ) { return true; } - QString fileName; + TQString fileName; int lineNum; - QString m_error; + TQString m_error; bool m_isWarning; bool m_isInstatiationInfo; ///this also implies isWarning - QString m_compiler; + TQString m_compiler; }; class ActionItem : public MakeItem { public: - ActionItem( const QString& action, const QString& file, const QString& tool, const QString& line ) + ActionItem( const TQString& action, const TQString& file, const TQString& tool, const TQString& line ) : MakeItem( line ) , m_action( action ) , m_file( file ) @@ -154,11 +154,11 @@ public: {} virtual bool visible( EOutputLevel ) { return true; } - virtual QString text( EOutputLevel level ); + virtual TQString text( EOutputLevel level ); - QString m_action; - QString m_file; - QString m_tool; + TQString m_action; + TQString m_file; + TQString m_tool; }; #endif |