Author: dylan
Date: 2005-07-05 19:28:32 -0400 (Tue, 05 Jul 2005)
New Revision: 835

Added:
   trunk/haver-qt/
   trunk/haver-qt/haver-qt.pro
   trunk/haver-qt/images/
   trunk/haver-qt/images/editcopy
   trunk/haver-qt/images/editcut
   trunk/haver-qt/images/editpaste
   trunk/haver-qt/images/filenew
   trunk/haver-qt/images/fileopen
   trunk/haver-qt/images/filesave
   trunk/haver-qt/images/print
   trunk/haver-qt/images/redo
   trunk/haver-qt/images/searchfind
   trunk/haver-qt/images/undo
   trunk/haver-qt/main.cpp
   trunk/haver-qt/wmain.ui
   trunk/haver-qt/wmain.ui.h
Modified:
   trunk/
Log:
 [EMAIL PROTECTED]:  dylan | 2005-07-04 16:56:09 -0400
 haver-qt base.



Property changes on: trunk
___________________________________________________________________
Name: svk:merge
   - 1f59643a-e6e5-0310-bc24-f7d4c744f460:/haver/havercurs-objc:43089
1f59643a-e6e5-0310-bc24-f7d4c744f460:/haver/local/trunk:11166
1f59643a-e6e5-0310-bc24-f7d4c744f460:/haver/local/trunk-merge-10131:11178
27e50396-46e3-0310-8b22-ae223a1f35ce:/local:212
e9404bb1-7af0-0310-a7ff-e22194cd388b:/haver/local:1205
edfcd8bd-4ce7-0310-a97e-bb1efd40edf3:/local:238
   + 1f59643a-e6e5-0310-bc24-f7d4c744f460:/haver/havercurs-objc:43089
1f59643a-e6e5-0310-bc24-f7d4c744f460:/haver/local/trunk:11166
1f59643a-e6e5-0310-bc24-f7d4c744f460:/haver/local/trunk-merge-10131:11178
27e50396-46e3-0310-8b22-ae223a1f35ce:/local:212
e9404bb1-7af0-0310-a7ff-e22194cd388b:/haver/local:1207
edfcd8bd-4ce7-0310-a97e-bb1efd40edf3:/local:238

Added: trunk/haver-qt/haver-qt.pro
===================================================================
--- trunk/haver-qt/haver-qt.pro 2005-07-05 23:09:09 UTC (rev 834)
+++ trunk/haver-qt/haver-qt.pro 2005-07-05 23:28:32 UTC (rev 835)
@@ -0,0 +1,28 @@
+TEMPLATE       = app
+LANGUAGE       = C++
+
+CONFIG += qt warn_on release
+
+SOURCES        += main.cpp
+
+FORMS  = wmain.ui
+
+IMAGES = images/filenew \
+       images/fileopen \
+       images/filesave \
+       images/print \
+       images/undo \
+       images/redo \
+       images/editcut \
+       images/editcopy \
+       images/editpaste \
+       images/searchfind
+
+unix {
+  UI_DIR = .ui
+  MOC_DIR = .moc
+  OBJECTS_DIR = .obj
+}
+
+
+

Added: trunk/haver-qt/images/editcopy
===================================================================
(Binary files differ)


Property changes on: trunk/haver-qt/images/editcopy
___________________________________________________________________
Name: svn:mime-type
   + image/x-png

Added: trunk/haver-qt/images/editcut
===================================================================
(Binary files differ)


Property changes on: trunk/haver-qt/images/editcut
___________________________________________________________________
Name: svn:mime-type
   + image/x-png

Added: trunk/haver-qt/images/editpaste
===================================================================
(Binary files differ)


Property changes on: trunk/haver-qt/images/editpaste
___________________________________________________________________
Name: svn:mime-type
   + image/x-png

Added: trunk/haver-qt/images/filenew
===================================================================
(Binary files differ)


Property changes on: trunk/haver-qt/images/filenew
___________________________________________________________________
Name: svn:mime-type
   + image/x-png

Added: trunk/haver-qt/images/fileopen
===================================================================
(Binary files differ)


Property changes on: trunk/haver-qt/images/fileopen
___________________________________________________________________
Name: svn:mime-type
   + image/x-png

Added: trunk/haver-qt/images/filesave
===================================================================
(Binary files differ)


Property changes on: trunk/haver-qt/images/filesave
___________________________________________________________________
Name: svn:mime-type
   + image/x-png

Added: trunk/haver-qt/images/print
===================================================================
(Binary files differ)


Property changes on: trunk/haver-qt/images/print
___________________________________________________________________
Name: svn:mime-type
   + image/x-png

Added: trunk/haver-qt/images/redo
===================================================================
(Binary files differ)


Property changes on: trunk/haver-qt/images/redo
___________________________________________________________________
Name: svn:mime-type
   + image/x-png

Added: trunk/haver-qt/images/searchfind
===================================================================
(Binary files differ)


Property changes on: trunk/haver-qt/images/searchfind
___________________________________________________________________
Name: svn:mime-type
   + image/x-png

Added: trunk/haver-qt/images/undo
===================================================================
(Binary files differ)


Property changes on: trunk/haver-qt/images/undo
___________________________________________________________________
Name: svn:mime-type
   + image/x-png

Added: trunk/haver-qt/main.cpp
===================================================================
--- trunk/haver-qt/main.cpp     2005-07-05 23:09:09 UTC (rev 834)
+++ trunk/haver-qt/main.cpp     2005-07-05 23:28:32 UTC (rev 835)
@@ -0,0 +1,11 @@
+#include <qapplication.h>
+#include "wmain.h"
+
+int main( int argc, char ** argv )
+{
+    QApplication a( argc, argv );
+    WMain w;
+    w.show();
+    a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
+    return a.exec();
+}

Added: trunk/haver-qt/wmain.ui
===================================================================
--- trunk/haver-qt/wmain.ui     2005-07-05 23:09:09 UTC (rev 834)
+++ trunk/haver-qt/wmain.ui     2005-07-05 23:28:32 UTC (rev 835)
@@ -0,0 +1,447 @@
+<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
+<class>WMain</class>
+<widget class="QMainWindow">
+    <property name="name">
+        <cstring>WMain</cstring>
+    </property>
+    <property name="geometry">
+        <rect>
+            <x>0</x>
+            <y>0</y>
+            <width>603</width>
+            <height>480</height>
+        </rect>
+    </property>
+    <property name="caption">
+        <string>Haver Qt</string>
+    </property>
+    <widget class="QLineEdit">
+        <property name="name">
+            <cstring>entryArea</cstring>
+        </property>
+        <property name="geometry">
+            <rect>
+                <x>11</x>
+                <y>386</y>
+                <width>581</width>
+                <height>29</height>
+            </rect>
+        </property>
+    </widget>
+    <widget class="QTextEdit">
+        <property name="name">
+            <cstring>displayArea</cstring>
+        </property>
+        <property name="geometry">
+            <rect>
+                <x>11</x>
+                <y>11</y>
+                <width>581</width>
+                <height>369</height>
+            </rect>
+        </property>
+        <property name="readOnly">
+            <bool>true</bool>
+        </property>
+        <property name="undoRedoEnabled">
+            <bool>false</bool>
+        </property>
+    </widget>
+</widget>
+<menubar>
+    <property name="name">
+        <cstring>MenuBar</cstring>
+    </property>
+    <item text="&amp;File" name="fileMenu">
+        <action name="fileNewAction"/>
+        <action name="fileOpenAction"/>
+        <action name="fileSaveAction"/>
+        <action name="fileSaveAsAction"/>
+        <separator/>
+        <action name="filePrintAction"/>
+        <separator/>
+        <action name="fileExitAction"/>
+    </item>
+    <item text="&amp;Edit" name="editMenu">
+        <action name="editUndoAction"/>
+        <action name="editRedoAction"/>
+        <separator/>
+        <action name="editCutAction"/>
+        <action name="editCopyAction"/>
+        <action name="editPasteAction"/>
+        <separator/>
+        <action name="editFindAction"/>
+    </item>
+    <item text="&amp;Help" name="helpMenu">
+        <action name="helpContentsAction"/>
+        <action name="helpIndexAction"/>
+        <separator/>
+        <action name="helpAboutAction"/>
+    </item>
+</menubar>
+<toolbars>
+</toolbars>
+<actions>
+    <action>
+        <property name="name">
+            <cstring>fileNewAction</cstring>
+        </property>
+        <property name="iconSet">
+            <iconset>filenew</iconset>
+        </property>
+        <property name="text">
+            <string>New</string>
+        </property>
+        <property name="menuText">
+            <string>&amp;New</string>
+        </property>
+        <property name="accel">
+            <string>Ctrl+N</string>
+        </property>
+    </action>
+    <action>
+        <property name="name">
+            <cstring>fileOpenAction</cstring>
+        </property>
+        <property name="iconSet">
+            <iconset>fileopen</iconset>
+        </property>
+        <property name="text">
+            <string>Open</string>
+        </property>
+        <property name="menuText">
+            <string>&amp;Open...</string>
+        </property>
+        <property name="accel">
+            <string>Ctrl+O</string>
+        </property>
+    </action>
+    <action>
+        <property name="name">
+            <cstring>fileSaveAction</cstring>
+        </property>
+        <property name="iconSet">
+            <iconset>filesave</iconset>
+        </property>
+        <property name="text">
+            <string>Save</string>
+        </property>
+        <property name="menuText">
+            <string>&amp;Save</string>
+        </property>
+        <property name="accel">
+            <string>Ctrl+S</string>
+        </property>
+    </action>
+    <action>
+        <property name="name">
+            <cstring>fileSaveAsAction</cstring>
+        </property>
+        <property name="text">
+            <string>Save As</string>
+        </property>
+        <property name="menuText">
+            <string>Save &amp;As...</string>
+        </property>
+        <property name="accel">
+            <string></string>
+        </property>
+    </action>
+    <action>
+        <property name="name">
+            <cstring>filePrintAction</cstring>
+        </property>
+        <property name="iconSet">
+            <iconset>print</iconset>
+        </property>
+        <property name="text">
+            <string>Print</string>
+        </property>
+        <property name="menuText">
+            <string>&amp;Print...</string>
+        </property>
+        <property name="accel">
+            <string>Ctrl+P</string>
+        </property>
+    </action>
+    <action>
+        <property name="name">
+            <cstring>fileExitAction</cstring>
+        </property>
+        <property name="text">
+            <string>Exit</string>
+        </property>
+        <property name="menuText">
+            <string>E&amp;xit</string>
+        </property>
+        <property name="accel">
+            <string></string>
+        </property>
+    </action>
+    <action>
+        <property name="name">
+            <cstring>editUndoAction</cstring>
+        </property>
+        <property name="iconSet">
+            <iconset>undo</iconset>
+        </property>
+        <property name="text">
+            <string>Undo</string>
+        </property>
+        <property name="menuText">
+            <string>&amp;Undo</string>
+        </property>
+        <property name="accel">
+            <string>Ctrl+Z</string>
+        </property>
+    </action>
+    <action>
+        <property name="name">
+            <cstring>editRedoAction</cstring>
+        </property>
+        <property name="iconSet">
+            <iconset>redo</iconset>
+        </property>
+        <property name="text">
+            <string>Redo</string>
+        </property>
+        <property name="menuText">
+            <string>&amp;Redo</string>
+        </property>
+        <property name="accel">
+            <string>Ctrl+Y</string>
+        </property>
+    </action>
+    <action>
+        <property name="name">
+            <cstring>editCutAction</cstring>
+        </property>
+        <property name="iconSet">
+            <iconset>editcut</iconset>
+        </property>
+        <property name="text">
+            <string>Cut</string>
+        </property>
+        <property name="menuText">
+            <string>Cu&amp;t</string>
+        </property>
+        <property name="accel">
+            <string>Ctrl+X</string>
+        </property>
+    </action>
+    <action>
+        <property name="name">
+            <cstring>editCopyAction</cstring>
+        </property>
+        <property name="iconSet">
+            <iconset>editcopy</iconset>
+        </property>
+        <property name="text">
+            <string>Copy</string>
+        </property>
+        <property name="menuText">
+            <string>&amp;Copy</string>
+        </property>
+        <property name="accel">
+            <string>Ctrl+C</string>
+        </property>
+    </action>
+    <action>
+        <property name="name">
+            <cstring>editPasteAction</cstring>
+        </property>
+        <property name="iconSet">
+            <iconset>editpaste</iconset>
+        </property>
+        <property name="text">
+            <string>Paste</string>
+        </property>
+        <property name="menuText">
+            <string>&amp;Paste</string>
+        </property>
+        <property name="accel">
+            <string>Ctrl+V</string>
+        </property>
+    </action>
+    <action>
+        <property name="name">
+            <cstring>editFindAction</cstring>
+        </property>
+        <property name="iconSet">
+            <iconset>searchfind</iconset>
+        </property>
+        <property name="text">
+            <string>Find</string>
+        </property>
+        <property name="menuText">
+            <string>&amp;Find...</string>
+        </property>
+        <property name="accel">
+            <string>Ctrl+F</string>
+        </property>
+    </action>
+    <action>
+        <property name="name">
+            <cstring>helpContentsAction</cstring>
+        </property>
+        <property name="text">
+            <string>Contents</string>
+        </property>
+        <property name="menuText">
+            <string>&amp;Contents...</string>
+        </property>
+        <property name="accel">
+            <string></string>
+        </property>
+    </action>
+    <action>
+        <property name="name">
+            <cstring>helpIndexAction</cstring>
+        </property>
+        <property name="text">
+            <string>Index</string>
+        </property>
+        <property name="menuText">
+            <string>&amp;Index...</string>
+        </property>
+        <property name="accel">
+            <string></string>
+        </property>
+    </action>
+    <action>
+        <property name="name">
+            <cstring>helpAboutAction</cstring>
+        </property>
+        <property name="text">
+            <string>About</string>
+        </property>
+        <property name="menuText">
+            <string>&amp;About</string>
+        </property>
+        <property name="accel">
+            <string></string>
+        </property>
+    </action>
+</actions>
+<connections>
+    <connection>
+        <sender>fileNewAction</sender>
+        <signal>activated()</signal>
+        <receiver>WMain</receiver>
+        <slot>fileNew()</slot>
+    </connection>
+    <connection>
+        <sender>fileOpenAction</sender>
+        <signal>activated()</signal>
+        <receiver>WMain</receiver>
+        <slot>fileOpen()</slot>
+    </connection>
+    <connection>
+        <sender>fileSaveAction</sender>
+        <signal>activated()</signal>
+        <receiver>WMain</receiver>
+        <slot>fileSave()</slot>
+    </connection>
+    <connection>
+        <sender>fileSaveAsAction</sender>
+        <signal>activated()</signal>
+        <receiver>WMain</receiver>
+        <slot>fileSaveAs()</slot>
+    </connection>
+    <connection>
+        <sender>filePrintAction</sender>
+        <signal>activated()</signal>
+        <receiver>WMain</receiver>
+        <slot>filePrint()</slot>
+    </connection>
+    <connection>
+        <sender>fileExitAction</sender>
+        <signal>activated()</signal>
+        <receiver>WMain</receiver>
+        <slot>fileExit()</slot>
+    </connection>
+    <connection>
+        <sender>editUndoAction</sender>
+        <signal>activated()</signal>
+        <receiver>WMain</receiver>
+        <slot>editUndo()</slot>
+    </connection>
+    <connection>
+        <sender>editRedoAction</sender>
+        <signal>activated()</signal>
+        <receiver>WMain</receiver>
+        <slot>editRedo()</slot>
+    </connection>
+    <connection>
+        <sender>editCutAction</sender>
+        <signal>activated()</signal>
+        <receiver>WMain</receiver>
+        <slot>editCut()</slot>
+    </connection>
+    <connection>
+        <sender>editCopyAction</sender>
+        <signal>activated()</signal>
+        <receiver>WMain</receiver>
+        <slot>editCopy()</slot>
+    </connection>
+    <connection>
+        <sender>editPasteAction</sender>
+        <signal>activated()</signal>
+        <receiver>WMain</receiver>
+        <slot>editPaste()</slot>
+    </connection>
+    <connection>
+        <sender>editFindAction</sender>
+        <signal>activated()</signal>
+        <receiver>WMain</receiver>
+        <slot>editFind()</slot>
+    </connection>
+    <connection>
+        <sender>helpIndexAction</sender>
+        <signal>activated()</signal>
+        <receiver>WMain</receiver>
+        <slot>helpIndex()</slot>
+    </connection>
+    <connection>
+        <sender>helpContentsAction</sender>
+        <signal>activated()</signal>
+        <receiver>WMain</receiver>
+        <slot>helpContents()</slot>
+    </connection>
+    <connection>
+        <sender>helpAboutAction</sender>
+        <signal>activated()</signal>
+        <receiver>WMain</receiver>
+        <slot>helpAbout()</slot>
+    </connection>
+    <connection>
+        <sender>entryArea</sender>
+        <signal>returnPressed()</signal>
+        <receiver>WMain</receiver>
+        <slot>dispatchLine()</slot>
+    </connection>
+</connections>
+<includes>
+    <include location="local" impldecl="in implementation">wmain.ui.h</include>
+</includes>
+<slots>
+    <slot>fileNew()</slot>
+    <slot>fileOpen()</slot>
+    <slot>fileSave()</slot>
+    <slot>fileSaveAs()</slot>
+    <slot>filePrint()</slot>
+    <slot>fileExit()</slot>
+    <slot>editUndo()</slot>
+    <slot>editRedo()</slot>
+    <slot>editCut()</slot>
+    <slot>editCopy()</slot>
+    <slot>editPaste()</slot>
+    <slot>editFind()</slot>
+    <slot>helpIndex()</slot>
+    <slot>helpContents()</slot>
+    <slot>helpAbout()</slot>
+    <slot>dispatchLine()</slot>
+</slots>
+<pixmapinproject/>
+<layoutdefaults spacing="6" margin="11"/>
+</UI>

Added: trunk/haver-qt/wmain.ui.h
===================================================================
--- trunk/haver-qt/wmain.ui.h   2005-07-05 23:09:09 UTC (rev 834)
+++ trunk/haver-qt/wmain.ui.h   2005-07-05 23:28:32 UTC (rev 835)
@@ -0,0 +1,111 @@
+/****************************************************************************
+** ui.h extension file, included from the uic-generated form implementation.
+**
+** If you want to add, delete, or rename functions or slots, use
+** Qt Designer to update this file, preserving your code.
+**
+** You should not define a constructor or destructor in this file.
+** Instead, write your code in functions called init() and destroy().
+** These will automatically be called by the form's constructor and
+** destructor.
+*****************************************************************************/
+
+
+void WMain::fileNew()
+{
+
+}
+
+
+void WMain::fileOpen()
+{
+
+}
+
+
+void WMain::fileSave()
+{
+
+}
+
+
+void WMain::fileSaveAs()
+{
+
+}
+
+
+void WMain::filePrint()
+{
+
+}
+
+
+void WMain::fileExit()
+{
+
+}
+
+
+void WMain::editUndo()
+{
+
+}
+
+
+void WMain::editRedo()
+{
+
+}
+
+
+void WMain::editCut()
+{
+
+}
+
+
+void WMain::editCopy()
+{
+
+}
+
+
+void WMain::editPaste()
+{
+
+}
+
+
+void WMain::editFind()
+{
+
+}
+
+
+void WMain::helpIndex()
+{
+
+}
+
+
+void WMain::helpContents()
+{
+
+}
+
+
+void WMain::helpAbout()
+{
+
+}
+
+
+void WMain::dispatchLine()
+{
+       QLineEdit *entry = this->entryArea;
+       QTextEdit *text  = this->displayArea;
+       QString line = entry->text();
+       entry->clear();
+       text->append(line);
+}


Reply via email to