#include <piccomponent.h>
Inheritance diagram for PICComponent:


Public Slots | |
| void | slotUpdateFileList () |
| void | slotUpdateBtns () |
Public Member Functions | |
| PICComponent (ICNDocument *icnDocument, bool newItem, const char *id=0) | |
| ~PICComponent () | |
| virtual bool | canFlip () const |
| virtual void | buttonStateChanged (const QString &id, bool state) |
| virtual bool | mouseDoubleClickEvent (const EventInfo &eventInfo) |
| void | programReload () |
| void | initPackage (MicroInfo *info) |
Static Public Member Functions | |
| static Item * | construct (ItemDocument *itemDocument, bool newItem, const char *id) |
| static LibraryItem * | libraryItem () |
Protected Slots | |
| void | slotCODCreationSucceeded () |
| void | slotCODCreationFailed () |
Protected Member Functions | |
| void | attachPICComponentPins () |
| void | deletePICComponentPins () |
| QString | createSymbolFile () |
| virtual void | dataChanged () |
| void | initPIC (bool forceReload) |
Protected Attributes | |
| 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. | |
| 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. | |
Definition at line 41 of file piccomponent.h.
| virtual bool PICComponent::canFlip | ( | ) | const [inline, virtual] |
Whether or not we can flip the item
Reimplemented from Item.
Definition at line 48 of file piccomponent.h.
| void PICComponent::initPackage | ( | MicroInfo * | info | ) |
Sets up the pins, text, etc for the given PIC type. If info is null, then a generic rectangle is displayed (used when no file has been loaded yet).
Definition at line 184 of file piccomponent.cpp.
References CNItem::addDisplayText(), CIWidgetMgr::button(), deletePICComponentPins(), Item::height(), MicroInfo::id(), Component::initDIP(), Component::initDIPSymbol(), m_bCreatedInitialPackage, CNItem::m_nodeMap, m_picComponentPinMap, CNItem::m_textMap, Item::offsetX(), Item::offsetY(), MicroInfo::package(), MicroPackage::pinIDs(), MicroPackage::pins(), CNItem::removeDisplayText(), Component::removeElements(), CNItem::removeNode(), GuiPart::setOriginalRect(), Item::setSize(), Item::sizeRect(), Component::updateAttachedPositioning(), and Item::width().
Referenced by initPIC(), PICComponent(), and slotCODCreationSucceeded().
| void PICComponent::attachPICComponentPins | ( | ) | [protected] |
Attaches all PICComponentPins to the current instance of gpsim.
Definition at line 254 of file piccomponent.cpp.
References m_pGpsim, and m_picComponentPinMap.
Referenced by slotCODCreationSucceeded().
| QString PICComponent::createSymbolFile | ( | ) | [protected] |
Attempts to compile the program to a symbol file, and connects the assembly finish signal to loadGpsim
Definition at line 333 of file piccomponent.cpp.
References Item::dataString(), GpsimProcessor::generateSymbolFile(), m_bLoadingProgram, slotCODCreationFailed(), slotCODCreationSucceeded(), and slotUpdateBtns().
Referenced by initPIC().
| void PICComponent::initPIC | ( | bool | forceReload | ) | [protected] |
Initializes the PIC from the options the user has selected.
Definition at line 133 of file piccomponent.cpp.
References createSymbolFile(), Item::dataString(), initPackage(), GpsimProcessor::isValidProgramFile(), m_bCreatedInitialPackage, m_pGpsim, m_picFile, m_symbolFile, MicroLibrary::microInfoWithID(), MicroLibrary::self(), and slotUpdateBtns().
Referenced by dataChanged(), and programReload().
1.5.1