make MagicSmoke compatible with new include mode of libs
authorkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sun, 26 Sep 2010 19:03:21 +0000 (19:03 +0000)
committerkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sun, 26 Sep 2010 19:03:21 +0000 (19:03 +0000)
git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@592 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33

52 files changed:
Makefile.mingw
Makefile.unix
README
src/dialogs/customerdlg.h
src/dialogs/eventedit.cpp
src/dialogs/eventedit.h
src/dialogs/eventsummary.h
src/dialogs/flagedit.cpp
src/dialogs/flagedit.h
src/dialogs/orderwin.cpp
src/dialogs/orderwin.h
src/dialogs/pricecatdlg.h
src/dialogs/shipping.cpp
src/dialogs/shipping.h
src/iface/msinterface.h
src/libs.pri
src/misc/misc.cpp
src/misc/sclock.cpp
src/mwin/carttab.h
src/mwin/eventstab.cpp
src/mwin/orderstab.cpp
src/mwin/overview.cpp
src/templates/odtrender.cpp
src/templates/ticketrender.cpp
src/wext/MOAddress [new file with mode: 0644]
src/wext/MOCustomer [new file with mode: 0644]
src/wext/MOCustomerInfo [new file with mode: 0644]
src/wext/MOEvent [new file with mode: 0644]
src/wext/MOOrder [new file with mode: 0644]
src/wext/MOOrderInfo [new file with mode: 0644]
src/wext/MORole [new file with mode: 0644]
src/wext/MOTicket [new file with mode: 0644]
src/wext/MOVoucher [new file with mode: 0644]
src/wext/MTransaction [new file with mode: 0644]
src/wext/address.cpp [moved from src/wext/MOAddress.cpp with 97% similarity]
src/wext/address.h [moved from src/wext/MOAddress.h with 95% similarity]
src/wext/customer.cpp [moved from src/wext/MOCustomer.cpp with 94% similarity]
src/wext/customer.h [moved from src/wext/MOCustomer.h with 96% similarity]
src/wext/customerinfo.cpp [moved from src/wext/MOCustomerInfo.cpp with 94% similarity]
src/wext/customerinfo.h [moved from src/wext/MOCustomerInfo.h with 94% similarity]
src/wext/event.cpp [moved from src/wext/MOEvent.cpp with 97% similarity]
src/wext/event.h [moved from src/wext/MOEvent.h with 97% similarity]
src/wext/order.cpp [moved from src/wext/MOOrder.cpp with 99% similarity]
src/wext/order.h [moved from src/wext/MOOrder.h with 98% similarity]
src/wext/orderinfo.h [moved from src/wext/MOOrderInfo.h with 96% similarity]
src/wext/role.h [moved from src/wext/MORole.h with 91% similarity]
src/wext/ticket.cpp [moved from src/wext/MOTicket.cpp with 97% similarity]
src/wext/ticket.h [moved from src/wext/MOTicket.h with 95% similarity]
src/wext/transaction.cpp [moved from src/wext/MTransaction.cpp with 95% similarity]
src/wext/transaction.h [moved from src/wext/MTransaction.h with 96% similarity]
src/wext/voucher.h [moved from src/wext/MOVoucher.h with 96% similarity]
src/wext/wext.pri

index bc09d08..da785e6 100644 (file)
@@ -50,8 +50,8 @@ client: wob zip qwbase tzone
        cd src && $(MAKE)
 
 zip:
-       cd zip && $(QMAKE) $(QOPT)
-       cd zip && $(MAKE)
+       cd zip/src && $(QMAKE) $(QOPT)
+       cd zip/src && $(MAKE)
 
 qwbase:
        cd pack/qtbase && $(QMAKE) $(QOPT)
index 3527525..13e9e86 100644 (file)
@@ -47,7 +47,7 @@ client: wob zip wbase tzone
        cd src ; $(QMAKE) && $(MAKE)
 
 zip:
-       cd zip ; $(QMAKE) && $(MAKE)
+       cd zip/src ; $(QMAKE) && $(MAKE)
 
 tzone:
        cd tzone ; $(QMAKE) && $(MAKE)
diff --git a/README b/README
index 7e1eb8c..21e8a47 100644 (file)
--- a/README
+++ b/README
@@ -17,9 +17,13 @@ See the Debian README for server installation.
 Copyrights
 -----------
 
+MagicSmoke itself is copyrighted by
 (c) Konrad Rosenbaum, 2007-2010
 (c) Peter Keller, 2007/8
 
+There are several external sources that are used by MagicSmoke, which are 
+(partly or wholly) under different copyrights, see below.
+
 Documenation License
 - - - - - - - - - - -
 
index 88775a6..6a5dacf 100644 (file)
@@ -20,8 +20,8 @@
 #include <QList>
 #include <QScrollArea>
 
-#include "MOCustomerInfo.h"
-#include "MOCustomer.h"
+#include "MOCustomerInfo"
+#include "MOCustomer"
 
 class QLineEdit;
 class QListView;
index 9a145f1..f45367a 100644 (file)
@@ -12,7 +12,7 @@
 
 #include "eventedit.h"
 
-#include "tzdata.h"
+#include <TimeStamp>
 
 #include <QBoxLayout>
 #include <QCheckBox>
@@ -32,7 +32,7 @@
 #include <QTimer>
 
 #include "msinterface.h"
-#include "MTGetEvent.h"
+#include "MTGetEvent"
 #include "centbox.h"
 #include "pricecatdlg.h"
 
index befb253..bf460ea 100644 (file)
@@ -15,7 +15,7 @@
 
 #include <QDialog>
 
-#include "MOEvent.h"
+#include "MOEvent"
 
 class QCheckBox;
 class QDateTime;
index 394297d..a788a5f 100644 (file)
@@ -16,8 +16,8 @@
 #include <QDialog>
 #include <QMap>
 
-#include "MOOrder.h"
-#include "MOEvent.h"
+#include "MOOrder"
+#include "MOEvent"
 #include "odtrender.h"
 
 class QTableView;
index 4fb2a24..4ab2085 100644 (file)
@@ -11,7 +11,7 @@
 //
 
 #include "flagedit.h"
-#include "MTGetValidFlags.h"
+#include "MTGetValidFlags"
 
 #include <QBoxLayout>
 #include <QComboBox>
index e61a18d..e501483 100644 (file)
@@ -16,7 +16,7 @@
 #include <QDialog>
 #include <QStringList>
 
-#include "MOFlag.h"
+#include "MOFlag"
 
 class QStandardItemModel;
 class QTableView;
index 184848f..5997f57 100644 (file)
@@ -19,7 +19,7 @@
 #include "msinterface.h"
 #include "templates.h"
 
-#include "MOEvent.h"
+#include "MOEvent"
 
 #include <QApplication>
 #include <QBoxLayout>
index a846756..dd4881a 100644 (file)
@@ -17,8 +17,8 @@
 #include <QMainWindow>
 #include "odtrender.h"
 
-#include "MOOrder.h"
-#include "MOShipping.h"
+#include "MOOrder"
+#include "MOShipping"
 
 class QAction;
 class QLabel;
index 37e3a95..8012dbe 100644 (file)
@@ -15,7 +15,7 @@
 
 #include <QDialog>
 
-#include "MOPriceCategory.h"
+#include "MOPriceCategory"
 
 class QListWidget;
 
index 86e3767..60197f9 100644 (file)
@@ -15,7 +15,7 @@
 #include "centbox.h"
 #include "flagedit.h"
 
-#include "MOShipping.h"
+#include "MOShipping"
 
 #include "msinterface.h"
 
index 58815aa..e689a97 100644 (file)
@@ -19,7 +19,7 @@
 class QStandardItemModel;
 class QTableView;
 
-#include "MOShipping.h"
+#include "MOShipping"
 
 class MShippingEditor:public QDialog
 {
index dbe0b19..5fa9929 100644 (file)
@@ -13,7 +13,7 @@
 #ifndef MAGICSMOKE_MSINTERFACE_H
 #define MAGICSMOKE_MSINTERFACE_H
 
-#include "MInterface.h"
+#include "MInterface"
 
 #define req (MSInterface::instance())
 
index 56c723c..cba5f01 100644 (file)
@@ -1,4 +1,13 @@
 # Libraries for Magic Smoke by (c) Konrad Rosenbaum, 2007-2010
 
-LIBS += -L../zip -lzip -L../pack/qtbase -lqwbase -L../tzone -ltzdata
-INCLUDEPATH += ../zip ../pack/qtbase ../tzone
+# ZIP library
+LIBS += -L../zip -lQZip
+INCLUDEPATH += ../zip/include
+
+# PACK library
+LIBS += -L../pack/qtbase -lqwbase
+INCLUDEPATH += ../pack/qtbase/include
+
+# Time Zone DB library
+LIBS += -L../tzone -ltzdata
+INCLUDEPATH += ../tzone/include
index a2829f8..71b1798 100644 (file)
 
 #include "misc.h"
 
-#include <tzdata.h>
+#include <TimeStamp>
 
 #include <math.h>
 
-#include "MOServerFormat.h"
+#include "MOServerFormat"
 
 #include <QCoreApplication>
 #include <QDateTime>
index 611d390..c383afb 100644 (file)
@@ -23,7 +23,7 @@
 #include <QTimer>
 #include <QBoxLayout>
 
-#include "tzdata.h"
+#include <TimeStamp>
 #include "misc.h"
 
 MServerClock::MServerClock()
index 384114a..8006db3 100644 (file)
@@ -19,7 +19,7 @@
 #include <QMainWindow>
 #include <QTimer>
 
-#include "MOCustomer.h"
+#include "MOCustomer"
 
 class QAction;
 class QCheckBox;
index 51f9ceb..a21ce9e 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "eventstab.h"
 
-#include "tzdata.h"
+#include <TimeStamp>
 
 #include <QApplication>
 #include <QBoxLayout>
index 4379753..9f1ce17 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "orderstab.h"
 
-#include "tzdata.h"
+#include <TimeStamp>
 
 #include <QBoxLayout>
 #include <QComboBox>
index dc044c4..365f2e9 100644 (file)
@@ -26,7 +26,8 @@
 
 #include "centbox.h"
 #include "sclock.h"
-#include "tzdata.h"
+
+#include <TimeStamp>
 
 #include <QBoxLayout>
 #include <QCheckBox>
index b5934a6..3d6d734 100644 (file)
@@ -20,8 +20,8 @@
 #include <QSettings>
 #include <QTemporaryFile>
 
-#include "qunzip.h"
-#include "qzip.h"
+#include "QUnZip"
+#include "QZip"
 
 
 class MOdtRendererPrivate
index d637661..f0ed150 100644 (file)
@@ -30,8 +30,8 @@
 #include "qzip.h"
 #include "code39.h"
 
-#include "MOTicket.h"
-#include "MOVoucher.h"
+#include "MOTicket"
+#include "MOVoucher"
 
 
 class MLabelRendererPrivate
diff --git a/src/wext/MOAddress b/src/wext/MOAddress
new file mode 100644 (file)
index 0000000..d85f82c
--- /dev/null
@@ -0,0 +1 @@
+#include"address.h"
diff --git a/src/wext/MOCustomer b/src/wext/MOCustomer
new file mode 100644 (file)
index 0000000..396763a
--- /dev/null
@@ -0,0 +1 @@
+#include"customer.h"
diff --git a/src/wext/MOCustomerInfo b/src/wext/MOCustomerInfo
new file mode 100644 (file)
index 0000000..468bee4
--- /dev/null
@@ -0,0 +1 @@
+#include"customerinfo.h"
diff --git a/src/wext/MOEvent b/src/wext/MOEvent
new file mode 100644 (file)
index 0000000..0da8fbb
--- /dev/null
@@ -0,0 +1 @@
+#include"event.h"
diff --git a/src/wext/MOOrder b/src/wext/MOOrder
new file mode 100644 (file)
index 0000000..4222ffc
--- /dev/null
@@ -0,0 +1 @@
+#include"order.h"
diff --git a/src/wext/MOOrderInfo b/src/wext/MOOrderInfo
new file mode 100644 (file)
index 0000000..61ee41e
--- /dev/null
@@ -0,0 +1 @@
+#include"orderinfo.h"
diff --git a/src/wext/MORole b/src/wext/MORole
new file mode 100644 (file)
index 0000000..9a0512e
--- /dev/null
@@ -0,0 +1 @@
+#include"role.h"
diff --git a/src/wext/MOTicket b/src/wext/MOTicket
new file mode 100644 (file)
index 0000000..056e50f
--- /dev/null
@@ -0,0 +1 @@
+#include"ticket.h"
diff --git a/src/wext/MOVoucher b/src/wext/MOVoucher
new file mode 100644 (file)
index 0000000..81cd139
--- /dev/null
@@ -0,0 +1 @@
+#include"voucher.h"
diff --git a/src/wext/MTransaction b/src/wext/MTransaction
new file mode 100644 (file)
index 0000000..1fadece
--- /dev/null
@@ -0,0 +1 @@
+#include "transaction.h"
similarity index 97%
rename from src/wext/MOAddress.cpp
rename to src/wext/address.cpp
index 9a7d8cf..e136c13 100644 (file)
@@ -10,7 +10,7 @@
 //
 //
 
-#include "MOAddress.h"
+#include "MOAddress"
 
 #include <QStringList>
 
similarity index 95%
rename from src/wext/MOAddress.h
rename to src/wext/address.h
index 8c21328..2555ac9 100644 (file)
@@ -13,7 +13,7 @@
 #ifndef MAGICSMOKE_MADDRESS_H
 #define MAGICSMOKE_MADDRESS_H
 
-#include "MOAddressAbstract.h"
+#include "MOAddressAbstract"
 
 #include <QMetaType>
 
similarity index 94%
rename from src/wext/MOCustomer.cpp
rename to src/wext/customer.cpp
index 6d487de..ea62427 100644 (file)
@@ -10,8 +10,8 @@
 //
 //
 
-#include "MOCustomer.h"
-#include "MOCustomerInfo.h"
+#include "MOCustomer"
+#include "MOCustomerInfo"
 #include "msinterface.h"
 
 MOCustomer::MOCustomer(qint64 i)
similarity index 96%
rename from src/wext/MOCustomer.h
rename to src/wext/customer.h
index bde3b20..c671e90 100644 (file)
@@ -13,7 +13,7 @@
 #ifndef MAGICSMOKE_MOCUSTOMER_H
 #define MAGICSMOKE_MOCUSTOMER_H
 
-#include "MOCustomerAbstract.h"
+#include "MOCustomerAbstract"
 
 class MOCustomerInfo;
 
similarity index 94%
rename from src/wext/MOCustomerInfo.cpp
rename to src/wext/customerinfo.cpp
index 336d1a2..1640591 100644 (file)
@@ -10,7 +10,7 @@
 //
 //
 
-#include "MOCustomerInfo.h"
+#include "MOCustomerInfo"
 
 QString MOCustomerInfo::fullName()const
 {
similarity index 94%
rename from src/wext/MOCustomerInfo.h
rename to src/wext/customerinfo.h
index 76b8900..9f2199d 100644 (file)
@@ -13,7 +13,7 @@
 #ifndef MAGICSMOKE_MOCUSTOMERI_H
 #define MAGICSMOKE_MOCUSTOMERI_H
 
-#include "MOCustomerInfoAbstract.h"
+#include "MOCustomerInfoAbstract"
 class MOCustomerInfo:public MOCustomerInfoAbstract
 {
        WOBJECT(MOCustomerInfo);
similarity index 97%
rename from src/wext/MOEvent.cpp
rename to src/wext/event.cpp
index 1e858b6..f24f234 100644 (file)
@@ -10,7 +10,7 @@
 //
 //
 
-#include "MOEvent.h"
+#include "MOEvent"
 
 #include <QCoreApplication>
 #include <QRegExp>
similarity index 97%
rename from src/wext/MOEvent.h
rename to src/wext/event.h
index 3abc028..8b00584 100644 (file)
@@ -14,7 +14,7 @@
 #define EVENT_H
 
 #include <QString>
-#include <MOEventAbstract.h>
+#include <MOEventAbstract>
 
 /**encapsulation of an event, this class wraps the auto-generated event class to provide some convenience methods*/
 class MOEvent:public MOEventAbstract
similarity index 99%
rename from src/wext/MOOrder.cpp
rename to src/wext/order.cpp
index 75d010c..7a3c32e 100644 (file)
@@ -10,7 +10,7 @@
 //
 //
 
-#include "MOOrder.h"
+#include "MOOrder"
 
 #include "msinterface.h"
 
similarity index 98%
rename from src/wext/MOOrder.h
rename to src/wext/order.h
index 2f6f467..af0b3b9 100644 (file)
 #ifndef MAGICSMOKE_MOORDER_H
 #define MAGICSMOKE_MOORDER_H
 
-#include "MOOrderAbstract.h"
+#include "MOOrderAbstract"
 #include "misc.h"
 
-#include "tzdata.h"
+#include <TimeStamp>
 
 /**this class represents a complete order*/
 class MOOrder:public MOOrderAbstract
similarity index 96%
rename from src/wext/MOOrderInfo.h
rename to src/wext/orderinfo.h
index a033669..6b658d5 100644 (file)
@@ -13,7 +13,7 @@
 #ifndef MAGICSMOKE_MOORDERI_H
 #define MAGICSMOKE_MOORDERI_H
 
-#include "MOOrderInfoAbstract.h"
+#include "MOOrderInfoAbstract"
 #include "misc.h"
 
 class MOOrderInfo:public MOOrderInfoAbstract
similarity index 91%
rename from src/wext/MORole.h
rename to src/wext/role.h
index ac961a5..6c5e012 100644 (file)
@@ -13,7 +13,7 @@
 #ifndef MAGICSMOKE_MOROLE_H
 #define MAGICSMOKE_MOROLE_H
 
-#include "MORoleAbstract.h"
+#include "MORoleAbstract"
 typedef MORoleAbstract MORole;
 
 #endif
\ No newline at end of file
similarity index 97%
rename from src/wext/MOTicket.cpp
rename to src/wext/ticket.cpp
index c3e4bf1..1bf75e3 100644 (file)
@@ -10,7 +10,7 @@
 //
 //
 
-#include "MOTicket.h"
+#include "MOTicket"
 #include "msinterface.h"
 
 MOEvent MOTicket::event()const
similarity index 95%
rename from src/wext/MOTicket.h
rename to src/wext/ticket.h
index 2136d76..34ab3bd 100644 (file)
@@ -13,9 +13,9 @@
 #ifndef MAGICSMOKE_MOTICKET_H
 #define MAGICSMOKE_MOTICKET_H
 
-#include "MOTicketAbstract.h"
+#include "MOTicketAbstract"
 #include "misc.h"
-#include "MOEvent.h"
+#include "MOEvent"
 
 class MOTicket:public MOTicketAbstract
 {
similarity index 95%
rename from src/wext/MTransaction.cpp
rename to src/wext/transaction.cpp
index 482abd2..80da582 100644 (file)
@@ -10,7 +10,7 @@
 //
 //
 
-#include "MTransaction.h"
+#include "MTransaction"
 #include "waitcursor.h"
 
 QByteArray MTransaction::executeQuery(QString hreq,QByteArray data)
similarity index 96%
rename from src/wext/MTransaction.h
rename to src/wext/transaction.h
index c90705c..fd244c9 100644 (file)
@@ -13,7 +13,7 @@
 #ifndef MSMOKE_MTRANSACTION_H
 #define MSMOKE_MTRANSACTION_H
 
-#include "WTransaction.h"
+#include <WTransaction>
 
 class MTransaction:public WTransaction{
        protected:
similarity index 96%
rename from src/wext/MOVoucher.h
rename to src/wext/voucher.h
index 4971f1f..620684d 100644 (file)
@@ -13,7 +13,7 @@
 #ifndef MAGICSMOKE_MOVOUCHER_H
 #define MAGICSMOKE_MOVOUCHER_H
 
-#include "MOVoucherAbstract.h"
+#include "MOVoucherAbstract"
 #include "misc.h"
 
 class MOVoucher:public MOVoucherAbstract
index 910210d..2e5b9a3 100644 (file)
@@ -1,21 +1,21 @@
 INCLUDEPATH += ./wext
 
 HEADERS += \
-       wext/MOCustomerInfo.h \
-       wext/MOOrder.h \
-       wext/MOOrderInfo.h \
-       wext/MORole.h \
-       wext/MOTicket.h \
-       wext/MOAddress.h \
-       wext/MOEvent.h \
-       wext/MOCustomer.h \
-       wext/MTransaction.h
+       wext/customerinfo.h \
+       wext/order.h \
+       wext/orderinfo.h \
+       wext/role.h \
+       wext/ticket.h \
+       wext/address.h \
+       wext/event.h \
+       wext/customer.h \
+       wext/transaction.h
 
 SOURCES += \
-       wext/MOCustomerInfo.cpp \
-       wext/MOOrder.cpp \
-       wext/MOTicket.cpp \
-       wext/MOAddress.cpp \
-       wext/MOEvent.cpp \
-       wext/MOCustomer.cpp \
-       wext/MTransaction.cpp
+       wext/customerinfo.cpp \
+       wext/order.cpp \
+       wext/ticket.cpp \
+       wext/address.cpp \
+       wext/event.cpp \
+       wext/customer.cpp \
+       wext/transaction.cpp