Redesign UI

pull/2/head
wh201906 5 years ago
parent b2fa97ff18
commit b6be875261

@ -272,7 +272,6 @@ void MainWindow::uiInit()
for(int i = 0; i < 64; i++) for(int i = 0; i < 64; i++)
{ {
ui->MF_RW_blockBox->addItem(QString::number(i)); ui->MF_RW_blockBox->addItem(QString::number(i));
ui->MF_UID_blockBox->addItem(QString::number(i));
} }
on_Raw_CMDHistoryBox_stateChanged(Qt::Unchecked); on_Raw_CMDHistoryBox_stateChanged(Qt::Unchecked);
@ -296,9 +295,9 @@ void MainWindow::setStatusBar(QLabel* target, const QString & text)
if(target == PM3VersionBar) if(target == PM3VersionBar)
target->setText("HW Version:" + text); target->setText("HW Version:" + text);
else if(target == connectStatusBar) else if(target == connectStatusBar)
target->setText("Connecton State:" + text); target->setText("PM3:" + text);
else if(target == programStatusBar) else if(target == programStatusBar)
target->setText("Program State:" + text); target->setText("State:" + text);
} }
// *********************************************** // ***********************************************

@ -94,7 +94,7 @@
<attribute name="title"> <attribute name="title">
<string>Mifare</string> <string>Mifare</string>
</attribute> </attribute>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout_6">
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_2"> <layout class="QHBoxLayout" name="horizontalLayout_2">
<item> <item>
@ -147,6 +147,12 @@
<string>Attack</string> <string>Attack</string>
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout_5"> <layout class="QHBoxLayout" name="horizontalLayout_5">
<property name="topMargin">
<number>5</number>
</property>
<property name="bottomMargin">
<number>5</number>
</property>
<item> <item>
<spacer name="horizontalSpacer"> <spacer name="horizontalSpacer">
<property name="orientation"> <property name="orientation">
@ -162,12 +168,6 @@
</item> </item>
<item> <item>
<widget class="QPushButton" name="MF_Attack_infoButton"> <widget class="QPushButton" name="MF_Attack_infoButton">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="text"> <property name="text">
<string>Card Info</string> <string>Card Info</string>
</property> </property>
@ -181,18 +181,6 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>40</height>
</size>
</property>
<property name="text"> <property name="text">
<string>Check Default</string> <string>Check Default</string>
</property> </property>
@ -200,18 +188,6 @@
</item> </item>
<item> <item>
<widget class="QPushButton" name="MF_Attack_nestedButton"> <widget class="QPushButton" name="MF_Attack_nestedButton">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>40</height>
</size>
</property>
<property name="text"> <property name="text">
<string>Nested</string> <string>Nested</string>
</property> </property>
@ -219,18 +195,6 @@
</item> </item>
<item> <item>
<widget class="QPushButton" name="MF_Attack_hardnestedButton"> <widget class="QPushButton" name="MF_Attack_hardnestedButton">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>40</height>
</size>
</property>
<property name="text"> <property name="text">
<string>Hardnested</string> <string>Hardnested</string>
</property> </property>
@ -238,18 +202,6 @@
</item> </item>
<item> <item>
<widget class="QPushButton" name="MF_Attack_sniffButton"> <widget class="QPushButton" name="MF_Attack_sniffButton">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>40</height>
</size>
</property>
<property name="text"> <property name="text">
<string>Sniff</string> <string>Sniff</string>
</property> </property>
@ -257,18 +209,6 @@
</item> </item>
<item> <item>
<widget class="QPushButton" name="MF_Attack_listButton"> <widget class="QPushButton" name="MF_Attack_listButton">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>40</height>
</size>
</property>
<property name="text"> <property name="text">
<string>List Sniff Data</string> <string>List Sniff Data</string>
</property> </property>
@ -295,384 +235,88 @@
<property name="title"> <property name="title">
<string>Read/Write</string> <string>Read/Write</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_5"> <layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_8">
<item>
<spacer name="horizontalSpacer_8">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="MF_RW_readAllButton">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>40</height>
</size>
</property>
<property name="text">
<string>Read All</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="MF_RW_writeAllButton">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>40</height>
</size>
</property>
<property name="text">
<string>Write All</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="MF_RW_dumpButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>40</height>
</size>
</property>
<property name="text">
<string>Dump</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="MF_RW_restoreButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>40</height>
</size>
</property>
<property name="text">
<string>Restore</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_9">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_12"> <layout class="QHBoxLayout" name="horizontalLayout_12">
<item> <item>
<widget class="QLabel" name="label_4"> <layout class="QVBoxLayout" name="verticalLayout_5">
<property name="text">
<string>Block:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="MF_RW_blockBox">
<property name="minimumSize">
<size>
<width>40</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>40</width>
<height>16777215</height>
</size>
</property>
<property name="editable">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_5">
<property name="text">
<string>Key:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="MF_RW_keyEdit">
<property name="text">
<string>FFFFFFFFFFFF</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>Key Type:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="MF_RW_keyTypeBox">
<property name="minimumSize">
<size>
<width>35</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>35</width>
<height>16777215</height>
</size>
</property>
<item> <item>
<property name="text"> <widget class="QLabel" name="label_4">
<string>A</string> <property name="text">
</property> <string>Block:</string>
</property>
</widget>
</item> </item>
<item> <item>
<property name="text"> <widget class="QComboBox" name="MF_RW_blockBox">
<string>B</string> <property name="minimumSize">
</property> <size>
<width>40</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>40</width>
<height>16777215</height>
</size>
</property>
<property name="editable">
<bool>true</bool>
</property>
</widget>
</item> </item>
</widget> <item>
</item> <widget class="QLabel" name="label_5">
<item> <property name="text">
<widget class="QPushButton" name="MF_RW_readBlockButton"> <string>Key:</string>
<property name="text"> </property>
<string>Read Block</string> </widget>
</property> </item>
</widget> <item>
</item> <widget class="QLineEdit" name="MF_RW_keyEdit">
<item> <property name="text">
<widget class="QPushButton" name="MF_RW_writeBlockButton"> <string>FFFFFFFFFFFF</string>
<property name="text"> </property>
<string>Write Block</string> </widget>
</property> </item>
</widget> <item>
</item> <widget class="QLabel" name="label_3">
<item> <property name="text">
<spacer name="horizontalSpacer_10"> <string>Key Type:</string>
<property name="orientation"> </property>
<enum>Qt::Horizontal</enum> </widget>
</property> </item>
<property name="sizeHint" stdset="0"> <item>
<size> <widget class="QComboBox" name="MF_RW_keyTypeBox">
<width>40</width> <property name="minimumSize">
<height>20</height> <size>
</size> <width>35</width>
</property> <height>0</height>
</spacer> </size>
</item> </property>
</layout> <property name="maximumSize">
</item> <size>
<item> <width>35</width>
<widget class="QLineEdit" name="MF_RW_dataEdit"/> <height>16777215</height>
</item> </size>
</layout> </property>
</widget> <item>
</item> <property name="text">
<item> <string>A</string>
<widget class="QGroupBox" name="MF_UIDGroupBox"> </property>
<property name="title"> </item>
<string>Chinese Magic Card(UID Card)</string> <item>
</property> <property name="text">
<layout class="QVBoxLayout" name="verticalLayout_6"> <string>B</string>
<item> </property>
<layout class="QHBoxLayout" name="horizontalLayout_9"> </item>
<item> </widget>
<spacer name="horizontalSpacer_11"> </item>
<property name="orientation"> </layout>
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="MF_UID_readAllButton">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>40</height>
</size>
</property>
<property name="text">
<string>Read All</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="MF_UID_writeAllButton">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>40</height>
</size>
</property>
<property name="text">
<string>Write All</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="MF_UID_wipeButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>40</height>
</size>
</property>
<property name="text">
<string>Wipe</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="MF_UID_writeUIDButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>40</height>
</size>
</property>
<property name="text">
<string>Write UID</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>40</height>
</size>
</property>
<property name="text">
<string>Lock UFUID Card</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_2">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>40</height>
</size>
</property>
<property name="text">
<string>About UID Card</string>
</property>
</widget>
</item> </item>
<item> <item>
<spacer name="horizontalSpacer_12"> <spacer name="horizontalSpacer_3">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
@ -684,67 +328,165 @@
</property> </property>
</spacer> </spacer>
</item> </item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_13">
<item>
<widget class="QLabel" name="label_6">
<property name="text">
<string>Block:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="MF_UID_blockBox">
<property name="minimumSize">
<size>
<width>40</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>40</width>
<height>16777215</height>
</size>
</property>
<property name="editable">
<bool>true</bool>
</property>
</widget>
</item>
<item> <item>
<widget class="QPushButton" name="MF_UID_readBlockButton"> <widget class="QGroupBox" name="MF_NormalGroupBox">
<property name="text"> <property name="title">
<string>Read Block</string> <string>Normal(Require Password)</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout_2">
<property name="topMargin">
<number>5</number>
</property>
<property name="bottomMargin">
<number>5</number>
</property>
<property name="spacing">
<number>5</number>
</property>
<item row="2" column="0">
<widget class="QPushButton" name="MF_RW_readBlockButton">
<property name="text">
<string>Read Block</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QPushButton" name="MF_RW_writeBlockButton">
<property name="text">
<string>Write Block</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QPushButton" name="MF_RW_readAllButton">
<property name="text">
<string>Read All</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QPushButton" name="MF_RW_writeAllButton">
<property name="text">
<string>Write All</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QPushButton" name="MF_RW_dumpButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Dump</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QPushButton" name="MF_RW_restoreButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Restore</string>
</property>
</widget>
</item>
</layout>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="MF_UID_writeBlockButton"> <widget class="QGroupBox" name="MF_UIDGroupBox">
<property name="text"> <property name="title">
<string>Write Block</string> <string>Chinese Magic Card(Without Password)</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout">
<property name="topMargin">
<number>5</number>
</property>
<property name="bottomMargin">
<number>5</number>
</property>
<item row="0" column="2">
<widget class="QPushButton" name="pushButton">
<property name="text">
<string>Lock UFUID Card</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QPushButton" name="pushButton_2">
<property name="text">
<string>About UID Card</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QPushButton" name="MF_UID_readBlockButton">
<property name="text">
<string>Read Block</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QPushButton" name="MF_UID_writeBlockButton">
<property name="text">
<string>Write Block</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QPushButton" name="MF_UID_readAllButton">
<property name="text">
<string>Read All</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QPushButton" name="MF_UID_writeAllButton">
<property name="text">
<string>Write All</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QPushButton" name="MF_UID_writeUIDButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Write UID</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QPushButton" name="MF_UID_wipeButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Wipe</string>
</property>
</widget>
</item>
</layout>
</widget> </widget>
</item> </item>
<item>
<spacer name="horizontalSpacer_13">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout> </layout>
</item> </item>
<item> <item>
<widget class="QLineEdit" name="MF_UID_dataEdit"/> <widget class="QLineEdit" name="MF_RW_dataEdit"/>
</item> </item>
</layout> </layout>
</widget> </widget>
@ -755,6 +497,15 @@
<string>Simulate</string> <string>Simulate</string>
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout_11"> <layout class="QHBoxLayout" name="horizontalLayout_11">
<property name="topMargin">
<number>5</number>
</property>
<property name="rightMargin">
<number>9</number>
</property>
<property name="bottomMargin">
<number>5</number>
</property>
<item> <item>
<spacer name="horizontalSpacer_5"> <spacer name="horizontalSpacer_5">
<property name="orientation"> <property name="orientation">
@ -776,18 +527,6 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>40</height>
</size>
</property>
<property name="text"> <property name="text">
<string>Load from .eml</string> <string>Load from .eml</string>
</property> </property>
@ -795,18 +534,6 @@
</item> </item>
<item> <item>
<widget class="QPushButton" name="MF_Sim_loadDataButton"> <widget class="QPushButton" name="MF_Sim_loadDataButton">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>40</height>
</size>
</property>
<property name="text"> <property name="text">
<string>Load from data above</string> <string>Load from data above</string>
</property> </property>
@ -814,18 +541,6 @@
</item> </item>
<item> <item>
<widget class="QPushButton" name="MF_Sim_clearButton"> <widget class="QPushButton" name="MF_Sim_clearButton">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>40</height>
</size>
</property>
<property name="text"> <property name="text">
<string>Clear</string> <string>Clear</string>
</property> </property>
@ -833,18 +548,6 @@
</item> </item>
<item> <item>
<widget class="QPushButton" name="MF_Sim_simButton"> <widget class="QPushButton" name="MF_Sim_simButton">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>40</height>
</size>
</property>
<property name="text"> <property name="text">
<string>Simulate</string> <string>Simulate</string>
</property> </property>
@ -969,16 +672,6 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>787</width>
<height>22</height>
</rect>
</property>
</widget>
<widget class="QStatusBar" name="statusbar"> <widget class="QStatusBar" name="statusbar">
<property name="sizeGripEnabled"> <property name="sizeGripEnabled">
<bool>true</bool> <bool>true</bool>

Loading…
Cancel
Save