From bc64a989bc91cbf2acf06bbbdc402861e31aab81 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 26 May 2022 18:44:27 +0200 Subject: Remove obsolete/historic files. --- QookieAdd | 68 -------------------------------- component.cc | 28 ------------- component.h | 42 -------------------- course.cc | 27 ------------- course.h | 42 -------------------- dish.cc | 27 ------------- dish.h | 42 -------------------- document.cc | 100 ----------------------------------------------- document.h | 78 ------------------------------------- ingredient.cc | 28 ------------- ingredient.h | 40 ------------------- mainwindow.cc | 115 ------------------------------------------------------ mainwindow.h | 53 ------------------------- menu.cc | 28 ------------- menu.h | 42 -------------------- qookie.cc | 39 ------------------- qookie.pro | 36 ----------------- qookie.svg | 123 ---------------------------------------------------------- uid.cc | 28 ------------- uid.h | 32 --------------- unit.cc | 28 ------------- unit.h | 34 ---------------- viewer.cc | 31 --------------- viewer.h | 37 ------------------ 24 files changed, 1148 deletions(-) delete mode 100644 QookieAdd delete mode 100644 component.cc delete mode 100644 component.h delete mode 100644 course.cc delete mode 100644 course.h delete mode 100644 dish.cc delete mode 100644 dish.h delete mode 100644 document.cc delete mode 100644 document.h delete mode 100644 ingredient.cc delete mode 100644 ingredient.h delete mode 100644 mainwindow.cc delete mode 100644 mainwindow.h delete mode 100644 menu.cc delete mode 100644 menu.h delete mode 100644 qookie.cc delete mode 100644 qookie.pro delete mode 100644 qookie.svg delete mode 100644 uid.cc delete mode 100644 uid.h delete mode 100644 unit.cc delete mode 100644 unit.h delete mode 100644 viewer.cc delete mode 100644 viewer.h diff --git a/QookieAdd b/QookieAdd deleted file mode 100644 index 8be129b..0000000 --- a/QookieAdd +++ /dev/null @@ -1,68 +0,0 @@ -#!/bin/bash -PROJECT="Qookie" - -function allfile() { - WHO="`whoami`" - - echo "/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */" > $1; - echo "/***************************************************************************" >> $1; - echo " * $1" >> $1; - echo " *" >> $1 ; - echo " * `date`" >> $1; - echo -n " * Copyright " >> $1 - echo -n `date +%Y | xargs` >> $1 - if [ "$WHO" == "deva" ]; - then - echo " Bent Bisballe Nyeng" >> $1; - echo " * deva@aasimon.org" >> $1; - fi - echo " ****************************************************************************/" >> $1; - echo "" >> $1; - echo "/*" >> $1; - echo " * This file is part of $PROJECT." >> $1; - echo " *" >> $1; - echo " * $PROJECT is free software; you can redistribute it and/or modify" >> $1; - echo " * it under the terms of the GNU General Public License as published by" >> $1; - echo " * the Free Software Foundation; either version 2 of the License, or" >> $1; - echo " * (at your option) any later version." >> $1; - echo " *" >> $1; - echo " * $PROJECT is distributed in the hope that it will be useful," >> $1; - echo " * but WITHOUT ANY WARRANTY; without even the implied warranty of" >> $1; - echo " * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the" >> $1; - echo " * GNU General Public License for more details." >> $1; - echo " *" >> $1; - echo " * You should have received a copy of the GNU General Public License" >> $1; - echo " * along with $PROJECT; if not, write to the Free Software" >> $1; - echo " * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA." >> $1; - echo " */" >> $1; -} - -function ccfile() { - local hf=`echo -n $1 | cut -d'.' -f1`.h; - hfile $hf; - - allfile $1; - echo -n '#include "' >> $1; - echo -n $hf >> $1; - echo '"' >> $1; - echo '' >> $1; -} - -function hfile() { - allfile $1; - local hn=`echo $1 | tr 'a-z.' 'A-Z_'` - local pr=`echo $PROJECT | tr 'a-z.' 'A-Z_'` - echo "#ifndef __${pr}_${hn}__" >> $1; - echo "#define __${pr}_${hn}__" >> $1; - echo "#endif/*__${pr}_${hn}__*/" >> $1; -} - -if [ "$#" = "1" ]; then -if [ "CC" = `echo $1 | cut -d'.' -f2 | tr 'a-z' 'A-Z'` ]; then - ccfile $1; -fi; -if [ "H" = `echo $1 | cut -d'.' -f2 | tr 'a-z' 'A-Z'` ]; then - hfile $1; -fi; -else echo "Usage: $0 filename"; -fi; diff --git a/component.cc b/component.cc deleted file mode 100644 index f493c95..0000000 --- a/component.cc +++ /dev/null @@ -1,28 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/*************************************************************************** - * component.cc - * - * Sun Dec 28 10:19:20 CET 2008 - * Copyright 2008 Bent Bisballe Nyeng - * deva@aasimon.org - ****************************************************************************/ - -/* - * This file is part of Qookie. - * - * Qookie is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * Qookie is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Qookie; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. - */ -#include "component.h" - diff --git a/component.h b/component.h deleted file mode 100644 index a70a9cc..0000000 --- a/component.h +++ /dev/null @@ -1,42 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/*************************************************************************** - * component.h - * - * Sun Dec 28 10:19:20 CET 2008 - * Copyright 2008 Bent Bisballe Nyeng - * deva@aasimon.org - ****************************************************************************/ - -/* - * This file is part of Qookie. - * - * Qookie is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * Qookie is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Qookie; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. - */ -#ifndef __QOOKIE_COMPONENT_H__ -#define __QOOKIE_COMPONENT_H__ - -#include -#include -#include "uid.h" - -class Component { -public: - uid_t uid;//uid Integer A unique number defining this component. - QString name; //name String The name or title of the component. - QString description; //description String A short description of the component. - QImage image; //image Binary An image of the component. -}; - -#endif/*__QOOKIE_COMPONENT_H__*/ diff --git a/course.cc b/course.cc deleted file mode 100644 index bb15c2d..0000000 --- a/course.cc +++ /dev/null @@ -1,27 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/*************************************************************************** - * course.cc - * - * Fri Aug 22 18:59:30 CEST 2008 - * Copyright 2008 Bent Bisballe Nyeng - * deva@aasimon.org - ****************************************************************************/ - -/* - * This file is part of Qookie. - * - * Qookie is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * Qookie is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Qookie; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. - */ -#include "course.h" diff --git a/course.h b/course.h deleted file mode 100644 index d9bc8ed..0000000 --- a/course.h +++ /dev/null @@ -1,42 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/*************************************************************************** - * course.h - * - * Tue Aug 19 19:59:36 CEST 2008 - * Copyright 2008 Bent Bisballe Nyeng - * deva@aasimon.org - ****************************************************************************/ - -/* - * This file is part of Qookie. - * - * Qookie is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * Qookie is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Qookie; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. - */ -#ifndef __QOOKIE_COURSE_H__ -#define __QOOKIE_COURSE_H__ - -#include -#include -#include - -#include "component.h" -#include "ingredient.h" - -class Course : public Component { -public: - QVector ingredients; -}; - -#endif/*__QOOKIE_COURSE_H__*/ diff --git a/dish.cc b/dish.cc deleted file mode 100644 index 20baa88..0000000 --- a/dish.cc +++ /dev/null @@ -1,27 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/*************************************************************************** - * dish.cc - * - * Fri Aug 22 18:59:39 CEST 2008 - * Copyright 2008 Bent Bisballe Nyeng - * deva@aasimon.org - ****************************************************************************/ - -/* - * This file is part of Qookie. - * - * Qookie is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * Qookie is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Qookie; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. - */ -#include "dish.h" diff --git a/dish.h b/dish.h deleted file mode 100644 index 4c93183..0000000 --- a/dish.h +++ /dev/null @@ -1,42 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/*************************************************************************** - * dish.h - * - * Tue Aug 19 19:59:29 CEST 2008 - * Copyright 2008 Bent Bisballe Nyeng - * deva@aasimon.org - ****************************************************************************/ - -/* - * This file is part of Qookie. - * - * Qookie is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * Qookie is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Qookie; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. - */ -#ifndef __QOOKIE_DISH_H__ -#define __QOOKIE_DISH_H__ - -#include -#include -#include - -#include "component.h" -#include "course.h" - -class Dish : public Component { -public: - QVector courses; -}; - -#endif/*__QOOKIE_DISH_H__*/ diff --git a/document.cc b/document.cc deleted file mode 100644 index d46f089..0000000 --- a/document.cc +++ /dev/null @@ -1,100 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/*************************************************************************** - * document.cc - * - * Fri Aug 22 19:35:32 CEST 2008 - * Copyright 2008 Bent Bisballe Nyeng - * deva@aasimon.org - ****************************************************************************/ - -/* - * This file is part of Qookie. - * - * Qookie is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * Qookie is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Qookie; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. - */ -#include "document.h" - -Document::Document() -{ - setChanged(true); - maxuid = 0; -} - -bool Document::hasChanged() -{ - return changed; -} - -void Document::setChanged(bool changed) -{ - if(this->changed != changed) { - this->changed = changed; - emit documentStatusChanged(changed); - } -} - -uid_t Document::nextUid() -{ - return maxuid++; -} - -void Document::addIngredient(Ingredient *ingredient) -{ - ingredients[ingredient->uid] = ingredient; - if(ingredient->uid > maxuid) maxuid = ingredient->uid; - setChanged(true); -} - -void Document::addCourse(Course *course) -{ - courses[course->uid] = course; - if(course->uid > maxuid) maxuid = course->uid; - setChanged(true); -} - - -void Document::addDish(Dish *dish) -{ - dishes[dish->uid] = dish; - if(dish->uid > maxuid) maxuid = dish->uid; - setChanged(true); -} - -void Document::addMenu(Menu *menu) -{ - menus[menu->uid] = menu; - if(menu->uid > maxuid) maxuid = menu->uid; - setChanged(true); -} - -const Ingredient &Document::ingredient(uid_t uid) const -{ - return *ingredients[uid]; -} - -const Course &Document::course(uid_t uid) const -{ - return *courses[uid]; -} - -const Dish &Document::dish(uid_t uid) const -{ - return *dishes[uid]; -} - -const Menu &Document::menu(uid_t uid) const -{ - return *menus[uid]; -} diff --git a/document.h b/document.h deleted file mode 100644 index ee0cfd5..0000000 --- a/document.h +++ /dev/null @@ -1,78 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/*************************************************************************** - * document.h - * - * Fri Aug 22 19:35:31 CEST 2008 - * Copyright 2008 Bent Bisballe Nyeng - * deva@aasimon.org - ****************************************************************************/ - -/* - * This file is part of Qookie. - * - * Qookie is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * Qookie is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Qookie; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. - */ -#ifndef __QOOKIE_DOCUMENT_H__ -#define __QOOKIE_DOCUMENT_H__ - -#include - -#include "uid.h" -#include "menu.h" -#include "dish.h" -#include "course.h" -#include "ingredient.h" - -/** - * The document class is the internal representation of the Qookie document. - * It is detached to the medium, of its origin (file, database etc.) this is handled by the - * Reader interface class. - */ -class Document : public QObject { -Q_OBJECT -public: - Document(); - - bool hasChanged(); - void setChanged(bool changed); - - void addIngredient(Ingredient *ingredient); - void addCourse(Course *course); - void addDish(Dish *dish); - void addMenu(Menu *menu); - - const Ingredient &ingredient(uid_t uid) const; - const Course &course(uid_t uid) const; - const Dish &dish(uid_t uid) const; - const Menu &menu(uid_t uid) const; - - QString name; - -signals: - void documentStatusChanged(bool changed); - -private: - bool changed; - - QMap< uid_t, Menu *> menus; - QMap< uid_t, Dish *> dishes; - QMap< uid_t, Course *> courses; - QMap< uid_t, Ingredient *> ingredients; - - uid_t nextUid(); - uid_t maxuid; -}; - -#endif/*__QOOKIE_DOCUMENT_H__*/ diff --git a/ingredient.cc b/ingredient.cc deleted file mode 100644 index 155424c..0000000 --- a/ingredient.cc +++ /dev/null @@ -1,28 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/*************************************************************************** - * ingredient.cc - * - * Fri Aug 22 18:59:20 CEST 2008 - * Copyright 2008 Bent Bisballe Nyeng - * deva@aasimon.org - ****************************************************************************/ - -/* - * This file is part of Qookie. - * - * Qookie is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * Qookie is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Qookie; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. - */ -#include "ingredient.h" - diff --git a/ingredient.h b/ingredient.h deleted file mode 100644 index 46a7200..0000000 --- a/ingredient.h +++ /dev/null @@ -1,40 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/*************************************************************************** - * ingredient.h - * - * Tue Aug 19 19:59:40 CEST 2008 - * Copyright 2008 Bent Bisballe Nyeng - * deva@aasimon.org - ****************************************************************************/ - -/* - * This file is part of Qookie. - * - * Qookie is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * Qookie is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Qookie; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. - */ -#ifndef __QOOKIE_INGREDIENT_H__ -#define __QOOKIE_INGREDIENT_H__ - -#include - -#include "component.h" -#include "unit.h" - -class Ingredient : public Component { -public: - Unit *unit; -}; - -#endif/*__QOOKIE_INGREDIENT_H__*/ diff --git a/mainwindow.cc b/mainwindow.cc deleted file mode 100644 index 55d5efb..0000000 --- a/mainwindow.cc +++ /dev/null @@ -1,115 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/*************************************************************************** - * mainwindow.cc - * - * Tue Aug 19 19:17:08 CEST 2008 - * Copyright 2008 Bent Bisballe Nyeng - * deva@aasimon.org - ****************************************************************************/ - -/* - * This file is part of Qookie. - * - * Qookie is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * Qookie is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Qookie; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. - */ -#include "mainwindow.h" - -#include -#include -#include - -#include - -#include "xmlreader.h" - -MainWindow::MainWindow() -{ - XMLReader reader; - document = reader.read(); - - connect(document, SIGNAL(documentStatusChanged(bool)), this, SLOT(updateDocumentStatus(bool))); - - // - // Create the toolbar - // - QToolBar *toolbar = new QToolBar("A toolbar"); - - // QAction *act_load = toolbar->addAction("Load"); - // connect(act_load, SIGNAL(triggered()), &document, SLOT(load())); - - // QAction *act_save = toolbar->addAction("Save"); - // connect(act_save, SIGNAL(triggered()), &document, SLOT(save())); - - QAction *act_ing = toolbar->addAction("Add Ingredient"); - connect(act_ing, SIGNAL(triggered()), this, SLOT(addIngredient())); - - QAction *act_dish = toolbar->addAction("Add Dish"); - connect(act_dish, SIGNAL(triggered()), this, SLOT(addDish())); - - QAction *act_course = toolbar->addAction("Add Course"); - connect(act_course, SIGNAL(triggered()), this, SLOT(addCourse())); - - QAction *act_menu = toolbar->addAction("Add Menu"); - connect(act_menu, SIGNAL(triggered()), this, SLOT(addMenu())); - - // - // Create the browser docking widget - // - QDockWidget *browser = new QDockWidget("Browser"); - - // - // Create the viewer - // - viewer = new Viewer(); - - setCentralWidget(viewer); - addToolBar(Qt::TopToolBarArea, toolbar); - addDockWidget(Qt::LeftDockWidgetArea, browser); -} - -MainWindow::~MainWindow() -{ - XMLReader reader; - reader.write(document); -} - -void MainWindow::addIngredient() -{ - Ingredient *ingredient = new Ingredient(); - document->addIngredient(ingredient); -} - -void MainWindow::addDish() -{ - Dish *dish = new Dish(); - document->addDish(dish); -} - -void MainWindow::addCourse() -{ - Course *course = new Course(); - document->addCourse(course); -} - -void MainWindow::addMenu() -{ - Menu *menu = new Menu(); - document->addMenu(menu); -} - -void MainWindow::updateDocumentStatus(bool changed) -{ - setWindowTitle(document->name + (changed?"*":"")); -} diff --git a/mainwindow.h b/mainwindow.h deleted file mode 100644 index dbdbd94..0000000 --- a/mainwindow.h +++ /dev/null @@ -1,53 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/*************************************************************************** - * mainwindow.h - * - * Tue Aug 19 19:17:08 CEST 2008 - * Copyright 2008 Bent Bisballe Nyeng - * deva@aasimon.org - ****************************************************************************/ - -/* - * This file is part of Qookie. - * - * Qookie is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * Qookie is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Qookie; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. - */ -#ifndef __QOOKIE_MAINWINDOW_H__ -#define __QOOKIE_MAINWINDOW_H__ - -#include -#include "document.h" -#include "viewer.h" - -class MainWindow : public QMainWindow -{ -Q_OBJECT -public: - MainWindow(); - ~MainWindow(); - -public slots: - void addIngredient(); - void addDish(); - void addCourse(); - void addMenu(); - void updateDocumentStatus(bool changed); - -private: - Document *document; - Viewer *viewer; -}; - -#endif/*__QOOKIE_MAINWINDOW_H__*/ diff --git a/menu.cc b/menu.cc deleted file mode 100644 index 8992cb5..0000000 --- a/menu.cc +++ /dev/null @@ -1,28 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/*************************************************************************** - * menu.cc - * - * Fri Aug 22 18:59:25 CEST 2008 - * Copyright 2008 Bent Bisballe Nyeng - * deva@aasimon.org - ****************************************************************************/ - -/* - * This file is part of Qookie. - * - * Qookie is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * Qookie is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Qookie; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. - */ -#include "menu.h" - diff --git a/menu.h b/menu.h deleted file mode 100644 index 890b927..0000000 --- a/menu.h +++ /dev/null @@ -1,42 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/*************************************************************************** - * menu.h - * - * Tue Aug 19 19:59:22 CEST 2008 - * Copyright 2008 Bent Bisballe Nyeng - * deva@aasimon.org - ****************************************************************************/ - -/* - * This file is part of Qookie. - * - * Qookie is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * Qookie is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Qookie; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. - */ -#ifndef __QOOKIE_MENU_H__ -#define __QOOKIE_MENU_H__ - -#include -#include -#include - -#include "component.h" -#include "dish.h" - -class Menu : public Component { -public: - QVector dishes; -}; - -#endif/*__QOOKIE_MENU_H__*/ diff --git a/qookie.cc b/qookie.cc deleted file mode 100644 index 2329cf9..0000000 --- a/qookie.cc +++ /dev/null @@ -1,39 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/*************************************************************************** - * qookie.cc - * - * Tue Aug 19 19:17:02 CEST 2008 - * Copyright 2008 Bent Bisballe Nyeng - * deva@aasimon.org - ****************************************************************************/ - -/* - * This file is part of Qookie. - * - * Qookie is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * Qookie is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Qookie; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. - */ -#include - -#include "mainwindow.h" - -int main(int argc, char *argv[]) -{ - QApplication qapp(argc, argv); - - MainWindow mainwindow; - mainwindow.show(); - - return qapp.exec(); -} diff --git a/qookie.pro b/qookie.pro deleted file mode 100644 index 89c45fa..0000000 --- a/qookie.pro +++ /dev/null @@ -1,36 +0,0 @@ -# -*- makefile -*- - -TEMPLATE = app -TARGET = -DEPENDPATH += . -INCLUDEPATH += . -QT += core xml gui svg - - -# Input -HEADERS += \ - mainwindow.h \ - viewer.h \ - menu.h \ - component.h \ - dish.h \ - course.h \ - ingredient.h \ - document.h \ - reader.h \ - xmlreader.h \ - uid.h - -SOURCES += \ - mainwindow.cc \ - qookie.cc \ - viewer.cc \ - menu.cc \ - component.cc \ - dish.cc \ - course.cc \ - ingredient.cc \ - document.cc \ - reader.cc \ - xmlreader.cc \ - uid.cc diff --git a/qookie.svg b/qookie.svg deleted file mode 100644 index 1cf3839..0000000 --- a/qookie.svg +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - - - diff --git a/uid.cc b/uid.cc deleted file mode 100644 index f25533f..0000000 --- a/uid.cc +++ /dev/null @@ -1,28 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/*************************************************************************** - * uid.cc - * - * Sun Dec 28 10:35:11 CET 2008 - * Copyright 2008 Bent Bisballe Nyeng - * deva@aasimon.org - ****************************************************************************/ - -/* - * This file is part of Qookie. - * - * Qookie is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * Qookie is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Qookie; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. - */ -#include "uid.h" - diff --git a/uid.h b/uid.h deleted file mode 100644 index df4a799..0000000 --- a/uid.h +++ /dev/null @@ -1,32 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/*************************************************************************** - * uid.h - * - * Sun Dec 28 10:35:11 CET 2008 - * Copyright 2008 Bent Bisballe Nyeng - * deva@aasimon.org - ****************************************************************************/ - -/* - * This file is part of Qookie. - * - * Qookie is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * Qookie is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Qookie; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. - */ -#ifndef __QOOKIE_UID_H__ -#define __QOOKIE_UID_H__ - -typedef unsigned int uid_t; - -#endif/*__QOOKIE_UID_H__*/ diff --git a/unit.cc b/unit.cc deleted file mode 100644 index 5c3a836..0000000 --- a/unit.cc +++ /dev/null @@ -1,28 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/*************************************************************************** - * unit.cc - * - * Fri Aug 22 19:07:08 CEST 2008 - * Copyright 2008 Bent Bisballe Nyeng - * deva@aasimon.org - ****************************************************************************/ - -/* - * This file is part of Qookie. - * - * Qookie is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * Qookie is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Qookie; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. - */ -#include "unit.h" - diff --git a/unit.h b/unit.h deleted file mode 100644 index 48743ae..0000000 --- a/unit.h +++ /dev/null @@ -1,34 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/*************************************************************************** - * unit.h - * - * Fri Aug 22 19:07:08 CEST 2008 - * Copyright 2008 Bent Bisballe Nyeng - * deva@aasimon.org - ****************************************************************************/ - -/* - * This file is part of Qookie. - * - * Qookie is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * Qookie is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Qookie; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. - */ -#ifndef __QOOKIE_UNIT_H__ -#define __QOOKIE_UNIT_H__ - -class Unit { - -}; - -#endif/*__QOOKIE_UNIT_H__*/ diff --git a/viewer.cc b/viewer.cc deleted file mode 100644 index 18b8e68..0000000 --- a/viewer.cc +++ /dev/null @@ -1,31 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/*************************************************************************** - * viewer.cc - * - * Tue Aug 19 19:48:30 CEST 2008 - * Copyright 2008 Bent Bisballe Nyeng - * deva@aasimon.org - ****************************************************************************/ - -/* - * This file is part of Qookie. - * - * Qookie is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * Qookie is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Qookie; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. - */ -#include "viewer.h" - -Viewer::Viewer() : QSvgWidget("qookie.svg") -{ -} diff --git a/viewer.h b/viewer.h deleted file mode 100644 index 4abcc3c..0000000 --- a/viewer.h +++ /dev/null @@ -1,37 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/*************************************************************************** - * viewer.h - * - * Tue Aug 19 19:48:29 CEST 2008 - * Copyright 2008 Bent Bisballe Nyeng - * deva@aasimon.org - ****************************************************************************/ - -/* - * This file is part of Qookie. - * - * Qookie is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * Qookie is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Qookie; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. - */ -#ifndef __QOOKIE_VIEWER_H__ -#define __QOOKIE_VIEWER_H__ - -#include - -class Viewer : public QSvgWidget { -public: - Viewer(); -}; - -#endif/*__QOOKIE_VIEWER_H__*/ -- cgit v1.2.3