git-svn-id: svn://db.shs.com.ru/libs@557 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2019-06-22 14:55:47 +00:00
parent cff4fbed36
commit 46af39bb88
4 changed files with 326 additions and 132 deletions

View File

@@ -6,30 +6,38 @@
#include <QTime>
#include <QDesktopWidget>
#include <QDebug>
#include <emainwindow.h>
#include "piqt.h"
#include "pipeer.h"
#include "piintrospection_containers_p.h"
#include "piintrospection_threads_p.h"
#include "piintrospection_server_p.h"
class QPIIntrospector: public QMainWindow, private Ui::QPIIntrospector, public PIObject
class QPIIntrospector: public EMainWindow, private Ui::QPIIntrospector, public PIObject
{
Q_OBJECT
PIOBJECT(QPIIntrospector)
public:
QPIIntrospector(QWidget * parent = 0);
~QPIIntrospector();
protected:
void changeEvent(QEvent * e);
void timerEvent(QTimerEvent * );
void buildDumpSection(QTreeWidgetItem * pi, PIString & str);
void showInfo(const PIIntrospection::ProcessInfo & info);
void showContainers(const PIMap<uint, PIIntrospectionContainers::Type> & data, const PIMap<uint, PIString> & typenames);
void showObjects(const PIVector<PIIntrospection::ObjectInfo> & objects);
EVENT_HANDLER(void, reqProcPIEvents) {QMetaObject::invokeMethod(this, "procPIEvents", Qt::QueuedConnection);}
EVENT_HANDLER2(void, peerReceived, const PIString &, from, const PIByteArray &, data);
EVENT_HANDLER1(void, peersChanged, const PIString &, name);
PIString cur_server;
PIPeer peer;
private slots:
void procPIEvents() {callQueuedEvents();}
void buildTree(QByteArray d);
void on_listApp_currentRowChanged(int r);