Add application icon to TraceAnalyzer and add an about dialog.
This commit is contained in:
@@ -113,6 +113,8 @@ add_executable(TraceAnalyzer
|
||||
scripts/vcdExport.py
|
||||
scripts/sonification.pl
|
||||
scripts/dataExtractForNN.pl
|
||||
|
||||
resources.qrc
|
||||
)
|
||||
|
||||
target_include_directories(TraceAnalyzer
|
||||
|
||||
126
DRAMSys/traceAnalyzer/icon.svg
Normal file
126
DRAMSys/traceAnalyzer/icon.svg
Normal file
@@ -0,0 +1,126 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
version="1.1"
|
||||
width="132"
|
||||
height="132"
|
||||
id="svg2"
|
||||
inkscape:version="0.92.1 r15371"
|
||||
sodipodi:docname="icon.svg"
|
||||
viewBox="0 0 132 132">
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1137"
|
||||
id="namedview37"
|
||||
showgrid="false"
|
||||
inkscape:zoom="2.600739"
|
||||
inkscape:cx="66.000744"
|
||||
inkscape:cy="106.85864"
|
||||
inkscape:window-x="1912"
|
||||
inkscape:window-y="-8"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg2"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0"
|
||||
showguides="true"
|
||||
inkscape:guide-bbox="true"
|
||||
inkscape:document-units="px"
|
||||
inkscape:document-rotation="0" />
|
||||
<defs
|
||||
id="defs4" />
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
transform="translate(-39.832809,-234.78106)"
|
||||
id="g4392">
|
||||
<rect
|
||||
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none"
|
||||
id="rect4395"
|
||||
y="234.78108"
|
||||
x="39.832809"
|
||||
height="40"
|
||||
width="40" />
|
||||
<rect
|
||||
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none"
|
||||
id="rect4397"
|
||||
y="234.78108"
|
||||
x="85.832809"
|
||||
height="40"
|
||||
width="40" />
|
||||
<rect
|
||||
style="fill:#2d5016;fill-opacity:1;fill-rule:evenodd;stroke:none"
|
||||
id="rect4399"
|
||||
y="234.78108"
|
||||
x="131.83281"
|
||||
height="40"
|
||||
width="40" />
|
||||
<rect
|
||||
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none"
|
||||
id="rect4401"
|
||||
y="280.78107"
|
||||
x="39.832809"
|
||||
height="40"
|
||||
width="40" />
|
||||
<rect
|
||||
style="fill:#2d5016;fill-opacity:1;fill-rule:evenodd;stroke:none"
|
||||
id="rect4403"
|
||||
y="280.78107"
|
||||
x="85.832809"
|
||||
height="40"
|
||||
width="40" />
|
||||
<rect
|
||||
style="fill:#338000;fill-opacity:1;fill-rule:evenodd;stroke:none"
|
||||
id="rect4405"
|
||||
y="280.78107"
|
||||
x="131.83281"
|
||||
height="40"
|
||||
width="40" />
|
||||
<rect
|
||||
style="fill:#2d5016;fill-opacity:1;fill-rule:evenodd;stroke:none"
|
||||
id="rect4407"
|
||||
y="326.78107"
|
||||
x="39.832809"
|
||||
height="40"
|
||||
width="40" />
|
||||
<rect
|
||||
style="fill:#338000;fill-opacity:1;fill-rule:evenodd;stroke:none"
|
||||
id="rect4409"
|
||||
y="326.78107"
|
||||
x="85.832809"
|
||||
height="40"
|
||||
width="40" />
|
||||
<rect
|
||||
style="fill:#71c837;fill-opacity:1;fill-rule:evenodd;stroke:none"
|
||||
id="rect4411"
|
||||
y="326.78107"
|
||||
x="131.83281"
|
||||
height="40"
|
||||
width="40" />
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.4 KiB |
@@ -36,20 +36,24 @@
|
||||
*/
|
||||
|
||||
#include "traceanalyzer.h"
|
||||
#include <QApplication>
|
||||
#include <QString>
|
||||
#include <QSet>
|
||||
#include <iostream>
|
||||
|
||||
#include <QApplication>
|
||||
#include <QFileDialog>
|
||||
#include <QFileInfo>
|
||||
using namespace std;
|
||||
#include <QSet>
|
||||
#include <QString>
|
||||
#include <iostream>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
cout << argv[0] << std::endl;
|
||||
std::cout << argv[0] << std::endl;
|
||||
QApplication a(argc, argv);
|
||||
|
||||
QIcon icon(QStringLiteral(":/icon"));
|
||||
a.setWindowIcon(icon);
|
||||
a.setApplicationName(QStringLiteral("TraceAnalyzer"));
|
||||
a.setApplicationDisplayName(QStringLiteral("Trace Analyzer"));
|
||||
|
||||
if (argc > 1) {
|
||||
QSet<QString> arguments;
|
||||
for (int i = 1; i < argc; ++i)
|
||||
|
||||
5
DRAMSys/traceAnalyzer/resources.qrc
Normal file
5
DRAMSys/traceAnalyzer/resources.qrc
Normal file
@@ -0,0 +1,5 @@
|
||||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file alias="icon">icon.svg</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
@@ -37,14 +37,13 @@
|
||||
*/
|
||||
|
||||
#include "traceanalyzer.h"
|
||||
#include "QMessageBox"
|
||||
#include "tracefiletab.h"
|
||||
#include "ui_traceanalyzer.h"
|
||||
#include <QCloseEvent>
|
||||
#include <QDateTime>
|
||||
#include <QFileDialog>
|
||||
#include <QFileInfo>
|
||||
#include <iostream>
|
||||
#include <QMessageBox>
|
||||
|
||||
void TraceAnalyzer::setUpStatusBar()
|
||||
{
|
||||
@@ -258,6 +257,16 @@ void TraceAnalyzer::on_actionMetrics_triggered()
|
||||
evaluationTool.showAndEvaluateMetrics(openedTraceFiles.values());
|
||||
}
|
||||
|
||||
void TraceAnalyzer::on_actionAbout_triggered()
|
||||
{
|
||||
QMessageBox::about(
|
||||
this, QStringLiteral("DRAMSys"),
|
||||
QStringLiteral(
|
||||
"<b>DRAMSys4.0</b> is a flexible DRAM subsystem design space exploration framework based on SystemC "
|
||||
"TLM-2.0. It was developed at the <a href=\"https://ems.eit.uni-kl.de/en/start/\">Microelectronic Systems "
|
||||
"Design Research Group</a> and <a href=\"https://www.iese.fraunhofer.de/en.html\">Fraunhofer IESE</a>."));
|
||||
}
|
||||
|
||||
void TraceAnalyzer::closeEvent(QCloseEvent *event)
|
||||
{
|
||||
for (unsigned int i = 0; i < ui->traceFileTabs->count(); i++)
|
||||
|
||||
@@ -96,6 +96,7 @@ private Q_SLOTS:
|
||||
void on_actionMetrics_triggered();
|
||||
void on_actionClose_triggered();
|
||||
void on_actionClose_all_triggered();
|
||||
void on_actionAbout_triggered();
|
||||
|
||||
public Q_SLOTS:
|
||||
void statusChanged(const QString &message);
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>800</width>
|
||||
<height>36</height>
|
||||
<height>23</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuFile">
|
||||
@@ -76,7 +76,6 @@
|
||||
<property name="title">
|
||||
<string>&Help</string>
|
||||
</property>
|
||||
<addaction name="actionInfo"/>
|
||||
<addaction name="actionAbout"/>
|
||||
</widget>
|
||||
<addaction name="menuFile"/>
|
||||
@@ -134,7 +133,7 @@
|
||||
</action>
|
||||
<action name="actionAbout">
|
||||
<property name="text">
|
||||
<string>&About</string>
|
||||
<string>&About DRAMSys</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionPreferences">
|
||||
|
||||
Reference in New Issue
Block a user