git-svn-id: svn://db.shs.com.ru/libs@82 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -34,6 +34,17 @@ if (NOT DEFINED ENV{QNX_HOST})
|
||||
set(LIBS ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${PIP_LIBRARY} qad_widgets piqt_utils)
|
||||
target_link_libraries(pidumper ${LIBS})
|
||||
|
||||
set(ICPPS "piintrospector.cpp" "piintrospector_main.cpp")
|
||||
set(IMOCS "piintrospector.h")
|
||||
set(IUIS "piintrospector.ui")
|
||||
file(GLOB IRES "*.qrc")
|
||||
qt4_wrap_cpp(ICMOCS ${IMOCS} OPTIONS -nw)
|
||||
qt4_wrap_ui(ICUIS ${IUIS})
|
||||
qt4_add_resources(IRESS ${IRES})
|
||||
add_executable(piintrospector ${ICPPS} ${ICMOCS} ${ICUIS} ${IRESS})
|
||||
set(ILIBS ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${PIP_LIBRARY} qad_widgets)
|
||||
target_link_libraries(piintrospector ${LIBS})
|
||||
|
||||
add_executable(piconnectionedit "piconnedit_main.cpp" ${RESS})
|
||||
target_link_libraries(piconnectionedit ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${PIP_LIBRARY} piqt_utils)
|
||||
endif ()
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
PIDumper::PIDumper(QWidget * parent): QMainWindow(parent) {
|
||||
setupUi(this);
|
||||
treeDump->header()->setResizeMode(QHeaderView::ResizeToContents);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
void PIDumper::changeEvent(QEvent * e) {
|
||||
|
||||
31
piqt_tools/piintrospector.cpp
Normal file
31
piqt_tools/piintrospector.cpp
Normal file
@@ -0,0 +1,31 @@
|
||||
#include "piintrospector.h"
|
||||
#include "pifile.h"
|
||||
#include "pitime.h"
|
||||
#include "pidir.h"
|
||||
#include <QClipboard>
|
||||
|
||||
|
||||
QPIIntrospector::QPIIntrospector(QWidget * parent): QMainWindow(parent) {
|
||||
setupUi(this);
|
||||
tree->header()->setResizeMode(QHeaderView::ResizeToContents);
|
||||
}
|
||||
|
||||
|
||||
void QPIIntrospector::changeEvent(QEvent * e) {
|
||||
QMainWindow::changeEvent(e);
|
||||
switch (e->type()) {
|
||||
case QEvent::LanguageChange:
|
||||
retranslateUi(this);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void QPIIntrospector::buildDump() {
|
||||
}
|
||||
|
||||
|
||||
void QPIIntrospector::buildDumpSection(QTreeWidgetItem * pi, PIString & str) {
|
||||
}
|
||||
30
piqt_tools/piintrospector.h
Normal file
30
piqt_tools/piintrospector.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef PIINTROSPECTOR_H
|
||||
#define PIINTROSPECTOR_H
|
||||
|
||||
#include "ui_piintrospector.h"
|
||||
#include <QImage>
|
||||
#include <QTime>
|
||||
#include <QDesktopWidget>
|
||||
#include <QDebug>
|
||||
#include "piqt.h"
|
||||
#include "piintrospection.h"
|
||||
|
||||
class QPIIntrospector: public QMainWindow, private Ui::QPIIntrospector
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
QPIIntrospector(QWidget * parent = 0);
|
||||
|
||||
protected:
|
||||
void changeEvent(QEvent * e);
|
||||
|
||||
void buildDump();
|
||||
void buildDumpSection(QTreeWidgetItem * pi, PIString & str);
|
||||
|
||||
private slots:
|
||||
|
||||
public slots:
|
||||
|
||||
};
|
||||
|
||||
#endif // PIINTROSPECTOR_H
|
||||
144
piqt_tools/piintrospector.ui
Normal file
144
piqt_tools/piintrospector.ui
Normal file
@@ -0,0 +1,144 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>QPIIntrospector</class>
|
||||
<widget class="QMainWindow" name="QPIIntrospector">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>923</width>
|
||||
<height>661</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>PIP introspector</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralwidget">
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>9</x>
|
||||
<y>9</y>
|
||||
<width>273</width>
|
||||
<height>225</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Select application</string>
|
||||
</property>
|
||||
<widget class="QListWidget" name="listApp">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>23</y>
|
||||
<width>253</width>
|
||||
<height>192</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="editTriggers">
|
||||
<set>QAbstractItemView::NoEditTriggers</set>
|
||||
</property>
|
||||
<property name="verticalScrollMode">
|
||||
<enum>QAbstractItemView::ScrollPerPixel</enum>
|
||||
</property>
|
||||
<property name="horizontalScrollMode">
|
||||
<enum>QAbstractItemView::ScrollPerPixel</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QTreeWidget" name="tree">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>330</x>
|
||||
<y>100</y>
|
||||
<width>254</width>
|
||||
<height>225</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="editTriggers">
|
||||
<set>QAbstractItemView::NoEditTriggers</set>
|
||||
</property>
|
||||
<property name="verticalScrollMode">
|
||||
<enum>QAbstractItemView::ScrollPerPixel</enum>
|
||||
</property>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</column>
|
||||
</widget>
|
||||
<widget class="QGroupBox" name="groupBox_2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>320</x>
|
||||
<y>10</y>
|
||||
<width>79</width>
|
||||
<height>84</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Containers</string>
|
||||
</property>
|
||||
<layout class="QFormLayout" name="formLayout">
|
||||
<property name="fieldGrowthPolicy">
|
||||
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
|
||||
</property>
|
||||
<property name="rowWrapPolicy">
|
||||
<enum>QFormLayout::DontWrapRows</enum>
|
||||
</property>
|
||||
<property name="labelAlignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>count:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLabel" name="labelCount">
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>allocated:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QLabel" name="labelAlloc">
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>used:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QLabel" name="labelUsed">
|
||||
<property name="text">
|
||||
<string>0</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
<slots>
|
||||
<slot>configChanged()</slot>
|
||||
<slot>updateMap()</slot>
|
||||
</slots>
|
||||
</ui>
|
||||
10
piqt_tools/piintrospector_main.cpp
Normal file
10
piqt_tools/piintrospector_main.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <QApplication>
|
||||
#include "piintrospector.h"
|
||||
|
||||
|
||||
int main(int argc, char * argv[]) {
|
||||
QApplication a(argc, argv);
|
||||
//QPIIntrospector w;
|
||||
//w.show();
|
||||
return a.exec();
|
||||
}
|
||||
Reference in New Issue
Block a user