##// END OF EJS Templates
GUI improvments
Jeandet Alexis -
r8:c57c8cceddbf default
parent child
Show More
@@ -1,2 +1,2
1 76535b5137d73f47f7eb79386dbdea3523817bc8 genericBinaryFiles
1 e0f25227d6283e833fbb70c5fc1bdc6c3ca8060e genericBinaryFiles
2 2 a4274329c9f05c742b3eb9753e77c47d27e838e9 qhexedit
@@ -1,74 +1,76
1 1 #-------------------------------------------------
2 2 #
3 3 # Project created by QtCreator 2014-06-18T00:07:59
4 4 #
5 5 #-------------------------------------------------
6 6
7 7 QT += core gui
8 8
9 9 greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
10 10
11 11 TARGET = execut
12 12 TEMPLATE = app
13 13 MOC_DIR = moc
14 14 RCC_DIR = resources
15 15 OBJECTS_DIR = obj
16 16
17 17 win32:CONFIG += dll
18 18 win32:CONFIG -= static
19 19
20 20 win32:INCLUDEPATH += $${PWD}/genericBinaryFiles/elf/libelfWin32/include
21 21 win32:INCLUDEPATH += $${PWD}/genericBinaryFiles/elf/libelfWin32/include/libelf
22 22 win32:DEFINES+=_ELF_WINDOWS_
23 23 DEFINES+=RS232_debug
24 24 INCLUDEPATH += qhexedit genericBinaryFiles genericBinaryFiles/srec genericBinaryFiles/BinFile
25 25
26 26
27 27 win32:LIBS += $${PWD}/genericBinaryFiles/elf/libelfWin32/bin/libelf.a
28 28 unix:LIBS += -lelf
29 29
30 30 SOURCES += main.cpp\
31 31 mainwindow.cpp \
32 32 qhexedit/qhexedit_p.cpp \
33 33 qhexedit/qhexedit.cpp \
34 34 qhexedit/xbytearray.cpp \
35 35 qhexedit/commands.cpp \
36 36 genericBinaryFiles/elf/elfinfowdgt.cpp \
37 37 genericBinaryFiles/elf/elfparser.cpp \
38 38 genericBinaryFiles/elf/elffile.cpp \
39 39 genericBinaryFiles/elf/elffilewidget.cpp \
40 40 genericBinaryFiles/srec/srecfile.cpp \
41 41 genericBinaryFiles/srec/srecfilewidget.cpp \
42 42 genericBinaryFiles/abstractbinfile.cpp \
43 43 genericBinaryFiles/BinFile/binaryfile.cpp \
44 44 genericBinaryFiles/BinFile/binaryfilewidget.cpp \
45 45 genericBinaryFiles/genericbinaryfilewidget.cpp \
46 46 genericBinaryFiles/qtablewidgetintitem.cpp \
47 genericBinaryFiles/filelist.cpp
47 genericBinaryFiles/filelist.cpp \
48 genericBinaryFiles/qvpushbutton.cpp
48 49
49 50 HEADERS += mainwindow.h \
50 51 qhexedit/qhexedit_p.h \
51 52 qhexedit/qhexedit.h \
52 53 qhexedit/xbytearray.h \
53 54 qhexedit/commands.h \
54 55 genericBinaryFiles/elf/elfinfowdgt.h \
55 56 genericBinaryFiles/elf/elfparser.h \
56 57 genericBinaryFiles/elf/elffile.h \
57 58 genericBinaryFiles/elf/elffilewidget.h \
58 59 genericBinaryFiles/srec/srecfile.h \
59 60 genericBinaryFiles/srec/srecfilewidget.h \
60 61 genericBinaryFiles/abstractbinfile.h \
61 62 genericBinaryFiles/BinFile/binaryfile.h \
62 63 genericBinaryFiles/BinFile/binaryfilewidget.h \
63 64 genericBinaryFiles/genericbinaryfilewidget.h \
64 65 genericBinaryFiles/qtablewidgetintitem.h \
65 genericBinaryFiles/filelist.h
66 genericBinaryFiles/filelist.h \
67 genericBinaryFiles/qvpushbutton.h
66 68
67 69 FORMS += mainwindow.ui \
68 70 genericBinaryFiles/elf/elffilewidget.ui \
69 71 genericBinaryFiles/srec/srecfilewidget.ui \
70 72 genericBinaryFiles/BinFile/binaryfilewidget.ui \
71 73 genericBinaryFiles/genericbinaryfilewidget.ui
72 74
73 75 RESOURCES += \
74 76 genericBinaryFiles/genericBinaryFiles.qrc
@@ -1,27 +1,29
1 1 #include "mainwindow.h"
2 2 #include "ui_mainwindow.h"
3 3
4 4 MainWindow::MainWindow(QWidget *parent) :
5 5 QMainWindow(parent),
6 6 ui(new Ui::MainWindow)
7 7 {
8 8 ui->setupUi(this);
9 qApp->setStyleSheet(
10 "QGroupBox {\
9 qApp->setStyleSheet("QGroupBox {\
11 10 border: 1px solid gray;\
12 11 border-radius: 9px;\
13 12 margin-top: 0.5em;\
14 13 }\
15 14 \
16 15 QGroupBox::title {\
17 16 subcontrol-origin: margin;\
18 17 left: 10px;\
19 18 padding: 0 3px 0 3px;\
20 }\
21 ");
19 }\ ");
20 layout()->setContentsMargins(0,0,0,0);
21 connect(this->ui->actionQuit,SIGNAL(triggered()),this,SLOT(close()));
22 connect(this->ui->actionOpen,SIGNAL(triggered()),this->ui->binFileWdgt,SLOT(openFile()));
22 23 }
23 24
24 25 MainWindow::~MainWindow()
25 26 {
26 27 delete ui;
27 28 }
29
@@ -1,35 +1,64
1 1 <?xml version="1.0" encoding="UTF-8"?>
2 2 <ui version="4.0">
3 3 <class>MainWindow</class>
4 4 <widget class="QMainWindow" name="MainWindow">
5 5 <property name="geometry">
6 6 <rect>
7 7 <x>0</x>
8 8 <y>0</y>
9 9 <width>400</width>
10 10 <height>300</height>
11 11 </rect>
12 12 </property>
13 13 <property name="windowTitle">
14 14 <string>ExeCut</string>
15 15 </property>
16 16 <widget class="QWidget" name="centralWidget">
17 17 <layout class="QGridLayout" name="gridLayout">
18 18 <item row="0" column="0">
19 <widget class="genericBinaryFileWidget" name="widget" native="true"/>
19 <widget class="genericBinaryFileWidget" name="binFileWdgt" native="true"/>
20 20 </item>
21 21 </layout>
22 22 </widget>
23 <widget class="QMenuBar" name="menuBar">
24 <property name="geometry">
25 <rect>
26 <x>0</x>
27 <y>0</y>
28 <width>400</width>
29 <height>27</height>
30 </rect>
31 </property>
32 <widget class="QMenu" name="menuFile">
33 <property name="title">
34 <string>File</string>
35 </property>
36 <addaction name="actionOpen"/>
37 <addaction name="separator"/>
38 <addaction name="actionQuit"/>
39 </widget>
40 <addaction name="menuFile"/>
41 </widget>
42 <action name="actionOpen">
43 <property name="text">
44 <string>Open</string>
45 </property>
46 </action>
47 <action name="actionQuit">
48 <property name="text">
49 <string>Quit</string>
50 </property>
51 </action>
23 52 </widget>
24 53 <layoutdefault spacing="6" margin="11"/>
25 54 <customwidgets>
26 55 <customwidget>
27 56 <class>genericBinaryFileWidget</class>
28 57 <extends>QWidget</extends>
29 58 <header location="global">genericbinaryfilewidget.h</header>
30 59 <container>1</container>
31 60 </customwidget>
32 61 </customwidgets>
33 62 <resources/>
34 63 <connections/>
35 64 </ui>
General Comments 0
You need to be logged in to leave comments. Login now