[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: Add actions "Add Upper Index" and "Add Lower Index" to the
From: Raphael Langerhorst <raphael-langerhorst () gmx ! at>
Date: 2005-01-22 22:07:00
Message-ID: 200501222307.01063.raphael-langerhorst () gmx ! at
[Download RAW message or body]
OK, a weekend later than expected the patch is ready, please let me
know if it's OK to commit (anything I forgot??).
Additionally these pictures are added:
cr16-action-gsub.png
cr16-action-gsup.png
cr22-action-gsub.png
cr22-action-gsup.png
cr32-action-gsub.png
cr32-action-gsup.png
And: I assume the pictures are added automatically(?) to the
makefiles/buildsystem? To avoid another reconfigure/... cycle I
hacked in the files manually into
koffice/lib/kformula/pics/Makefile.in (not in the diff of course).
Regards,
Raphael
PS: If there are concerns whether filling up the toolbar that much is
useful: it took me a while to find out that there is more available
in the menu, especially because all other "index" actions are present
in the toolbar (= either all or none). I needed it for describing
differentiations.
["kformula_generic_indices.diff" (text/x-diff)]
? kivio/plugins/kivioconnectortool/polyline_connector/Makefile.in
? krita/ui/dialogs/Makefile.in
Index: kformula/kformula.rc
===================================================================
RCS file: /home/kde/koffice/kformula/kformula.rc,v
retrieving revision 1.29
diff -u -p -r1.29 kformula.rc
--- kformula/kformula.rc 18 Apr 2003 18:13:57 -0000 1.29
+++ kformula/kformula.rc 22 Jan 2005 21:58:21 -0000
@@ -104,6 +104,8 @@
<Action name="formula_add_one_by_two_matrix"/>
<Action name="formula_addupperleft"/>
<Action name="formula_addlowerleft"/>
+ <Action name="formula_addupperindex"/>
+ <Action name="formula_addlowerindex"/>
<Action name="formula_addupperright"/>
<Action name="formula_addlowerright"/>
<Action name="formula_addmultiline"/>
Index: lib/kformula/kformuladocument.cc
===================================================================
RCS file: /home/kde/koffice/lib/kformula/kformuladocument.cc,v
retrieving revision 1.72
diff -u -p -r1.72 kformuladocument.cc
--- lib/kformula/kformuladocument.cc 14 Jan 2005 08:10:05 -0000 1.72
+++ lib/kformula/kformuladocument.cc 22 Jan 2005 21:58:26 -0000
@@ -326,6 +326,10 @@ void Document::setEnabled( bool enabled
m_wrapper->getAddLowerLeftAction()->setEnabled( enabled );
m_wrapper->getAddUpperRightAction()->setEnabled( enabled );
m_wrapper->getAddLowerRightAction()->setEnabled( enabled );
+
+ m_wrapper->getAddGenericUpperAction()->setEnabled( enabled );
+ m_wrapper->getAddGenericLowerAction()->setEnabled( enabled );
+
m_wrapper->getAppendColumnAction()->setEnabled( enabled );
m_wrapper->getInsertColumnAction()->setEnabled( enabled );
m_wrapper->getRemoveColumnAction()->setEnabled( enabled );
@@ -542,10 +546,12 @@ void DocumentWrapper::createActions( KAc
collection, "formula_addlowerright");
m_addGenericUpperAction = new KAction(i18n("Add Upper Index"),
+ "gsup",
/*CTRL + Key_U*/0,
this, SLOT(addGenericUpperIndex()),
collection, "formula_addupperindex");
m_addGenericLowerAction = new KAction(i18n("Add Lower Index"),
+ "gsub",
0,
this, SLOT(addGenericLowerIndex()),
collection, "formula_addlowerindex");
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic