summaryrefslogtreecommitdiff
path: root/client/macro.h
diff options
context:
space:
mode:
authordeva <deva>2009-06-30 17:31:53 +0000
committerdeva <deva>2009-06-30 17:31:53 +0000
commit9a773bc9ed736301b5ac6f6f8798056194398011 (patch)
treea113908743936aea97975adb6f4f1c7f49e6b007 /client/macro.h
parentb31e7fba17d1e5c1264c0829c4da258c32aa80c3 (diff)
Removed console on win32 unless, compiled in debug mode. First attempt on a macro dependency system.
Diffstat (limited to 'client/macro.h')
-rw-r--r--client/macro.h68
1 files changed, 68 insertions, 0 deletions
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 <QString>
+#include <QStringList>
+#include <QMap>
+#include <QDomNode>
+#include <QBoxLayout>
+
+#include "macrowindow.h"
+
+class Macro;
+typedef QMap<QString, Macro> Macros;
+
+class Macro {
+public:
+ Macro() {}
+ Macro(QDomNode &node);
+
+ void init(QBoxLayout *layout, Macros &macros, 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__*/