[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-devel
Subject:    vcs icons
From:       Aleix Pol <aleixpol () kde ! org>
Date:       2009-01-17 17:36:54
Message-ID: 757d9a550901170936r79b3abe2jfc45e1fc847d024e () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


hi list,
I've been trying to assign some icons to some actions in the menus and I
have seen that we already have pretty good icons for VCS (version control
systems) in kdesdk, from cervisia and kdesvn.

I'm attatching a patch using some of the cervisia icons on the vcscommon
plugin. Does anybody know what should we do to be able to use those?

Thanks!
Aleix

[Attachment #5 (text/html)]

hi list,<br>I&#39;ve been trying to assign some icons to some actions in th=
e menus and I have seen that we already have pretty good icons for VCS (ver=
sion control systems) in kdesdk, from cervisia and kdesvn.<br><br>I&#39;m a=
ttatching a patch using some of the cervisia icons on the vcscommon plugin.=
 Does anybody know what should we do to be able to use those?<br>
<br>Thanks!<br>Aleix<br>

--0016367ed580b1c1de0460b122a1--
["vcsicons.patch" (text/x-diff)]

Index: kdevvcscommonplugin.cpp
===================================================================
--- kdevvcscommonplugin.cpp	(revision 912493)
+++ kdevvcscommonplugin.cpp	(working copy)
@@ -65,21 +65,27 @@
     : KDevelop::IPlugin(KDevVcsCommonFactory::componentData(), parent)
 {
     KAction* a = new KAction( i18n( "Commit..." ), this );
+    a->setIcon(KIcon("vcs_commit"));
     connect( a, SIGNAL( triggered() ), this, SLOT( commit() ) );
     m_actions.insert( "commit", a );
     a = new KAction( i18n( "Add" ), this );
+    a->setIcon(KIcon("vcs_add"));
     connect( a, SIGNAL( triggered() ), this, SLOT( add() ) );
     m_actions.insert( "add", a );
     a = new KAction( i18n( "Remove" ), this );
+    a->setIcon(KIcon("vcs_remove"));
     connect( a, SIGNAL( triggered() ), this, SLOT( remove() ) );
     m_actions.insert( "remove", a );
     a = new KAction( i18n( "Update" ), this );
+    a->setIcon(KIcon("vcs_update"));
     connect( a, SIGNAL( triggered() ), this, SLOT( update() ) );
     m_actions.insert( "update", a );
     a = new KAction( i18n( "Compare to Head..." ), this );
+    a->setIcon(KIcon("vcs_diff"));
     connect( a, SIGNAL( triggered() ), this, SLOT( diffToHead() ) );
     m_actions.insert( "diffToHead", a );
     a = new KAction( i18n( "Compare to Base..." ), this );
+    a->setIcon(KIcon("vcs_diff"));
     connect( a, SIGNAL( triggered() ), this, SLOT( diffToBase() ) );
     m_actions.insert( "diffToBase", a );
     a = new KAction( i18n( "Revert" ), this );


_______________________________________________
KDevelop-devel mailing list
KDevelop-devel@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic