Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added New Form Wizard, wip

  • Loading branch information...
commit b7bcf71d5ee3c3091f8189019cf836f5e6308f74 1 parent 0876e4f
Voker57 authored
Showing with 38 additions and 6 deletions.
  1. +6 −0 mainwindow.cpp
  2. +2 −0  mainwindow.h
  3. +19 −2 mainwindow.ui
  4. +11 −4 qposter.pro
6 mainwindow.cpp
View
@@ -1,5 +1,6 @@
#include "mainwindow.h"
#include "fieldform.h"
+#include "newformwizard.h"
#include <QDebug>
MainWindow::MainWindow(QWidget *parent, Qt::WFlags flags)
@@ -38,3 +39,8 @@ void MainWindow::wipePressed()
hash[(*i)->fieldName()] = (*i)->fieldValue();
wiper->wipe(urlEdit->text(),hash);
}
+
+void MainWindow::callWizard()
+{
+ new NewFormWizard();
+}
2  mainwindow.h
View
@@ -19,6 +19,8 @@ public slots:
void addField();
void removeField();
void wipePressed();
+protected slots:
+ void callWizard();
protected:
QList<FieldForm *> fieldForms;
Wiper * wiper;
21 mainwindow.ui
View
@@ -100,7 +100,7 @@
<property name="title">
<string>Post</string>
</property>
- <addaction name="actionNew_wiper_wizard"/>
+ <addaction name="newFormWizardAction"/>
</widget>
<addaction name="menuWipe"/>
</widget>
@@ -113,7 +113,7 @@
</attribute>
</widget>
<widget class="QStatusBar" name="statusBar"/>
- <action name="actionNew_wiper_wizard">
+ <action name="newFormWizardAction">
<property name="text">
<string>New Poster wizard</string>
</property>
@@ -154,9 +154,26 @@
</hint>
</hints>
</connection>
+ <connection>
+ <sender>menuBar</sender>
+ <signal>triggered(QAction*)</signal>
+ <receiver>MainWindowClass</receiver>
+ <slot>callWizard()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>25</x>
+ <y>12</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>37</x>
+ <y>42</y>
+ </hint>
+ </hints>
+ </connection>
</connections>
<slots>
<slot>addField()</slot>
<slot>wipePressed()</slot>
+ <slot>callWizard()</slot>
</slots>
</ui>
15 qposter.pro
View
@@ -4,15 +4,22 @@
QT += network \
script \
xml \
- xmlpatterns
+ xmlpatterns \
+ webkit
TARGET = qposter
TEMPLATE = app
SOURCES += main.cpp \
mainwindow.cpp \
fieldform.cpp \
- wiper.cpp
+ wiper.cpp \
+ newformwizard.cpp \
+ webbrowser.cpp
HEADERS += mainwindow.h \
fieldform.h \
- wiper.h
+ wiper.h \
+ newformwizard.h \
+ webbrowser.h
FORMS += mainwindow.ui \
- formfield.ui
+ formfield.ui \
+ webbrowser.ui
+RESOURCES += qposter.qrc
Please sign in to comment.
Something went wrong with that request. Please try again.