[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/office/skrooge
From: Stephane Mankowski <stephane () mankowski ! fr>
Date: 2009-11-14 14:25:33
Message-ID: 1258208733.366106.1465.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1049131 by smankowski:
New function "Open sub operations" to display all sub operations. Useful to filter \
them.
M +1 -0 CHANGELOG
M +26 -0 skrooge_operation/skgoperationplugin.cpp
M +2 -0 skrooge_operation/skgoperationplugin.h
M +1 -0 skrooge_operation/skrooge_operation.rc
--- trunk/extragear/office/skrooge/CHANGELOG #1049130:1049131
@@ -22,6 +22,7 @@
*New report widget for dashboard (all reports can be added to dashboard)
*Addition of "Del" shortcut to delete suboperations in split panel
*New tooltip on operation status
+ *New function "Open sub operations" to display all sub operations. Useful to \
filter them.
-- maintainer Stephane MANKOWSKI <stephane@mankowski.fr> xxxx
--- trunk/extragear/office/skrooge/skrooge_operation/skgoperationplugin.cpp \
#1049130:1049131 @@ -127,6 +127,13 @@
if (SKGMainPanel::getMainPanel()) \
SKGMainPanel::getMainPanel()->registedGlobalAction ( "view_open_last_modified", \
openLastModified );
+ openSuboperations = new KAction ( KIcon("skrooge_split", NULL, overlayopen), \
i18n ( "Open sub operations" ), this); + connect ( openSuboperations, SIGNAL ( \
triggered ( bool ) ), this, SLOT ( actionOpenSubOperations() ) ); + \
actionCollection()->addAction ( QLatin1String ( "view_open_suboperations" ), \
openSuboperations ); + openSuboperations->setShortcut ( Qt::META+Qt::Key_S );
+
+ if (SKGMainPanel::getMainPanel()) \
SKGMainPanel::getMainPanel()->registedGlobalAction ( "view_open_suboperations", \
openSuboperations ); +
groupOperation = new KAction ( KIcon ( "skrooge_transfer" ), i18n ( "&Group \
operations" ), this );
connect ( groupOperation, SIGNAL ( triggered ( bool ) ), this, SLOT ( \
actionGroupOperation() ) );
actionCollection()->addAction ( QLatin1String ( "edit_group_operation" ), \
groupOperation ); @@ -499,4 +506,23 @@
if (SKGMainPanel::getMainPanel()) \
SKGMainPanel::getMainPanel()->setNewTabContent ( \
SKGMainPanel::getMainPanel()->getPluginByName ( "Skrooge operation plugin" ), -1, \
doc.toString() ); }
+void SKGOperationPlugin::actionOpenSubOperations()
+{
+ SKGTRACEIN ( 10, "SKGOperationPlugin::actionOpenLastModified");
+ //Call operation plugin
+ QDomDocument doc("SKGML");
+ doc.setContent ( \
currentBankDocument->getParameter("SKGOPERATION_CONSOLIDATED_DEFAULT_PARAMETERS") ); \
+ QDomElement root = doc.documentElement(); + if (root.isNull()) {
+ root=doc.createElement("parameters");
+ doc.appendChild(root);
+ }
+
+ root.setAttribute ( "operationTable", "v_operation_consolidated" );
+ root.setAttribute ( "operationWhereClause", "" );
+ root.setAttribute ( "title", i18n("Sub operations") );
+ root.setAttribute ( "title_icon", icon() );
+
+ if (SKGMainPanel::getMainPanel()) \
SKGMainPanel::getMainPanel()->setNewTabContent ( \
SKGMainPanel::getMainPanel()->getPluginByName ( "Skrooge operation plugin" ), -1, \
doc.toString() ); +}
#include "skgoperationplugin.moc"
--- trunk/extragear/office/skrooge/skrooge_operation/skgoperationplugin.h \
#1049130:1049131 @@ -148,6 +148,7 @@
void actionSwitchHighLight();
void actionOpenHighLights();
void actionOpenLastModified();
+ void actionOpenSubOperations();
void actionGroupOperation();
void actionUngroupOperation();
@@ -160,6 +161,7 @@
KAction *switchHighLight;
KAction *openHighLights;
KAction *openLastModified;
+ KAction *openSuboperations;
KAction *groupOperation;
KAction *ungroupOperation;
--- trunk/extragear/office/skrooge/skrooge_operation/skrooge_operation.rc \
#1049130:1049131 @@ -18,6 +18,7 @@
<Separator/>
<Action name="view_open_highlight"/>
<Action name="view_open_last_modified"/>
+ <Action name="view_open_suboperations"/>
</Menu>
</MenuBar>
<ToolBar noMerge="1" name="edit"><text>Edit</text>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic