示例#1
0
//------------------------------------------------------------------------------
// copyData() -- copy member data
//------------------------------------------------------------------------------
void SymbolLoader::copyData(const SymbolLoader& org, const bool cc)
{
    BaseClass::copyData(org);
    if (cc) initData();

    // Clear the symbols; the user will need to
    // create these with the new template list.
    clearLoader();

    {
        Basic::PairStream* copy = 0;
        if (org.templates != 0) {
            copy = org.templates->clone();
        }
        setSlotTemplates(copy);
        if (copy != 0) copy->unref();
    }

    showInRangeOnly = org.showInRangeOnly;
    interconnect = org.interconnect;
}
示例#2
0
//------------------------------------------------------------------------------
//deleteData() -- delete member data
//------------------------------------------------------------------------------
void Board::deleteData()
{
   setSlotPuzzle(nullptr);
   setSlotTemplates(nullptr);
   clearGraphics();
}