[rkward-cvs] SF.net SVN: rkward:[4360] trunk/rkward/rkward/plugin
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Tue Oct 9 18:09:39 UTC 2012
Revision: 4360
http://rkward.svn.sourceforge.net/rkward/?rev=4360&view=rev
Author: tfry
Date: 2012-10-09 18:09:39 +0000 (Tue, 09 Oct 2012)
Log Message:
-----------
First incomplete API-sketch for matrix input element
Added Paths:
-----------
trunk/rkward/rkward/plugin/rkmatrixinput.cpp
trunk/rkward/rkward/plugin/rkmatrixinput.h
Added: trunk/rkward/rkward/plugin/rkmatrixinput.cpp
===================================================================
--- trunk/rkward/rkward/plugin/rkmatrixinput.cpp (rev 0)
+++ trunk/rkward/rkward/plugin/rkmatrixinput.cpp 2012-10-09 18:09:39 UTC (rev 4360)
@@ -0,0 +1,23 @@
+/***************************************************************************
+ rkmatrixinput - description
+ -------------------
+ begin : Tue Oct 09 2012
+ copyright : (C) 2012 by Thomas Friedrichsmeier
+ email : tfry at users.sourceforge.net
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program 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. *
+ * *
+ ***************************************************************************/
+
+#include "rkmatrixinput.cpp"
+
+#include "../debug.h"
+
+
+#include "rkmatrixinput.moc"
Added: trunk/rkward/rkward/plugin/rkmatrixinput.h
===================================================================
--- trunk/rkward/rkward/plugin/rkmatrixinput.h (rev 0)
+++ trunk/rkward/rkward/plugin/rkmatrixinput.h 2012-10-09 18:09:39 UTC (rev 4360)
@@ -0,0 +1,55 @@
+/***************************************************************************
+ rkmatrixinput - description
+ -------------------
+ begin : Tue Oct 09 2012
+ copyright : (C) 2012 by Thomas Friedrichsmeier
+ email : tfry at users.sourceforge.net
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program 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. *
+ * *
+ ***************************************************************************/
+
+#ifndef RKMATRIXINPUT_H
+#define RKMATRIXINPUT_H
+
+#include <rkcomponent.h>
+
+#include <QDomElement>
+
+/** Provides a table for editing one- or two-dimensional data
+ *@author Thomas Friedrichsmeier
+ */
+class RKMatrixInput : public RKComponent {
+ Q_OBJECT
+public:
+ RKMatrixInput (const QDomElement &element, RKComponent *parent_component, QWidget *parent_widget);
+ ~RKMatrixInput ();
+ int type () { return ComponentMatrixInput; };
+ bool isValid ();
+private slots:
+ void dimensionPropertyChanged (RKComponentPropertyBase *property);
+private:
+ RKComponentPropertyInt *row_count;
+ RKComponentPropertyInt *column_count;
+
+ enum Mode {
+ Integer,
+ Real,
+ String
+ };
+
+ double min;
+ double max;
+
+ bool allow_missings;
+ bool allow_user_resize_rows;
+ bool allow_user_resize_columns;
+};
+
+#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the rkward-tracker
mailing list