Initial implementation of XmlUtil. Completed XmlPaperParser.
This commit is contained in:
@@ -34,14 +34,17 @@ include (${QT_USE_FILE})
|
||||
|
||||
|
||||
include_directories (
|
||||
${glabels_qt_SOURCE_DIR}
|
||||
)
|
||||
|
||||
link_directories (
|
||||
${glabels_qt_SOURCE_DIR}/libglabels
|
||||
)
|
||||
|
||||
add_executable (glabels-qt ${glabels_sources} ${glabels_moc_sources} ${glabels_qrc_sources})
|
||||
|
||||
target_link_libraries (glabels-qt
|
||||
libglabels
|
||||
${QT_LIBRARIES}
|
||||
)
|
||||
|
||||
|
||||
@@ -22,9 +22,14 @@
|
||||
#include <QApplication>
|
||||
|
||||
#include "MainWindow.h"
|
||||
#include "libglabels/Db.h"
|
||||
|
||||
////// TEMPORARY TESTING ////////
|
||||
#include "libglabels/XmlPaperParser.h"
|
||||
/////////////////////////////////
|
||||
|
||||
using namespace gLabels;
|
||||
using namespace libglabels;
|
||||
|
||||
|
||||
int main( int argc, char **argv )
|
||||
@@ -35,6 +40,13 @@ int main( int argc, char **argv )
|
||||
QCoreApplication::setOrganizationDomain( "glabels.org" );
|
||||
QCoreApplication::setApplicationName( "glabels-qt" );
|
||||
|
||||
Db::init();
|
||||
////// TEMPORARY TESTING ////////
|
||||
XmlPaperParser parser;
|
||||
parser.readFile( "/usr/local/share/libglabels-3.0/templates/paper-sizes.xml" );
|
||||
Db::printKnownPapers();
|
||||
/////////////////////////////////
|
||||
|
||||
MainWindow mainWin;
|
||||
mainWin.show();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user