Started some basic UI stuff podcatcher_qt_symbian4
authorlarspson
Wed, 13 Oct 2010 20:15:36 +0200
branchpodcatcher_qt_symbian4
changeset 235 f0b8582ef9ac
parent 234 05075131dd6a
child 237 c85b889b0d4b
Started some basic UI stuff
podcatcher_qt/forms/podcatcherwin.ui
podcatcher_qt/inc/podcatcherwin.h
podcatcher_qt/src/podcatcherwin.cpp
--- a/podcatcher_qt/forms/podcatcherwin.ui	Wed Oct 13 20:14:00 2010 +0200
+++ b/podcatcher_qt/forms/podcatcherwin.ui	Wed Oct 13 20:15:36 2010 +0200
@@ -1,7 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
 <ui version="4.0">
  <class>PodcatcherWin</class>
- <widget class="QMainWindow" name="PodcatcherWin" >
-  <property name="geometry" >
+ <widget class="QMainWindow" name="PodcatcherWin">
+  <property name="geometry">
    <rect>
     <x>0</x>
     <y>0</y>
@@ -9,13 +10,71 @@
     <height>640</height>
    </rect>
   </property>
-  <property name="windowTitle" >
+  <property name="windowTitle">
    <string>PodcatcherWin</string>
   </property>
-  <widget class="QWidget" name="centralWidget" />
+  <property name="locale">
+   <locale language="English" country="UnitedKingdom"/>
+  </property>
+  <widget class="QWidget" name="centralWidget">
+   <layout class="QVBoxLayout" name="verticalLayout">
+    <item>
+     <widget class="QListView" name="listView"/>
+    </item>
+    <item>
+     <widget class="QSplitter" name="splitter">
+      <property name="orientation">
+       <enum>Qt::Horizontal</enum>
+      </property>
+      <widget class="QPushButton" name="Add">
+       <property name="sizePolicy">
+        <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
+         <horstretch>0</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
+       <property name="text">
+        <string>Add</string>
+       </property>
+      </widget>
+      <widget class="QPushButton" name="Update">
+       <property name="sizePolicy">
+        <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
+         <horstretch>0</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
+       <property name="text">
+        <string>Update</string>
+       </property>
+      </widget>
+      <widget class="QPushButton" name="Settings">
+       <property name="sizePolicy">
+        <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
+         <horstretch>0</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
+       <property name="text">
+        <string>Settings</string>
+       </property>
+      </widget>
+     </widget>
+    </item>
+   </layout>
+  </widget>
+  <widget class="QMenuBar" name="menuBar">
+   <property name="geometry">
+    <rect>
+     <x>0</x>
+     <y>0</y>
+     <width>360</width>
+     <height>18</height>
+    </rect>
+   </property>
+  </widget>
  </widget>
- <layoutDefault spacing="6" margin="11" />
- <pixmapfunction></pixmapfunction>
+ <layoutdefault spacing="6" margin="11"/>
  <resources/>
  <connections/>
 </ui>
--- a/podcatcher_qt/inc/podcatcherwin.h	Wed Oct 13 20:14:00 2010 +0200
+++ b/podcatcher_qt/inc/podcatcherwin.h	Wed Oct 13 20:15:36 2010 +0200
@@ -2,7 +2,7 @@
 #define PODCATCHERWIN_H
 
 #include <QMainWindow>
-
+#include <QModelIndex>
 namespace Ui {
     class PodcatcherWin;
 }
@@ -17,6 +17,14 @@
 
 private:
     Ui::PodcatcherWin *ui;
+
+private slots:
+    void on_Settings_clicked();
+    void on_Update_clicked();
+    void on_Add_clicked();
+    void on_Add_clicked(bool checked);
+    void on_listView_clicked(QModelIndex index);
+    void on_listView_customContextMenuRequested(QPoint pos);
 };
 
 #endif // PODCATCHERWIN_H
--- a/podcatcher_qt/src/podcatcherwin.cpp	Wed Oct 13 20:14:00 2010 +0200
+++ b/podcatcher_qt/src/podcatcherwin.cpp	Wed Oct 13 20:15:36 2010 +0200
@@ -1,14 +1,41 @@
 #include "podcatcherwin.h"
-#include "ui_podcatcherwin.h"
+#include "ui/ui_podcatcherwin.h"
+#include <QModelIndex>
 
 PodcatcherWin::PodcatcherWin(QWidget *parent) :
     QMainWindow(parent),
     ui(new Ui::PodcatcherWin)
 {
-    ui->setupUi(this);
+    ui->setupUi(this); 
 }
 
 PodcatcherWin::~PodcatcherWin()
 {
     delete ui;
 }
+
+void PodcatcherWin::on_listView_customContextMenuRequested(QPoint pos)
+{
+
+}
+
+void PodcatcherWin::on_listView_clicked(QModelIndex index)
+{
+
+}
+
+
+void PodcatcherWin::on_Add_clicked()
+{
+
+}
+
+void PodcatcherWin::on_Update_clicked()
+{
+
+}
+
+void PodcatcherWin::on_Settings_clicked()
+{
+
+}