[Ktutorial-commits] SF.net SVN: ktutorial:[142] trunk/ktutorial/ktutorial-editor/src/ KTutorialEdit
Status: Alpha
Brought to you by:
danxuliu
From: <dan...@us...> - 2010-03-10 17:58:35
|
Revision: 142 http://ktutorial.svn.sourceforge.net/ktutorial/?rev=142&view=rev Author: danxuliu Date: 2010-03-10 17:58:12 +0000 (Wed, 10 Mar 2010) Log Message: ----------- Set icons for actions. Modified Paths: -------------- trunk/ktutorial/ktutorial-editor/src/KTutorialEditor.cpp Modified: trunk/ktutorial/ktutorial-editor/src/KTutorialEditor.cpp =================================================================== --- trunk/ktutorial/ktutorial-editor/src/KTutorialEditor.cpp 2010-03-10 17:50:56 UTC (rev 141) +++ trunk/ktutorial/ktutorial-editor/src/KTutorialEditor.cpp 2010-03-10 17:58:12 UTC (rev 142) @@ -94,6 +94,7 @@ action->setText(i18nc("@action", "Set information...")); action->setStatusTip(i18nc("@info:status", "Set the name and description " "of the tutorial.")); + action->setIcon(KIcon("documentinfo")); actionCollection()->addAction("setTutorialInformation", action); connect(action, SIGNAL(triggered(bool)), this, SLOT(setTutorialInformation())); @@ -103,6 +104,7 @@ action->setText(i18nc("@action", "Set license...")); action->setStatusTip(i18nc("@info:status", "Set the license text of the " "tutorial.")); + action->setIcon(KIcon("document-edit")); actionCollection()->addAction("setTutorialLicense", action); connect(action, SIGNAL(triggered(bool)), this, SLOT(setTutorialLicense())); actionListWidget->addAction(action); @@ -111,6 +113,7 @@ action->setText(i18nc("@action", "Set setup code...")); action->setStatusTip(i18nc("@info:status", "Set the custom code to be " "executed when the tutorial starts.")); + action->setIcon(KIcon("code-function")); actionCollection()->addAction("setTutorialSetup", action); connect(action, SIGNAL(triggered(bool)), this, SLOT(setTutorialSetup())); actionListWidget->addAction(action); @@ -119,6 +122,7 @@ action->setText(i18nc("@action", "Set tear down code...")); action->setStatusTip(i18nc("@info:status", "Set the custom code to be " "executed when the tutorial finishes.")); + action->setIcon(KIcon("code-function")); actionCollection()->addAction("setTutorialTearDown", action); connect(action, SIGNAL(triggered(bool)), this, SLOT(setTutorialTearDown())); actionListWidget->addAction(action); @@ -130,6 +134,7 @@ action->setText(i18nc("@action", "Add step...")); action->setStatusTip(i18nc("@info:status", "Add a new step to the " "tutorial.")); + action->setIcon(KIcon("list-add")); actionCollection()->addAction("addStep", action); connect(action, SIGNAL(triggered(bool)), this, SLOT(addStep())); actionListWidget->addAction(action); @@ -138,6 +143,7 @@ action->setText(i18nc("@action", "Set data...")); action->setStatusTip(i18nc("@info:status", "Set the name and text of the " "currently selected step.")); + action->setIcon(KIcon("document-edit")); action->setEnabled(false); actionCollection()->addAction("setStepData", action); connect(action, SIGNAL(triggered(bool)), this, SLOT(setStepData())); @@ -147,6 +153,7 @@ action->setText(i18nc("@action", "Set setup code...")); action->setStatusTip(i18nc("@info:status", "Set the custom code to be " "executed when the tutorial passes to the currently selected step.")); + action->setIcon(KIcon("code-function")); action->setEnabled(false); actionCollection()->addAction("setStepSetup", action); connect(action, SIGNAL(triggered(bool)), this, SLOT(setStepSetup())); @@ -157,6 +164,7 @@ action->setStatusTip(i18nc("@info:status", "Set the custom code to be " "executed when the tutorial changes from the currently selected step to " "another step.")); + action->setIcon(KIcon("code-function")); action->setEnabled(false); actionCollection()->addAction("setStepTearDown", action); connect(action, SIGNAL(triggered(bool)), this, SLOT(setStepTearDown())); @@ -166,6 +174,7 @@ action->setText(i18nc("@action", "Remove step")); action->setStatusTip(i18nc("@info:status", "Removes the currently selected " "step from the tutorial.")); + action->setIcon(KIcon("list-remove")); action->setEnabled(false); actionCollection()->addAction("removeStep", action); connect(action, SIGNAL(triggered(bool)), this, SLOT(removeStep())); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |