X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fshoppinglist%2Fmain.cpp;h=94976a25bca0ffb21b7e8a9fda292cf957709fb2;hb=8f4dd20821b7759c550e4ff66453a4fe867d3700;hp=2b8f5bf00abd7249768b37f5526f2b1cbd87ec79;hpb=cadb9f79feb379acd6712fba97af4f6696a413c5;p=r2c2.git diff --git a/source/shoppinglist/main.cpp b/source/shoppinglist/main.cpp index 2b8f5bf..94976a2 100644 --- a/source/shoppinglist/main.cpp +++ b/source/shoppinglist/main.cpp @@ -1,23 +1,16 @@ -/* $Id$ - -This file is part of the MSP Märklin suite -Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa -Distributed under the GPL -*/ - #include #include #include #include #include #include -#include "libmarklin/articlenumber.h" +#include "libr2c2/articlenumber.h" using namespace std; using namespace Msp; -using namespace Marklin; +using namespace R2C2; -class ShoppingList: public Application +class ShoppingList: public RegisteredApplication { private: class InventoryLoader: public DataFile::Loader @@ -43,8 +36,6 @@ private: map inventory; map layout; - static Application::RegApp reg; - public: ShoppingList(int, char **); int main(); @@ -54,8 +45,6 @@ private: }; -Application::RegApp ShoppingList::reg; - ShoppingList::ShoppingList(int argc, char **argv) { string inv_fn = "inventory"; @@ -141,6 +130,8 @@ ShoppingList::LayoutLoader::LayoutLoader(ShoppingList &s): add("track", &LayoutLoader::track); add("base"); add("route"); + add("signal"); + add("zone"); } void ShoppingList::LayoutLoader::track(ArticleNumber art_nr)