author | mickeyl <mickeyl> | 2005-08-23 21:48:49 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-08-23 21:48:49 (UTC) |
commit | c1fc89afc42b1a8781b92b581f5be19916e2b69d (patch) (side-by-side diff) | |
tree | 1f3d28c9833e35faea981c75f675e14cc026c04b | |
parent | be9fe5d9bbb4ff207f5a5315731d204fa23e0527 (diff) | |
download | opie-c1fc89afc42b1a8781b92b581f5be19916e2b69d.zip opie-c1fc89afc42b1a8781b92b581f5be19916e2b69d.tar.gz opie-c1fc89afc42b1a8781b92b581f5be19916e2b69d.tar.bz2 |
make it compile
-rw-r--r-- | noncore/tools/calc2/binary/binaryfactory.cpp | 2 | ||||
-rw-r--r-- | noncore/tools/calc2/binary/binaryfactory.h | 4 | ||||
-rw-r--r-- | noncore/tools/calc2/binary/binaryimpl.cpp | 2 | ||||
-rw-r--r-- | noncore/tools/calc2/binary/binaryimpl.h | 2 | ||||
-rw-r--r-- | noncore/tools/calc2/calc.pro | 12 | ||||
-rw-r--r-- | noncore/tools/calc2/main/main.pro | 2 | ||||
-rw-r--r-- | noncore/tools/calc2/simple/simplefactory.cpp | 2 | ||||
-rw-r--r-- | noncore/tools/calc2/simple/simplefactory.h | 4 | ||||
-rw-r--r-- | noncore/tools/calc2/simple/simpleimpl.cpp | 2 | ||||
-rw-r--r-- | noncore/tools/calc2/simple/simpleimpl.h | 4 |
10 files changed, 12 insertions, 24 deletions
diff --git a/noncore/tools/calc2/binary/binaryfactory.cpp b/noncore/tools/calc2/binary/binaryfactory.cpp index bccc9ca..2489fdd 100644 --- a/noncore/tools/calc2/binary/binaryfactory.cpp +++ b/noncore/tools/calc2/binary/binaryfactory.cpp @@ -9,33 +9,33 @@ ** GNU General Public License version 2 as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL included in the ** packaging of this file. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ** See http://www.trolltech.com/gpl/ for GPL licensing information. ** ** Contact info@trolltech.com if any conditions of this licensing are ** not clear to you. ** **********************************************************************/ #include "binaryfactory.h" #include "binaryimpl.h" -#include "../engine.h" +#include "engine.h" QWidget *BinaryInterface::getPlugin ( Engine *e, QWidget *parent ) { if ( !input ) input = new FormBinaryImpl ( e, parent ); return input; } #ifndef QT_NO_COMPONENT QRESULT BinaryInterface::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) { *iface = 0; if ( uuid == IID_QUnknown ) *iface = this; else if ( uuid == IID_Calc ) *iface = this; diff --git a/noncore/tools/calc2/binary/binaryfactory.h b/noncore/tools/calc2/binary/binaryfactory.h index 237a926..8bad233 100644 --- a/noncore/tools/calc2/binary/binaryfactory.h +++ b/noncore/tools/calc2/binary/binaryfactory.h @@ -9,34 +9,34 @@ ** packaging of this file. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ** See http://www.trolltech.com/gpl/ for GPL licensing information. ** ** Contact info@trolltech.com if any conditions of this licensing are ** not clear to you. ** **********************************************************************/ #ifndef BINARYIMPL_H #define BINARYIMPL_H #include "binaryimpl.h" -#include "../plugininterface.h" -#include "../engine.h" +#include "plugininterface.h" +#include "engine.h" class BinaryInterface : public CalcInterface { public: BinaryInterface(){input = 0;}; virtual ~BinaryInterface(){}; #ifndef QT_NO_COMPONENT QRESULT queryInterface( const QUuid&, QUnknownInterface** ); Q_REFCOUNT #endif QWidget *getPlugin( Engine *, QWidget *parent ); private: FormBinaryImpl *input; diff --git a/noncore/tools/calc2/binary/binaryimpl.cpp b/noncore/tools/calc2/binary/binaryimpl.cpp index ecbf232..2629d07 100644 --- a/noncore/tools/calc2/binary/binaryimpl.cpp +++ b/noncore/tools/calc2/binary/binaryimpl.cpp @@ -6,33 +6,33 @@ ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL included in the ** packaging of this file. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ** See http://www.trolltech.com/gpl/ for GPL licensing information. ** ** Contact info@trolltech.com if any conditions of this licensing are ** not clear to you. ** **********************************************************************/ #include "binaryimpl.h" -#include "../instruction.h" +#include "instruction.h" class iXOR : public Instruction { public: iXOR():Instruction(){}; ~iXOR(){}; Data eval(Data num) { Data result; result.i = num.i ^ acc.i; return result; }; }; class iAND : public Instruction { public: iAND():Instruction(){}; ~iAND(){}; Data eval(Data num) { diff --git a/noncore/tools/calc2/binary/binaryimpl.h b/noncore/tools/calc2/binary/binaryimpl.h index 7bf123a..f36a31e 100644 --- a/noncore/tools/calc2/binary/binaryimpl.h +++ b/noncore/tools/calc2/binary/binaryimpl.h @@ -8,33 +8,33 @@ ** Foundation and appearing in the file LICENSE.GPL included in the ** packaging of this file. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ** See http://www.trolltech.com/gpl/ for GPL licensing information. ** ** Contact info@trolltech.com if any conditions of this licensing are ** not clear to you. ** **********************************************************************/ #ifndef FORMBINARYINPUTIMPL #define FORMBINARYINPUTIMPL #include "binary.h" -#include "../engine.h" +#include "engine.h" class FormBinaryImpl : public FormBinary { Q_OBJECT public: FormBinaryImpl(Engine *e,QWidget *p) : FormBinary (p,"Binary") { engine = e; engine->setRepresentation(rBin); }; ~FormBinaryImpl(){}; private: Engine *engine; private slots: void val0Clicked(); void val1Clicked(); diff --git a/noncore/tools/calc2/calc.pro b/noncore/tools/calc2/calc.pro deleted file mode 100644 index 191a4df..0000000 --- a/noncore/tools/calc2/calc.pro +++ b/dev/null @@ -1,12 +0,0 @@ -TEMPLATE = app -CONFIG += qt -# Input -HEADERS += calc.h plugininterface.h instruction.h engine.h stdinstructions.h -SOURCES += calc.cpp main.cpp engine.cpp -INCLUDEPATH += $(OPIEDIR)/include -DEPENDPATH += $(OPIEDIR)/include -LIBS += -lqpe -Wl,-export-dynamic -TARGET = calc -DESTDIR = $(OPIEDIR)/bin - -include( $(OPIEDIR)/include.pro ) diff --git a/noncore/tools/calc2/main/main.pro b/noncore/tools/calc2/main/main.pro index e2eda1f..2ef993d 100644 --- a/noncore/tools/calc2/main/main.pro +++ b/noncore/tools/calc2/main/main.pro @@ -1,12 +1,12 @@ TEMPLATE = app CONFIG += qt # Input HEADERS += calc.h plugininterface.h instruction.h engine.h stdinstructions.h SOURCES += calc.cpp main.cpp engine.cpp INCLUDEPATH += $(OPIEDIR)/include DEPENDPATH += $(OPIEDIR)/include -LIBS += -lqpe -Wl,-export-dynamic +LIBS += -lqpe -Wl,-export-dynamic -lopiecore2 TARGET = calc2 DESTDIR = $(OPIEDIR)/bin include( $(OPIEDIR)/include.pro ) diff --git a/noncore/tools/calc2/simple/simplefactory.cpp b/noncore/tools/calc2/simple/simplefactory.cpp index 52b090b..d594e9c 100644 --- a/noncore/tools/calc2/simple/simplefactory.cpp +++ b/noncore/tools/calc2/simple/simplefactory.cpp @@ -9,33 +9,33 @@ ** GNU General Public License version 2 as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL included in the ** packaging of this file. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ** See http://www.trolltech.com/gpl/ for GPL licensing information. ** ** Contact info@trolltech.com if any conditions of this licensing are ** not clear to you. ** **********************************************************************/ #include "simplefactory.h" #include "simpleimpl.h" -#include "../engine.h" +#include "engine.h" QWidget *SimpleInterface::getPlugin ( Engine *e, QWidget *parent ) { if ( !input ) input = new FormSimpleImpl ( e, parent ); return input; } #ifndef QT_NO_COMPONENT QRESULT SimpleInterface::queryInterface( const QUuid &uuid, QUnknownInterface **iface ) { *iface = 0; if ( uuid == IID_QUnknown ) *iface = this; else if ( uuid == IID_Calc ) *iface = this; diff --git a/noncore/tools/calc2/simple/simplefactory.h b/noncore/tools/calc2/simple/simplefactory.h index 460c2b9..0487158 100644 --- a/noncore/tools/calc2/simple/simplefactory.h +++ b/noncore/tools/calc2/simple/simplefactory.h @@ -9,34 +9,34 @@ ** packaging of this file. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ** See http://www.trolltech.com/gpl/ for GPL licensing information. ** ** Contact info@trolltech.com if any conditions of this licensing are ** not clear to you. ** **********************************************************************/ #ifndef BINARYIMPL_H #define BINARYIMPL_H #include "simpleimpl.h" -#include "../plugininterface.h" -#include "../engine.h" +#include "plugininterface.h" +#include "engine.h" class SimpleInterface : public CalcInterface { public: SimpleInterface(){input = 0;}; virtual ~SimpleInterface(){}; #ifndef QT_NO_COMPONENT QRESULT queryInterface( const QUuid&, QUnknownInterface** ); Q_REFCOUNT #endif QWidget *getPlugin( Engine *, QWidget *parent ); private: FormSimpleImpl *input; diff --git a/noncore/tools/calc2/simple/simpleimpl.cpp b/noncore/tools/calc2/simple/simpleimpl.cpp index 447cbdf..3cec4e0 100644 --- a/noncore/tools/calc2/simple/simpleimpl.cpp +++ b/noncore/tools/calc2/simple/simpleimpl.cpp @@ -9,33 +9,33 @@ ** packaging of this file. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ** See http://www.trolltech.com/gpl/ for GPL licensing information. ** ** Contact info@trolltech.com if any conditions of this licensing are ** not clear to you. ** **********************************************************************/ #include <qpushbutton.h> #include <qlcdnumber.h> #include "simpleimpl.h" -#include "../stdinstructions.h" +#include "stdinstructions.h" void FormSimpleImpl::CEClicked() { engine->hardReset(); } void FormSimpleImpl::MCClicked() { engine->memClear(); } void FormSimpleImpl::MRClicked() { engine->memRecall(); } void FormSimpleImpl::MPlusClicked() { engine->memSave(); } diff --git a/noncore/tools/calc2/simple/simpleimpl.h b/noncore/tools/calc2/simple/simpleimpl.h index b7b83e2..a2db154 100644 --- a/noncore/tools/calc2/simple/simpleimpl.h +++ b/noncore/tools/calc2/simple/simpleimpl.h @@ -12,34 +12,34 @@ ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ** See http://www.trolltech.com/gpl/ for GPL licensing information. ** ** Contact info@trolltech.com if any conditions of this licensing are ** not clear to you. ** **********************************************************************/ #ifndef STANDARDIMPL_H #define STANDARDIMPL_H #include <qpe/qmath.h> #include <qlcdnumber.h> #include "simple.h" -#include "../engine.h" -#include "../instruction.h" +#include "engine.h" +#include "instruction.h" class FormSimpleImpl:public FormSimple { Q_OBJECT public: FormSimpleImpl (Engine *e, QWidget * parent = 0, const char *name = 0) :FormSimple (parent, name) {engine = e;engine->setRepresentation(rDouble);}; ~FormSimpleImpl () { }; private: Engine *engine; private slots: void MPlusClicked(); void MCClicked(); void MRClicked(); |