r18875 - gnucash/trunk/src/gnc - Cutecash: Enable tab moving and other UI features of Qt.
Christian Stimming
cstim at code.gnucash.org
Mon Mar 8 13:48:24 EST 2010
Author: cstim
Date: 2010-03-08 13:48:24 -0500 (Mon, 08 Mar 2010)
New Revision: 18875
Trac: http://svn.gnucash.org/trac/changeset/18875
Added:
gnucash/trunk/src/gnc/gtk-icons/gtk-redo.png
gnucash/trunk/src/gnc/gtk-icons/gtk-undo.png
Modified:
gnucash/trunk/src/gnc/gtk-icons.qrc
gnucash/trunk/src/gnc/mainwindow.ui
Log:
Cutecash: Enable tab moving and other UI features of Qt.
Added: gnucash/trunk/src/gnc/gtk-icons/gtk-redo.png
===================================================================
--- gnucash/trunk/src/gnc/gtk-icons/gtk-redo.png (rev 0)
+++ gnucash/trunk/src/gnc/gtk-icons/gtk-redo.png 2010-03-08 18:48:24 UTC (rev 18875)
@@ -0,0 +1,11 @@
+PNG
+
++Á¬`«ÞQ óC#W?l*Ç»~ÜÔã¸ÎòHÈþÔ³NÛ̽ÇÛ:@Äy0Îñæ(×ÇÂ>èäAkï~´§þWLÔ]D"λnºÒ] ÙÍóª+ÆÏTè×ø×@_ÿ ¦øjq³¯Ý=]8ÝÞêDG²¶!ðZk=«ðõÕëq©»Kí9²í²+e]$dÉ|櫯]¶Û Xö9BfUÜ;åâÓ#3Él¬UIÞ Æ/+0
L%\%¹e¸dãÐño³-Mä¥Ý{5äÀ8H$²+.nïe\ No newline at end of file
Added: gnucash/trunk/src/gnc/gtk-icons/gtk-undo.png
===================================================================
--- gnucash/trunk/src/gnc/gtk-icons/gtk-undo.png (rev 0)
+++ gnucash/trunk/src/gnc/gtk-icons/gtk-undo.png 2010-03-08 18:48:24 UTC (rev 18875)
@@ -0,0 +1,19 @@
+PNG
+
+++ FDÐ ¨l* aÙ
+,±¶®ÏÝs~þ±ÛÙ5Õj¼É/çôÞs~¿ÏïQìþ×r_C O(HAÔXKøùSñY6åÜÿ;ÀõΧ½Õ×¹è;HbúÅ^hÞ`¬ª¬]ðèdÿ{& ³$ã
+.t×úI÷Ý5¡þ%S¦öC7çPT
+BA2
ÃØV7cÅâ õ/2±*s²dã@©RèFãõ/L«´ÄiÅw(+`Mî
a) "tLàȧ-®<1²ûew fb-m¹b²Y^VÖYÅ+s~*r²« /ÄI'´2@:nG<ÀæW>Ä?íE²n*Âÿ"ÇC÷Y<çqcbÏE±öÞ§°ÑÌ´Ww]ñ
åe~7d°-*gÍr¼Pæ´Þ?yûpÉõZåÛ+fd½ü'É.À#ø\oü7¯ç^f\ No newline at end of file
Modified: gnucash/trunk/src/gnc/gtk-icons.qrc
===================================================================
--- gnucash/trunk/src/gnc/gtk-icons.qrc 2010-03-08 18:48:03 UTC (rev 18874)
+++ gnucash/trunk/src/gnc/gtk-icons.qrc 2010-03-08 18:48:24 UTC (rev 18875)
@@ -1,14 +1,15 @@
-<!DOCTYPE RCC>
-<RCC version="1.0">
-<qresource>
- <file>gtk-icons/gtk-about.png</file>
- <file>gtk-icons/gtk-copy.png</file>
- <file>gtk-icons/gtk-cut.png</file>
- <file>gtk-icons/gtk-new.png</file>
- <file>gtk-icons/gtk-open.png</file>
- <file>gtk-icons/gtk-paste.png</file>
- <file>gtk-icons/gtk-quit.png</file>
- <file>gtk-icons/gtk-save-as.png</file>
- <file>gtk-icons/gtk-save.png</file>
-</qresource>
+<RCC>
+ <qresource>
+ <file>gtk-icons/gtk-about.png</file>
+ <file>gtk-icons/gtk-copy.png</file>
+ <file>gtk-icons/gtk-cut.png</file>
+ <file>gtk-icons/gtk-new.png</file>
+ <file>gtk-icons/gtk-open.png</file>
+ <file>gtk-icons/gtk-paste.png</file>
+ <file>gtk-icons/gtk-quit.png</file>
+ <file>gtk-icons/gtk-redo.png</file>
+ <file>gtk-icons/gtk-save-as.png</file>
+ <file>gtk-icons/gtk-save.png</file>
+ <file>gtk-icons/gtk-undo.png</file>
+ </qresource>
</RCC>
Modified: gnucash/trunk/src/gnc/mainwindow.ui
===================================================================
--- gnucash/trunk/src/gnc/mainwindow.ui 2010-03-08 18:48:03 UTC (rev 18874)
+++ gnucash/trunk/src/gnc/mainwindow.ui 2010-03-08 18:48:24 UTC (rev 18875)
@@ -36,7 +36,20 @@
<property name="currentIndex">
<number>0</number>
</property>
+ <property name="documentMode">
+ <bool>true</bool>
+ </property>
+ <property name="tabsClosable">
+ <bool>true</bool>
+ </property>
+ <property name="movable">
+ <bool>true</bool>
+ </property>
<widget class="QWidget" name="textBrowserTab">
+ <attribute name="icon">
+ <iconset resource="gtk-icons.qrc">
+ <normaloff>:/gtk-icons/gtk-about.png</normaloff>:/gtk-icons/gtk-about.png</iconset>
+ </attribute>
<attribute name="title">
<string>Example Welcome Page</string>
</attribute>
@@ -50,20 +63,20 @@
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
-</style></head><body style=" font-family:'Sans'; font-size:10pt; font-weight:400; font-style:normal;">
-<p style=" margin-top:18px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'MS Shell Dlg 2'; font-size:12pt; font-weight:600;">Cutecash</span></p>
-<p style=" margin-top:18px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'MS Shell Dlg 2'; font-size:12pt; font-weight:600;">Free Finance Software. Easy to develop, easy to use.</span></p>
-<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'MS Shell Dlg 2'; font-size:8pt;">Currently this is more or less a proof-of-concept for developers:</span></p>
-<ol style="-qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Load an existing gnucash XML file</li>
-<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">It will show the account tree in a QTreeView</li>
-<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Additionally the accounts will be shown in a flat list in a QTableView</li>
-<li style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Double-click on any account in either view; it will open the list of splits in that account.</li></ol>
-<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">The list of splits in the account is comparable to gnucash's single line view. The amounts are already there. The dates are still missing, but that can't be hard, too.</p>
-<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This is all read-only access so far, although "Save" probably works but hasn't been tested.</p>
-<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'MS Shell Dlg 2'; font-size:8pt;">The fun part is how easy it was to add this. Let's see how far we will get...</span></p>
-<p style=" margin-top:16px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'MS Shell Dlg 2'; font-size:8pt; font-weight:600;">Images</span></p>
+</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
+<p style=" margin-top:18px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt; font-weight:600;">Cutecash</span></p>
+<p style=" margin-top:18px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt; font-weight:600;">Free Finance Software. Easy to develop, easy to use.</span></p>
+<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">Currently this is more or less a proof-of-concept for developers:</span></p>
+<ol style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" font-family:'Sans'; font-size:10pt;" style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Load an existing gnucash XML file</li>
+<li style=" font-family:'Sans'; font-size:10pt;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">It will show the account tree in a QTreeView</li>
+<li style=" font-family:'Sans'; font-size:10pt;" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Additionally the accounts will be shown in a flat list in a QTableView</li>
+<li style=" font-family:'Sans'; font-size:10pt;" style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Double-click on any account in either view; it will open the list of splits in that account.</li></ol>
+<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans'; font-size:10pt;">The list of splits in the account is comparable to gnucash's single line view. The amounts are already there. The dates are still missing, but that can't be hard, too.</span></p>
+<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans'; font-size:10pt;">This is all read-only access so far, although &quot;Save&quot; probably works but hasn't been tested.</span></p>
+<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">The fun part is how easy it was to add this. Let's see how far we will get...</span></p>
+<p style=" margin-top:16px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt; font-weight:600;">Images</span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><img src=":/pixmaps/gnucash_splash.png" /></p>
-<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'MS Shell Dlg 2'; font-size:8pt;">We can also embed images here in this compiled-in HTML page, as you can see above. Eventually, this page should explain what this software can do for the new user. Maybe a </span><a href="gnc:test"><span style=" text-decoration: underline; color:#0000ff;">hyperlink </span></a><span style=" font-family:'MS Shell Dlg 2'; font-size:8pt;">here?</span></p></body></html></string>
+<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">We can also embed images here in this compiled-in HTML page, as you can see above. Eventually, this page should explain what this software can do for the new user. Maybe a </span><a href="gnc:test"><span style=" font-family:'Sans'; font-size:10pt; text-decoration: underline; color:#0000ff;">hyperlink </span></a><span style=" font-size:8pt;">here?</span></p></body></html></string>
</property>
<property name="openLinks">
<bool>false</bool>
@@ -73,6 +86,10 @@
</layout>
</widget>
<widget class="QWidget" name="tableViewTab">
+ <attribute name="icon">
+ <iconset resource="gnucash.qrc">
+ <normaloff>:/pixmaps/gnc-account.png</normaloff>:/pixmaps/gnc-account.png</iconset>
+ </attribute>
<attribute name="title">
<string>Account List</string>
</attribute>
@@ -81,11 +98,22 @@
<number>0</number>
</property>
<item>
- <widget class="QTableView" name="tableView"/>
+ <widget class="QTableView" name="tableView">
+ <attribute name="verticalHeaderVisible">
+ <bool>false</bool>
+ </attribute>
+ <attribute name="verticalHeaderVisible">
+ <bool>false</bool>
+ </attribute>
+ </widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="treeViewTab">
+ <attribute name="icon">
+ <iconset resource="gnucash.qrc">
+ <normaloff>:/pixmaps/gnc-account.png</normaloff>:/pixmaps/gnc-account.png</iconset>
+ </attribute>
<attribute name="title">
<string>Account Tree</string>
</attribute>
@@ -108,7 +136,7 @@
<x>0</x>
<y>0</y>
<width>707</width>
- <height>25</height>
+ <height>23</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
@@ -117,6 +145,7 @@
</property>
<addaction name="actionNew"/>
<addaction name="actionOpen"/>
+ <addaction name="actionRecent"/>
<addaction name="actionSave"/>
<addaction name="actionSave_as"/>
<addaction name="separator"/>
@@ -143,12 +172,25 @@
<property name="title">
<string>&Edit</string>
</property>
+ <addaction name="action_Undo"/>
+ <addaction name="action_Redo"/>
+ <addaction name="separator"/>
<addaction name="actionCut"/>
<addaction name="actionCopy"/>
<addaction name="actionPaste"/>
</widget>
+ <widget class="QMenu" name="menu_View">
+ <property name="title">
+ <string>&View</string>
+ </property>
+ <addaction name="actionViewAccountList"/>
+ <addaction name="actionViewAccountTree"/>
+ <addaction name="separator"/>
+ <addaction name="action_Close_View"/>
+ </widget>
<addaction name="menuFile"/>
<addaction name="menuEdit"/>
+ <addaction name="menu_View"/>
<addaction name="menuAccount"/>
<addaction name="menuHelp"/>
</widget>
@@ -189,7 +231,7 @@
<normaloff>:/gtk-icons/gtk-about.png</normaloff>:/gtk-icons/gtk-about.png</iconset>
</property>
<property name="text">
- <string>About</string>
+ <string>&About</string>
</property>
</action>
<action name="actionSave">
@@ -243,7 +285,7 @@
<normaloff>:/pixmaps/gnc-account-new.png</normaloff>:/pixmaps/gnc-account-new.png</iconset>
</property>
<property name="text">
- <string>New</string>
+ <string>&New...</string>
</property>
</action>
<action name="actionOpenAccount">
@@ -255,7 +297,7 @@
<normaloff>:/pixmaps/gnc-account-open.png</normaloff>:/pixmaps/gnc-account-open.png</iconset>
</property>
<property name="text">
- <string>Open</string>
+ <string>&Open</string>
</property>
</action>
<action name="actionAccountProperties">
@@ -267,34 +309,43 @@
<normaloff>:/pixmaps/gnc-account-edit.png</normaloff>:/pixmaps/gnc-account-edit.png</iconset>
</property>
<property name="text">
- <string>Properties...</string>
+ <string>&Properties...</string>
</property>
</action>
<action name="actionCut">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
<property name="icon">
<iconset resource="gtk-icons.qrc">
<normaloff>:/gtk-icons/gtk-cut.png</normaloff>:/gtk-icons/gtk-cut.png</iconset>
</property>
<property name="text">
- <string>Cut</string>
+ <string>Cu&t</string>
</property>
</action>
<action name="actionCopy">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
<property name="icon">
<iconset resource="gtk-icons.qrc">
<normaloff>:/gtk-icons/gtk-copy.png</normaloff>:/gtk-icons/gtk-copy.png</iconset>
</property>
<property name="text">
- <string>Copy</string>
+ <string>&Copy</string>
</property>
</action>
<action name="actionPaste">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
<property name="icon">
<iconset resource="gtk-icons.qrc">
<normaloff>:/gtk-icons/gtk-paste.png</normaloff>:/gtk-icons/gtk-paste.png</iconset>
</property>
<property name="text">
- <string>Paste</string>
+ <string>&Paste</string>
</property>
</action>
<action name="actionDeleteAccount">
@@ -306,7 +357,7 @@
<normaloff>:/pixmaps/gnc-account-delete.png</normaloff>:/pixmaps/gnc-account-delete.png</iconset>
</property>
<property name="text">
- <string>Delete...</string>
+ <string>&Delete...</string>
</property>
</action>
<action name="actionAbout_Qt">
@@ -314,10 +365,118 @@
<string>About Qt</string>
</property>
</action>
+ <action name="action_Undo">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="icon">
+ <iconset resource="gtk-icons.qrc">
+ <normaloff>:/gtk-icons/gtk-undo.png</normaloff>:/gtk-icons/gtk-undo.png</iconset>
+ </property>
+ <property name="text">
+ <string>&Undo</string>
+ </property>
+ </action>
+ <action name="action_Redo">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="icon">
+ <iconset resource="gtk-icons.qrc">
+ <normaloff>:/gtk-icons/gtk-redo.png</normaloff>:/gtk-icons/gtk-redo.png</iconset>
+ </property>
+ <property name="text">
+ <string>&Redo</string>
+ </property>
+ </action>
+ <action name="actionRecent">
+ <property name="text">
+ <string>Open &Recent</string>
+ </property>
+ <property name="statusTip">
+ <string>Open an existing file from the list of recently opened files</string>
+ </property>
+ </action>
+ <action name="actionViewAccountList">
+ <property name="checkable">
+ <bool>true</bool>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ <property name="text">
+ <string>Account &List</string>
+ </property>
+ </action>
+ <action name="actionViewAccountTree">
+ <property name="checkable">
+ <bool>true</bool>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ <property name="text">
+ <string>Account &Tree</string>
+ </property>
+ </action>
+ <action name="action_Close_View">
+ <property name="text">
+ <string>&Close View</string>
+ </property>
+ </action>
</widget>
<resources>
<include location="gnucash.qrc"/>
<include location="gtk-icons.qrc"/>
</resources>
- <connections/>
+ <connections>
+ <connection>
+ <sender>textBrowser</sender>
+ <signal>copyAvailable(bool)</signal>
+ <receiver>actionCopy</receiver>
+ <slot>setEnabled(bool)</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>352</x>
+ <y>343</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>-1</x>
+ <y>-1</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>actionViewAccountList</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>tableView</receiver>
+ <slot>setVisible(bool)</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>-1</x>
+ <y>-1</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>352</x>
+ <y>343</y>
+ </hint>
+ </hints>
+ </connection>
+ <connection>
+ <sender>actionViewAccountTree</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>treeView</receiver>
+ <slot>setVisible(bool)</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>-1</x>
+ <y>-1</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>352</x>
+ <y>343</y>
+ </hint>
+ </hints>
+ </connection>
+ </connections>
</ui>
More information about the gnucash-changes
mailing list