Thread: [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. |
From: <dan...@us...> - 2010-03-29 23:35:56
|
Revision: 213 http://ktutorial.svn.sourceforge.net/ktutorial/?rev=213&view=rev Author: danxuliu Date: 2010-03-29 23:35:50 +0000 (Mon, 29 Mar 2010) Log Message: ----------- Force clean state in newTutorial 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-29 22:43:26 UTC (rev 212) +++ trunk/ktutorial/ktutorial-editor/src/KTutorialEditor.cpp 2010-03-29 23:35:50 UTC (rev 213) @@ -398,6 +398,9 @@ void KTutorialEditor::newTutorial() { setTutorialToBeEdited(); mTutorialUrl = KUrl(); + //Force clean state, as setting an empty stack as clean would not emit + //cleanChanged() + handleUndoStackCleanChanged(true); } void KTutorialEditor::openTutorial() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2010-03-29 23:40:23
|
Revision: 214 http://ktutorial.svn.sourceforge.net/ktutorial/?rev=214&view=rev Author: danxuliu Date: 2010-03-29 23:40:17 +0000 (Mon, 29 Mar 2010) Log Message: ----------- Fix comment (copy-pasting is bad, I know) 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-29 23:35:50 UTC (rev 213) +++ trunk/ktutorial/ktutorial-editor/src/KTutorialEditor.cpp 2010-03-29 23:40:17 UTC (rev 214) @@ -398,7 +398,7 @@ void KTutorialEditor::newTutorial() { setTutorialToBeEdited(); mTutorialUrl = KUrl(); - //Force clean state, as setting an empty stack as clean would not emit + //Force clean state, as clearing an empty stack would not emit //cleanChanged() handleUndoStackCleanChanged(true); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dan...@us...> - 2011-06-08 14:49:19
|
Revision: 319 http://ktutorial.svn.sourceforge.net/ktutorial/?rev=319&view=rev Author: danxuliu Date: 2011-06-08 14:49:14 +0000 (Wed, 08 Jun 2011) Log Message: ----------- Enable word wrap in the tutorial tree view. Modified Paths: -------------- trunk/ktutorial/ktutorial-editor/src/KTutorialEditor.cpp Modified: trunk/ktutorial/ktutorial-editor/src/KTutorialEditor.cpp =================================================================== --- trunk/ktutorial/ktutorial-editor/src/KTutorialEditor.cpp 2011-06-08 14:44:12 UTC (rev 318) +++ trunk/ktutorial/ktutorial-editor/src/KTutorialEditor.cpp 2011-06-08 14:49:14 UTC (rev 319) @@ -49,6 +49,7 @@ mTreeView = new AutoExpandableTreeView(); mTreeView->setObjectName("centralTreeView"); + mTreeView->setWordWrap(true); setCentralWidget(mTreeView); setupDocks(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |