[kde-doc-english] playground/office/skrooge/skrooge_operation
Guillaume De Bure
gdebure at yahoo.com
Wed May 27 22:32:50 CEST 2009
SVN commit 973796 by gdebure:
GUI: Change appearance of button for choosing the operations edition panel
M +4 -3 skgoperationpluginwidget.cpp
M +144 -135 skgoperationpluginwidget_base.ui
--- trunk/playground/office/skrooge/skrooge_operation/skgoperationpluginwidget.cpp #973795:973796
@@ -85,7 +85,7 @@
}
connect ( ui.kOperationView->selectionModel(), SIGNAL ( selectionChanged ( QItemSelection,QItemSelection ) ), this, SLOT ( onSelectionChanged() ) );
- connect ( ui.kSplitOperation,SIGNAL ( clicked() ),this,SLOT ( onSplitOperationClicked() ) );
+ //connect ( ui.kSplitOperation,SIGNAL ( clicked() ),this,SLOT ( onSplitOperationClicked() ) );
connect ( objectModel, SIGNAL ( beforeReset() ), ui.kOperationView, SLOT ( saveSelection() ) );
connect ( objectModel, SIGNAL ( afterReset() ), ui.kOperationView, SLOT ( resetSelection() ) );
}
@@ -98,7 +98,7 @@
ui.kModifyOperationBtn->setIcon ( KIcon ( "dialog-ok-apply" ) );
ui.kAddOperationBtn->setIcon ( KIcon ( "list-add" ) );
ui.kresetInternalFiler->setIcon ( KIcon ( "edit-delete" ) );
- ui.kSplitOperation->setIcon ( KIcon ( "skrooge_split" ) );
+ //ui.kSplitOperation->setIcon ( KIcon ( "skrooge_split" ) );
ui.kRemoveSubOperation->setIcon ( KIcon ( "edit-delete" ) );
ui.kReconciliatorButton->setIcon ( KIcon ( "object-rotate-left" ) );
ui.kValidate->setIcon( KIcon( "dialog-ok-apply" ) );
@@ -217,7 +217,7 @@
ui.kNumberEdit->setEnabled ( nbSelect<=1 );
bool splitTest=nbSelect<=1 && !onConsolidatedTable;
- ui.kSplitOperation->setEnabled ( splitTest );
+ //ui.kSplitOperation->setEnabled ( splitTest );
ui.kSplitBtn->setEnabled ( splitTest );
if (!splitTest && mode==1) setCurrentMode(0);
@@ -1352,6 +1352,7 @@
}
ui.kSplitFrm->show();
ui.kSplitBtn->setChecked(true);
+ //ui.kStandardBtn->setChecked(true);
} else if (iMode==2) {
ui.kTransferFrm->show();
ui.kTransferBtn->setChecked(true);
--- trunk/playground/office/skrooge/skrooge_operation/skgoperationpluginwidget_base.ui #973795:973796
@@ -848,16 +848,6 @@
</widget>
</item>
<item>
- <widget class="KPushButton" name="kSplitOperation">
- <property name="iconSize">
- <size>
- <width>16</width>
- <height>16</height>
- </size>
- </property>
- </widget>
- </item>
- <item>
<widget class="QLabel" name="label">
<property name="text">
<string>Tracker:</string>
@@ -1306,22 +1296,6 @@
</layout>
</item>
</layout>
- <zorder>kTotalLabel</zorder>
- <zorder>kUnitShare</zorder>
- <zorder>kUnitCommission</zorder>
- <zorder>kCommissionLabel</zorder>
- <zorder>kAmountSharesEdit</zorder>
- <zorder>kPaymentAccountEdit</zorder>
- <zorder>kAmountSharesLabel</zorder>
- <zorder>kCommissionEdit</zorder>
- <zorder>kTaxEdit</zorder>
- <zorder>kAccountLabel3_2</zorder>
- <zorder>kTaxLabel</zorder>
- <zorder>horizontalSpacer_2</zorder>
- <zorder>KTotal</zorder>
- <zorder>kUnitTax</zorder>
- <zorder>layoutWidget</zorder>
- <zorder>layoutWidget</zorder>
</widget>
</item>
<item>
@@ -1330,13 +1304,16 @@
<number>2</number>
</property>
<item>
- <widget class="KPushButton" name="kStandardBtn">
+ <widget class="QToolButton" name="kStandardBtn">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>22</height>
</size>
</property>
+ <property name="toolTip">
+ <string>Display the edition panel for standard operations</string>
+ </property>
<property name="text">
<string>Standard</string>
</property>
@@ -1349,38 +1326,44 @@
<property name="checkable">
<bool>true</bool>
</property>
+ <property name="toolButtonStyle">
+ <enum>Qt::ToolButtonTextBesideIcon</enum>
+ </property>
+ <property name="autoRaise">
+ <bool>true</bool>
+ </property>
</widget>
</item>
<item>
- <widget class="KPushButton" name="kSplitBtn">
- <property name="maximumSize">
- <size>
- <width>16777215</width>
- <height>22</height>
- </size>
+ <widget class="QToolButton" name="kSplitBtn">
+ <property name="toolTip">
+ <string>Display the edition panel for splitted operations</string>
</property>
<property name="text">
- <string>Split</string>
+ <string>Splitted</string>
</property>
- <property name="iconSize">
- <size>
- <width>16</width>
- <height>16</height>
- </size>
- </property>
<property name="checkable">
<bool>true</bool>
</property>
+ <property name="toolButtonStyle">
+ <enum>Qt::ToolButtonTextBesideIcon</enum>
+ </property>
+ <property name="autoRaise">
+ <bool>true</bool>
+ </property>
</widget>
</item>
<item>
- <widget class="KPushButton" name="kTransferBtn">
+ <widget class="QToolButton" name="kTransferBtn">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>22</height>
</size>
</property>
+ <property name="toolTip">
+ <string>Display the edition panel for transfers between accounts</string>
+ </property>
<property name="text">
<string>Transfer</string>
</property>
@@ -1393,16 +1376,25 @@
<property name="checkable">
<bool>true</bool>
</property>
+ <property name="toolButtonStyle">
+ <enum>Qt::ToolButtonTextBesideIcon</enum>
+ </property>
+ <property name="autoRaise">
+ <bool>true</bool>
+ </property>
</widget>
</item>
<item>
- <widget class="KPushButton" name="kShareBtn">
+ <widget class="QToolButton" name="kShareBtn">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>22</height>
</size>
</property>
+ <property name="toolTip">
+ <string>Display the edition panel for puchasing or selling shares</string>
+ </property>
<property name="text">
<string>Purchase/Sell shares</string>
</property>
@@ -1415,6 +1407,12 @@
<property name="checkable">
<bool>true</bool>
</property>
+ <property name="toolButtonStyle">
+ <enum>Qt::ToolButtonTextBesideIcon</enum>
+ </property>
+ <property name="autoRaise">
+ <bool>true</bool>
+ </property>
</widget>
</item>
<item>
@@ -1453,51 +1451,71 @@
<number>0</number>
</property>
<item>
- <widget class="KPushButton" name="kAddOperationBtn">
- <property name="enabled">
- <bool>false</bool>
- </property>
- <property name="sizePolicy">
- <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="toolTip">
- <string>Create a new operation</string>
- </property>
- <property name="statusTip">
- <string>Create a new operation</string>
- </property>
- <property name="text">
- <string>Add</string>
- </property>
- <property name="checkable">
- <bool>false</bool>
- </property>
- <property name="autoDefault">
- <bool>true</bool>
- </property>
- <property name="default">
- <bool>true</bool>
- </property>
- </widget>
+ <layout class="QVBoxLayout" name="verticalLayout_7">
+ <item>
+ <widget class="KPushButton" name="kAddOperationBtn">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="toolTip">
+ <string>Create a new operation</string>
+ </property>
+ <property name="statusTip">
+ <string>Create a new operation</string>
+ </property>
+ <property name="text">
+ <string>Add</string>
+ </property>
+ <property name="checkable">
+ <bool>false</bool>
+ </property>
+ <property name="autoDefault">
+ <bool>true</bool>
+ </property>
+ <property name="default">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="KPushButton" name="kModifyOperationBtn">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="toolTip">
+ <string>Update selected operations</string>
+ </property>
+ <property name="statusTip">
+ <string>Update selected operations</string>
+ </property>
+ <property name="text">
+ <string>Modify</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
</item>
<item>
- <widget class="KPushButton" name="kModifyOperationBtn">
- <property name="enabled">
- <bool>false</bool>
+ <spacer name="verticalSpacer_3">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
</property>
- <property name="toolTip">
- <string>Update selected operations</string>
+ <property name="sizeType">
+ <enum>QSizePolicy::Maximum</enum>
</property>
- <property name="statusTip">
- <string>Update selected operations</string>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>40</height>
+ </size>
</property>
- <property name="text">
- <string>Modify</string>
- </property>
- </widget>
+ </spacer>
</item>
<item>
<spacer name="verticalSpacer_2">
@@ -1505,7 +1523,7 @@
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
- <enum>QSizePolicy::Minimum</enum>
+ <enum>QSizePolicy::Maximum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
@@ -1516,10 +1534,6 @@
</spacer>
</item>
</layout>
- <zorder>layoutWidget</zorder>
- <zorder>verticalSpacer_2</zorder>
- <zorder>kAddOperationBtn</zorder>
- <zorder>kModifyOperationBtn</zorder>
</widget>
</item>
</layout>
@@ -1527,20 +1541,16 @@
</layout>
<zorder>kOperationView</zorder>
<zorder>kReconciliatorFrame</zorder>
- <zorder>kCommunFrm</zorder>
- <zorder>layoutWidget</zorder>
- <zorder>layoutWidget</zorder>
- <zorder>layoutWidget</zorder>
- <zorder>layoutWidget</zorder>
- <zorder>kSplitFrm</zorder>
- <zorder>kTransferFrm</zorder>
- <zorder>kStandardFrm</zorder>
- <zorder>kShareFrm</zorder>
<zorder></zorder>
<zorder>line</zorder>
</widget>
<customwidgets>
<customwidget>
+ <class>KComboBox</class>
+ <extends>QComboBox</extends>
+ <header>kcombobox.h</header>
+ </customwidget>
+ <customwidget>
<class>KLineEdit</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
@@ -1595,7 +1605,6 @@
<tabstop>kNumberEdit</tabstop>
<tabstop>kCommentEdit</tabstop>
<tabstop>kCategoryEdit</tabstop>
- <tabstop>kSplitOperation</tabstop>
<tabstop>kTrackerEdit</tabstop>
<tabstop>kTargetAccountEdit</tabstop>
<tabstop>kSubOperationsTable</tabstop>
@@ -1722,98 +1731,98 @@
</hints>
</connection>
<connection>
- <sender>kStandardBtn</sender>
- <signal>clicked()</signal>
+ <sender>kAddOperationBtn</sender>
+ <signal>clicked(bool)</signal>
<receiver>skgoperationplugin_base</receiver>
- <slot>onBtnModeClicked()</slot>
+ <slot>onAddOperationClicked()</slot>
<hints>
<hint type="sourcelabel">
- <x>67</x>
- <y>658</y>
+ <x>815</x>
+ <y>343</y>
</hint>
<hint type="destinationlabel">
- <x>101</x>
- <y>672</y>
+ <x>609</x>
+ <y>435</y>
</hint>
</hints>
</connection>
<connection>
- <sender>kSplitBtn</sender>
- <signal>clicked()</signal>
+ <sender>kModifyOperationBtn</sender>
+ <signal>clicked(bool)</signal>
<receiver>skgoperationplugin_base</receiver>
- <slot>onBtnModeClicked()</slot>
+ <slot>onUpdateOperationClicked()</slot>
<hints>
<hint type="sourcelabel">
- <x>211</x>
- <y>660</y>
+ <x>815</x>
+ <y>382</y>
</hint>
<hint type="destinationlabel">
- <x>251</x>
- <y>674</y>
+ <x>609</x>
+ <y>435</y>
</hint>
</hints>
</connection>
<connection>
- <sender>kTransferBtn</sender>
+ <sender>kStandardBtn</sender>
<signal>clicked()</signal>
<receiver>skgoperationplugin_base</receiver>
<slot>onBtnModeClicked()</slot>
<hints>
<hint type="sourcelabel">
- <x>137</x>
- <y>655</y>
+ <x>44</x>
+ <y>659</y>
</hint>
<hint type="destinationlabel">
- <x>400</x>
- <y>673</y>
+ <x>452</x>
+ <y>338</y>
</hint>
</hints>
</connection>
<connection>
- <sender>kShareBtn</sender>
+ <sender>kTransferBtn</sender>
<signal>clicked()</signal>
<receiver>skgoperationplugin_base</receiver>
<slot>onBtnModeClicked()</slot>
<hints>
<hint type="sourcelabel">
- <x>343</x>
- <y>651</y>
+ <x>162</x>
+ <y>659</y>
</hint>
<hint type="destinationlabel">
- <x>545</x>
- <y>671</y>
+ <x>452</x>
+ <y>338</y>
</hint>
</hints>
</connection>
<connection>
- <sender>kAddOperationBtn</sender>
- <signal>clicked(bool)</signal>
+ <sender>kShareBtn</sender>
+ <signal>clicked()</signal>
<receiver>skgoperationplugin_base</receiver>
- <slot>onAddOperationClicked()</slot>
+ <slot>onBtnModeClicked()</slot>
<hints>
<hint type="sourcelabel">
- <x>815</x>
- <y>343</y>
+ <x>272</x>
+ <y>659</y>
</hint>
<hint type="destinationlabel">
- <x>609</x>
- <y>435</y>
+ <x>452</x>
+ <y>338</y>
</hint>
</hints>
</connection>
<connection>
- <sender>kModifyOperationBtn</sender>
- <signal>clicked(bool)</signal>
+ <sender>kSplitBtn</sender>
+ <signal>clicked()</signal>
<receiver>skgoperationplugin_base</receiver>
- <slot>onUpdateOperationClicked()</slot>
+ <slot>onBtnModeClicked()</slot>
<hints>
<hint type="sourcelabel">
- <x>815</x>
- <y>382</y>
+ <x>115</x>
+ <y>657</y>
</hint>
<hint type="destinationlabel">
- <x>609</x>
- <y>435</y>
+ <x>452</x>
+ <y>338</y>
</hint>
</hints>
</connection>
More information about the kde-doc-english
mailing list