-
Notifications
You must be signed in to change notification settings - Fork 3
Technical notes on gear creation
jukea edited this page Jan 15, 2013
·
11 revisions
- SchemaEditor::dropEvent
- | SchemaEditor::addGear(..)
- | | SchemaGui::addGear(..)
- | | | Gear* gear = GearMaker::makeGear(fullname);
- | | | | GearInfo *gearInfo = findGearInfo(fullName);
- | | | | thegear = gearInfo->createGearInstance();
- | | | | thegear->init();
- | | | | | (gear::)internalInit();
- | | | | GearInfo *gearInfo = findGearInfo(fullName);
- | | | Schema::addGear(gear)
- | | | | gear.name(mangleUniqueGearName(gear.name()))
- | | | | gear.parentSchema(*this);
- | | | | emit gearAdded(*this, gear);
- | | | Engine::onGearAdded
- | | | ?
Notes :
- Most events should be handled by QGraphicsScene (SchemaGui) directly, not bw QGraphicsView (SceneEditor). This is an unnecessary proxy
--> prePlay vs internalInit … what's the difference ?