/*! \todo Ownership/destructor
*/
CrossfallEditorTool::CrossfallEditorTool(ToolManager *toolManager)
    : Tool(toolManager)
    , toolId_(ODD::TCF_SELECT)
{
    // Connect emitted ToolActions to ToolManager //
    //
    connect(this, SIGNAL(toolAction(ToolAction *)), toolManager, SLOT(toolActionSlot(ToolAction *)));

    // Tool Bar //
    //
    initToolBar();
    initToolWidget();
}
Example #2
0
/*! \todo Ownership/destructor
*/
JunctionEditorTool::JunctionEditorTool(ToolManager *toolManager)
    : Tool(toolManager)
    , toolId_(ODD::TJE_SELECT)
{
    // Connect //
    //
    connect(this, SIGNAL(toolAction(ToolAction *)), toolManager, SLOT(toolActionSlot(ToolAction *)));

    // Tool Bar //
    //
    initToolBar();
    initToolWidget();
}
Example #3
0
/*! \todo Ownership/destructor
*/
TrackEditorTool::TrackEditorTool(PrototypeManager *prototypeManager, ToolManager *toolManager)
    : Tool(toolManager)
    , prototypeManager_(prototypeManager)
    , toolId_(ODD::TTE_SELECT)
    , currentRoadSystemPrototype_(NULL)
{
    // Connect //
    //
    connect(this, SIGNAL(toolAction(ToolAction *)), toolManager, SLOT(toolActionSlot(ToolAction *)));

    // Tool Bar //
    //
    initToolBar();
    initToolWidget();
}