summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-08-31 21:52:56 +0200
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-08-31 21:52:56 +0200
commit0486c639b945726b9272917f0224a7a42e958740 (patch)
tree00ac64b33c39c59a49a0348f6d42098edaf0462f
parent063ebad233e79f6ac8689f1209105a8564da4832 (diff)
downloadsrc-0486c639b945726b9272917f0224a7a42e958740.tar.gz
src-0486c639b945726b9272917f0224a7a42e958740.zip
Füge PasswordDialog hinzu und baue erste UI
-rw-r--r--CryptLog.pro9
-rw-r--r--mainwindow.ui138
-rw-r--r--passworddialog.cpp14
-rw-r--r--passworddialog.h22
-rw-r--r--passworddialog.ui99
5 files changed, 270 insertions, 12 deletions
diff --git a/CryptLog.pro b/CryptLog.pro
index 5b7fdbc..4171de1 100644
--- a/CryptLog.pro
+++ b/CryptLog.pro
@@ -13,8 +13,11 @@ TEMPLATE = app
SOURCES += main.cpp\
- mainwindow.cpp
+ mainwindow.cpp \
+ passworddialog.cpp
-HEADERS += mainwindow.h
+HEADERS += mainwindow.h \
+ passworddialog.h
-FORMS += mainwindow.ui
+FORMS += mainwindow.ui \
+ passworddialog.ui
diff --git a/mainwindow.ui b/mainwindow.ui
index 6050363..6c17aee 100644
--- a/mainwindow.ui
+++ b/mainwindow.ui
@@ -1,7 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
- <widget class="QMainWindow" name="MainWindow" >
- <property name="geometry" >
+ <widget class="QMainWindow" name="MainWindow">
+ <property name="geometry">
<rect>
<x>0</x>
<y>0</y>
@@ -9,16 +10,135 @@
<height>300</height>
</rect>
</property>
- <property name="windowTitle" >
+ <property name="windowTitle">
<string>MainWindow</string>
</property>
- <widget class="QMenuBar" name="menuBar" />
- <widget class="QToolBar" name="mainToolBar" />
- <widget class="QWidget" name="centralWidget" />
- <widget class="QStatusBar" name="statusBar" />
+ <widget class="QWidget" name="centralWidget">
+ <layout class="QVBoxLayout" name="verticalLayout">
+ <item>
+ <spacer name="verticalSpacer_2">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>40</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QGroupBox" name="groupBox">
+ <property name="title">
+ <string>Log Datei auswählen</string>
+ </property>
+ <layout class="QHBoxLayout" name="horizontalLayout">
+ <item>
+ <widget class="QLineEdit" name="lineEdit">
+ <property name="echoMode">
+ <enum>QLineEdit::Normal</enum>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="pushButton">
+ <property name="text">
+ <string>Datei auswählen</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item>
+ <spacer name="verticalSpacer">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>40</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_3">
+ <item>
+ <widget class="QPushButton" name="pushButton_2">
+ <property name="text">
+ <string>Verschlüsseln</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="horizontalSpacer">
+ <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="pushButton_3">
+ <property name="text">
+ <string>Entschlüsseln</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </widget>
+ <widget class="QMenuBar" name="menuBar">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>400</width>
+ <height>29</height>
+ </rect>
+ </property>
+ <widget class="QMenu" name="menuDatei">
+ <property name="title">
+ <string>Da&amp;tei</string>
+ </property>
+ <addaction name="actionBeenden"/>
+ </widget>
+ <widget class="QMenu" name="menuSchl_ssel">
+ <property name="title">
+ <string>S&amp;chlüssel</string>
+ </property>
+ <addaction name="actionImport"/>
+ <addaction name="actionExport"/>
+ </widget>
+ <addaction name="menuDatei"/>
+ <addaction name="menuSchl_ssel"/>
+ </widget>
+ <action name="actionBeenden">
+ <property name="text">
+ <string>&amp;Beenden</string>
+ </property>
+ </action>
+ <action name="actionImport">
+ <property name="text">
+ <string>&amp;Import</string>
+ </property>
+ </action>
+ <action name="actionExport">
+ <property name="text">
+ <string>&amp;Export</string>
+ </property>
+ </action>
</widget>
- <layoutDefault spacing="6" margin="11" />
- <pixmapfunction></pixmapfunction>
+ <layoutdefault spacing="6" margin="11"/>
<resources/>
<connections/>
</ui>
diff --git a/passworddialog.cpp b/passworddialog.cpp
new file mode 100644
index 0000000..a9c9590
--- /dev/null
+++ b/passworddialog.cpp
@@ -0,0 +1,14 @@
+#include "passworddialog.h"
+#include "ui_passworddialog.h"
+
+PasswordDialog::PasswordDialog(QWidget *parent) :
+ QDialog(parent),
+ ui(new Ui::PasswordDialog)
+{
+ ui->setupUi(this);
+}
+
+PasswordDialog::~PasswordDialog()
+{
+ delete ui;
+}
diff --git a/passworddialog.h b/passworddialog.h
new file mode 100644
index 0000000..3db9b1f
--- /dev/null
+++ b/passworddialog.h
@@ -0,0 +1,22 @@
+#ifndef PASSWORDDIALOG_H
+#define PASSWORDDIALOG_H
+
+#include <QDialog>
+
+namespace Ui {
+class PasswordDialog;
+}
+
+class PasswordDialog : public QDialog
+{
+ Q_OBJECT
+
+public:
+ explicit PasswordDialog(QWidget *parent = 0);
+ ~PasswordDialog();
+
+private:
+ Ui::PasswordDialog *ui;
+};
+
+#endif // PASSWORDDIALOG_H
diff --git a/passworddialog.ui b/passworddialog.ui
new file mode 100644
index 0000000..2d44c9c
--- /dev/null
+++ b/passworddialog.ui
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>PasswordDialog</class>
+ <widget class="QDialog" name="PasswordDialog">
+ <property name="windowModality">
+ <enum>Qt::WindowModal</enum>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>336</width>
+ <height>99</height>
+ </rect>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="minimumSize">
+ <size>
+ <width>336</width>
+ <height>99</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>336</width>
+ <height>99</height>
+ </size>
+ </property>
+ <property name="windowTitle">
+ <string>Passwort eingeben</string>
+ </property>
+ <layout class="QVBoxLayout" name="verticalLayout">
+ <item alignment="Qt::AlignHCenter">
+ <widget class="QLabel" name="label">
+ <property name="text">
+ <string>Geben Sie ihr Passwort ein:</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QLineEdit" name="passwordField">
+ <property name="echoMode">
+ <enum>QLineEdit::Password</enum>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QDialogButtonBox" name="buttonBox">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="standardButtons">
+ <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ <resources/>
+ <connections>
+ <connection>
+ <sender>buttonBox</sender>
+ <signal>accepted()</signal>
+ <receiver>PasswordDialog</receiver>
+ <slot>accept()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>248</x>
+ <y>254</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>157</x>
+ <y>274</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>buttonBox</sender>
+ <signal>rejected()</signal>
+ <receiver>PasswordDialog</receiver>
+ <slot>reject()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>316</x>
+ <y>260</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>286</x>
+ <y>274</y>
+ </hint>
+ </hints>
+ </connection>
+ </connections>
+</ui>