add include directory
This commit is contained in:
1 parent
dc70a294ae
commit
9ec8f41770
34 files changed
+20
-40
No files matched your search
@@ -13,6 +13,11 @@ ChatDialog::ChatDialog(QWidget *parent)
|
||||
m_nick = "Tester";
|
||||
m_chatroom = "Test";
|
||||
|
||||
DigestTreeScene *scene = new DigestTreeScene();
|
||||
|
||||
treeViewer->setScene(scene);
|
||||
scene->plot();
|
||||
|
||||
connect(lineEdit, SIGNAL(returnPressed()), this, SLOT(returnPressed()));
|
||||
}
|
||||
|
||||
|
||||
+9
-4
@@ -1,5 +1,8 @@
|
||||
#ifndef CHATDIALOG_H
|
||||
#define CHATDIALOG_H
|
||||
#include <boost/function.hpp>
|
||||
#include <vector>
|
||||
#include "digesttreescene.h"
|
||||
#include "ui_chatdialog.h"
|
||||
#include "chatbuf.pb.h"
|
||||
|
||||
@@ -9,17 +12,19 @@ class ChatDialog : public QDialog, private Ui::ChatDialog
|
||||
|
||||
public:
|
||||
ChatDialog(QWidget *parent = 0);
|
||||
|
||||
public slots:
|
||||
void appendMessage(const SyncDemo::ChatMessage &msg);
|
||||
void updateTreeView();
|
||||
void processData(const std::vector<MisingDataInfo> &, SyncAppSocket *);
|
||||
|
||||
private:
|
||||
void formChatMessage(const QString &text, SyncDemo::ChatMessage &msg);
|
||||
|
||||
private slots:
|
||||
void returnPressed();
|
||||
void formChatMessage(const QString &text, SyncDemo::ChatMessage &msg);
|
||||
|
||||
private:
|
||||
QString m_nick;
|
||||
QString m_chatroom;
|
||||
QString m_prefix;
|
||||
Sync::SyncAppSocket *m_sock;
|
||||
};
|
||||
#endif
|
||||
+1
-1
@@ -25,7 +25,7 @@
|
||||
<number>6</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="DigestTreeViewer" name="treeViewer">
|
||||
<widget class="QGraphicsView" name="treeViewer">
|
||||
<property name="focusPolicy">
|
||||
<enum>Qt::NoFocus</enum>
|
||||
</property>
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
#include "digesttreeviewer.h"
|
||||
#include "digesttreescene.h"
|
||||
#include <QtGui>
|
||||
|
||||
DigestTreeViewer::DigestTreeViewer(QWidget *parent)
|
||||
: QGraphicsView(parent)
|
||||
{
|
||||
DigestTreeScene *scene = new DigestTreeScene(this);
|
||||
setScene(scene);
|
||||
scene->plot();
|
||||
scene->plot();
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
#ifndef DIGESTTREEVIEWER_H
|
||||
#define DIGESTTREEVIEWER_H
|
||||
#include <QtGui/QGraphicsView>
|
||||
|
||||
class DigestTreeViewer : public QGraphicsView
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DigestTreeViewer(QWidget *parent = 0);
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -1,12 +1,10 @@
|
||||
TEMPLATE = app
|
||||
TARGET = sync-demo
|
||||
HEADERS = chatdialog.h \
|
||||
digesttreeviewer.h \
|
||||
digesttreescene.h
|
||||
|
||||
SOURCES = main.cpp \
|
||||
chatdialog.cpp \
|
||||
digesttreeviewer.cpp \
|
||||
digesttreescene.cpp
|
||||
|
||||
FORMS = chatdialog.ui
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -94,7 +94,7 @@ def build (bld):
|
||||
'model/sync-std-name-info.cc',
|
||||
],
|
||||
use = 'BOOST BOOST_IOSTREAMS SSL TINYXML ' + ' '.join (['ns3_'+dep for dep in ['core', 'network', 'internet', 'NDNabstraction']]).upper (),
|
||||
includes = ['model', 'ns3', 'helper'],
|
||||
includes = ['include', 'include/ns3', 'helper'],
|
||||
)
|
||||
|
||||
example = bld.program (
|
||||
@@ -102,7 +102,7 @@ def build (bld):
|
||||
features=['cxx', 'cxxprogram'],
|
||||
source = ['examples/sync-example.cc'],
|
||||
use = 'sync-ns3',
|
||||
includes = ['model', 'ns3', 'helper'],
|
||||
includes = ['include', 'include/ns3', 'helper'],
|
||||
)
|
||||
|
||||
sync_eval = bld.program (
|
||||
@@ -113,7 +113,7 @@ def build (bld):
|
||||
'evaluation/sync-muc.cc',
|
||||
],
|
||||
use = 'sync-ns3',
|
||||
includes = ['model', 'ns3', 'helper'],
|
||||
includes = ['include', 'include/ns3', 'helper'],
|
||||
)
|
||||
# from waflib import Utils,Logs,Errors
|
||||
# Logs.pprint ('CYAN', program.use)
|
||||
@@ -126,11 +126,8 @@ def build (bld):
|
||||
'ccnx/sync-ccnx-wrapper.cc',
|
||||
'ccnx/sync-scheduler.cc',
|
||||
'ccnx/sync-log.cc',
|
||||
#'ccnx/sync-app-data-fetch.cc',
|
||||
#'ccnx/sync-app-data-publish.cc',
|
||||
#'ccnx/sync-app-socket-c.cc',
|
||||
'ccnx/sync-app-socket.cc',
|
||||
|
||||
'model/sync-diff-leaf.cc',
|
||||
'model/sync-diff-state.cc',
|
||||
'model/sync-digest.cc',
|
||||
@@ -145,7 +142,7 @@ def build (bld):
|
||||
'model/sync-std-name-info.cc',
|
||||
],
|
||||
use = 'BOOST BOOST_IOSTREAMS BOOST_THREAD SSL TINYXML CCNX',
|
||||
includes = ['model', 'ccnx', 'helper'],
|
||||
includes = ['include', 'helper'],
|
||||
)
|
||||
|
||||
# Unit tests
|
||||
@@ -155,7 +152,7 @@ def build (bld):
|
||||
source = bld.path.ant_glob(['test/**/*.cc']),
|
||||
features=['cxx', 'cxxprogram'],
|
||||
use = 'BOOST_TEST sync',
|
||||
includes = ['model', 'ccnx', 'helper'],
|
||||
includes = ['include', 'helper'],
|
||||
)
|
||||
|
||||
if bld.get_define ("HAVE_LOG4CXX"):
|
||||
|
||||
Reference in new issue
Block a user