diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-29 16:05:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-29 16:05:55 +0000 |
commit | 87a016680e3677da3993f333561e79eb0cead7d5 (patch) | |
tree | cbda2b4df8b8ee0d8d1617e6c75bec1e3ee0ccba /src/electronics/components/piccomponent.h | |
parent | 6ce3d1ad09c1096b5ed3db334e02859e45d5c32b (diff) | |
download | ktechlab-87a016680e3677da3993f333561e79eb0cead7d5.tar.gz ktechlab-87a016680e3677da3993f333561e79eb0cead7d5.zip |
TQt4 port ktechlab
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1238801 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/electronics/components/piccomponent.h')
-rw-r--r-- | src/electronics/components/piccomponent.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/electronics/components/piccomponent.h b/src/electronics/components/piccomponent.h index 165fbf6..d5e668d 100644 --- a/src/electronics/components/piccomponent.h +++ b/src/electronics/components/piccomponent.h @@ -16,8 +16,8 @@ #include "component.h" -#include <qguardedptr.h> -#include <qmap.h> +#include <tqguardedptr.h> +#include <tqmap.h> class Document; class ECNode; @@ -32,7 +32,7 @@ class PICComponentPin; class PicPin; class TextDocument; -typedef QMap< int, PICComponentPin * > PICComponentPinMap; +typedef TQMap< int, PICComponentPin * > PICComponentPinMap; /** @short Electronic PIC device @@ -41,6 +41,7 @@ typedef QMap< int, PICComponentPin * > PICComponentPinMap; class PICComponent : public Component { Q_OBJECT + TQ_OBJECT public: PICComponent( ICNDocument * icnDocument, bool newItem, const char *id = 0L ); ~PICComponent(); @@ -49,7 +50,7 @@ class PICComponent : public Component static Item * construct( ItemDocument *itemDocument, bool newItem, const char *id ); static LibraryItem * libraryItem(); - virtual void buttonStateChanged( const QString &id, bool state ); + virtual void buttonStateChanged( const TQString &id, bool state ); virtual bool mouseDoubleClickEvent( const EventInfo &eventInfo ); void programReload(); @@ -78,16 +79,16 @@ class PICComponent : public Component * Attempts to compile the program to a symbol file, and connects the assembly * finish signal to loadGpsim */ - QString createSymbolFile(); + TQString createSymbolFile(); virtual void dataChanged(); /** * Initializes the PIC from the options the user has selected. */ void initPIC( bool forceReload ); - QGuardedPtr<GpsimProcessor> m_pGpsim; - QString m_picFile; ///< The input program that the user selected - QString m_symbolFile; ///< The symbol file that was generated from m_picFile + TQGuardedPtr<GpsimProcessor> m_pGpsim; + TQString m_picFile; ///< The input program that the user selected + TQString m_symbolFile; ///< The symbol file that was generated from m_picFile bool m_bLoadingProgram; ///< True between createSymbolFile being called and the file being created PICComponentPinMap m_picComponentPinMap; bool m_bCreatedInitialPackage; ///< Set true once the initial package is loaded; until then, will load a package from the lastPackage data |