From 9a773bc9ed736301b5ac6f6f8798056194398011 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 30 Jun 2009 17:31:53 +0000 Subject: Removed console on win32 unless, compiled in debug mode. First attempt on a macro dependency system. --- client/macro.h | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 client/macro.h (limited to 'client/macro.h') diff --git a/client/macro.h b/client/macro.h new file mode 100644 index 0000000..f79583c --- /dev/null +++ b/client/macro.h @@ -0,0 +1,68 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set et sw=2 ts=2: */ +/*************************************************************************** + * macro.h + * + * Tue Jun 30 11:49:46 CEST 2009 + * Copyright 2009 Bent Bisballe Nyeng + * deva@aasimon.org + ****************************************************************************/ + +/* + * This file is part of Pracro. + * + * Pracro 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. + * + * Pracro 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 Pracro; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + */ +#ifndef __PRACRO_MACRO_H__ +#define __PRACRO_MACRO_H__ + +#include +#include +#include +#include +#include + +#include "macrowindow.h" + +class Macro; +typedef QMap Macros; + +class Macro { +public: + Macro() {} + Macro(QDomNode &node); + + void init(QBoxLayout *layout, Macros ¯os, bool initialising, NetCom &netcom, QString course); + + QString name; + QString caption; + + // Dependency system + QStringList requires; + // bool isrequired; + bool iscompleted; + + QString resume; + + bool isstatic; + bool iscompact; + + MacroWindow *window; + +private: + QDomNode node; +}; + +#endif/*__PRACRO_MACRO_H__*/ -- cgit v1.2.3