Re: Review Request: Add support for single Runner queries to krunner (part II: krunner)

2009-11-16 Thread Jacopo De Simoi


 On 2009-11-12 20:53:01, Aaron Seigo wrote:
  the line edit for the single query mode should probably have a click text 
  that comes from the name or description of the runner being used; maybe it 
  would even be useful to put a label next to the icon with the name of the 
  runner, so it's really evident what's going on?
 
 Jacopo De Simoi wrote:
 Clickmessage would be cool, however, since the lineedit immediately gets 
 focus, it is never shown so it is useless.
 A label could be a solution indeed; 
 The issue is: what should the label read? just the name of the runner?
 
 Aaron Seigo wrote:
 the name of the runner should be enough; hopefully it also looks good :)

The name of the runner looks good enough; I'll go with it


- Jacopo


---
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/2091/#review3064
---


On 2009-11-16 23:50:00, Jacopo De Simoi wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 http://reviewboard.kde.org/r/2091/
 ---
 
 (Updated 2009-11-16 23:50:00)
 
 
 Review request for Plasma, Aaron Seigo and Ryan Bitanga.
 
 
 Summary
 ---
 
 This patch adds single runner query support to krunner;
 When loading the runners, if any runner supports a defaultSyntax, then this 
 is exposed via an action which shows up in the global shortcuts;
 When this action is triggered, krunner starts in single-runner-query mode; 
 i.e. queries are processed by the selected runner only; the interfaces 
 changes slightly to reflect this fact  (screenshot) and the query given by 
 the default syntax is automatically run.
 
 Also a convenient dbus interface is added, in case we want to trigger this 
 internally; 
 
 The most obvious usecase is the windows runner; an upcoming devicerunner and 
 also the nepomuk search runner could make use of this feature.
 
 
 Diffs
 -
 
   trunk/KDE/kdebase/workspace/krunner/dbus/org.kde.krunner.App.xml 1046190 
   trunk/KDE/kdebase/workspace/krunner/interfaces/default/interface.h 1046190 
   trunk/KDE/kdebase/workspace/krunner/interfaces/default/interface.cpp 
 1046190 
   trunk/KDE/kdebase/workspace/krunner/interfaces/default/resultscene.cpp 
 1046190 
   trunk/KDE/kdebase/workspace/krunner/interfaces/quicksand/qs_dialog.h 
 1046190 
   trunk/KDE/kdebase/workspace/krunner/interfaces/quicksand/qs_dialog.cpp 
 1046190 
   trunk/KDE/kdebase/workspace/krunner/krunnerapp.h 1046190 
   trunk/KDE/kdebase/workspace/krunner/krunnerapp.cpp 1046190 
   trunk/KDE/kdebase/workspace/krunner/krunnerdialog.h 1046190 
   trunk/KDE/kdebase/workspace/krunner/krunnerdialog.cpp 1046190 
 
 Diff: http://reviewboard.kde.org/r/2091/diff
 
 
 Testing
 ---
 
 
 Screenshots
 ---
 
 Window runner in single runner mode (+descriptive label)
   http://reviewboard.kde.org/r/2091/s/264/
 
 
 Thanks,
 
 Jacopo
 


___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Review Request: Add support for single Runner queries to krunner (part II: krunner)

2009-11-16 Thread Jacopo De Simoi

---
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/2091/
---

(Updated 2009-11-16 23:50:00.387923)


Review request for Plasma, Aaron Seigo and Ryan Bitanga.


Changes
---

Updated screenshot; waiting for the other part of the patch 
(http://reviewboard.kde.org/r/2090/) to be better defined to post the patch 
here against it.


Summary
---

This patch adds single runner query support to krunner;
When loading the runners, if any runner supports a defaultSyntax, then this is 
exposed via an action which shows up in the global shortcuts;
When this action is triggered, krunner starts in single-runner-query mode; i.e. 
queries are processed by the selected runner only; the interfaces changes 
slightly to reflect this fact  (screenshot) and the query given by the default 
syntax is automatically run.

Also a convenient dbus interface is added, in case we want to trigger this 
internally; 

The most obvious usecase is the windows runner; an upcoming devicerunner and 
also the nepomuk search runner could make use of this feature.


Diffs
-

  trunk/KDE/kdebase/workspace/krunner/dbus/org.kde.krunner.App.xml 1046190 
  trunk/KDE/kdebase/workspace/krunner/interfaces/default/interface.h 1046190 
  trunk/KDE/kdebase/workspace/krunner/interfaces/default/interface.cpp 1046190 
  trunk/KDE/kdebase/workspace/krunner/interfaces/default/resultscene.cpp 
1046190 
  trunk/KDE/kdebase/workspace/krunner/interfaces/quicksand/qs_dialog.h 1046190 
  trunk/KDE/kdebase/workspace/krunner/interfaces/quicksand/qs_dialog.cpp 
1046190 
  trunk/KDE/kdebase/workspace/krunner/krunnerapp.h 1046190 
  trunk/KDE/kdebase/workspace/krunner/krunnerapp.cpp 1046190 
  trunk/KDE/kdebase/workspace/krunner/krunnerdialog.h 1046190 
  trunk/KDE/kdebase/workspace/krunner/krunnerdialog.cpp 1046190 

Diff: http://reviewboard.kde.org/r/2091/diff


Testing
---


Screenshots (updated)
---

Window runner in single runner mode (+descriptive label)
  http://reviewboard.kde.org/r/2091/s/264/


Thanks,

Jacopo

___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Review Request: Add support for single Runner queries to krunner (part II: krunner)

2009-11-16 Thread Aaron Seigo

---
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/2091/#review3130
---

Ship it!


- Aaron


On 2009-11-16 23:50:00, Jacopo De Simoi wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 http://reviewboard.kde.org/r/2091/
 ---
 
 (Updated 2009-11-16 23:50:00)
 
 
 Review request for Plasma, Aaron Seigo and Ryan Bitanga.
 
 
 Summary
 ---
 
 This patch adds single runner query support to krunner;
 When loading the runners, if any runner supports a defaultSyntax, then this 
 is exposed via an action which shows up in the global shortcuts;
 When this action is triggered, krunner starts in single-runner-query mode; 
 i.e. queries are processed by the selected runner only; the interfaces 
 changes slightly to reflect this fact  (screenshot) and the query given by 
 the default syntax is automatically run.
 
 Also a convenient dbus interface is added, in case we want to trigger this 
 internally; 
 
 The most obvious usecase is the windows runner; an upcoming devicerunner and 
 also the nepomuk search runner could make use of this feature.
 
 
 Diffs
 -
 
   trunk/KDE/kdebase/workspace/krunner/dbus/org.kde.krunner.App.xml 1046190 
   trunk/KDE/kdebase/workspace/krunner/interfaces/default/interface.h 1046190 
   trunk/KDE/kdebase/workspace/krunner/interfaces/default/interface.cpp 
 1046190 
   trunk/KDE/kdebase/workspace/krunner/interfaces/default/resultscene.cpp 
 1046190 
   trunk/KDE/kdebase/workspace/krunner/interfaces/quicksand/qs_dialog.h 
 1046190 
   trunk/KDE/kdebase/workspace/krunner/interfaces/quicksand/qs_dialog.cpp 
 1046190 
   trunk/KDE/kdebase/workspace/krunner/krunnerapp.h 1046190 
   trunk/KDE/kdebase/workspace/krunner/krunnerapp.cpp 1046190 
   trunk/KDE/kdebase/workspace/krunner/krunnerdialog.h 1046190 
   trunk/KDE/kdebase/workspace/krunner/krunnerdialog.cpp 1046190 
 
 Diff: http://reviewboard.kde.org/r/2091/diff
 
 
 Testing
 ---
 
 
 Screenshots
 ---
 
 Window runner in single runner mode (+descriptive label)
   http://reviewboard.kde.org/r/2091/s/264/
 
 
 Thanks,
 
 Jacopo
 


___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Review Request: Add support for single Runner queries to krunner (part II: krunner)

2009-11-12 Thread Aaron Seigo

---
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/2091/#review3064
---


the line edit for the single query mode should probably have a click text that 
comes from the name or description of the runner being used; maybe it would 
even be useful to put a label next to the icon with the name of the runner, so 
it's really evident what's going on?


trunk/KDE/kdebase/workspace/krunner/dbus/org.kde.krunner.App.xml
http://reviewboard.kde.org/r/2091/#comment2492

perhaps querySingleRunner?



trunk/KDE/kdebase/workspace/krunner/interfaces/default/interface.cpp
http://reviewboard.kde.org/r/2091/#comment2493

if (singleRunnerMode()) {

} else if (!term.isEmpty()) {

}

might be a bit clearer to read



trunk/KDE/kdebase/workspace/krunner/interfaces/default/interface.cpp
http://reviewboard.kde.org/r/2091/#comment2496

adjustInterface(bool) is redundant; may as well just have one method, 
setStaticQueryMode(bool)



trunk/KDE/kdebase/workspace/krunner/krunnerapp.cpp
http://reviewboard.kde.org/r/2091/#comment2490

please watch the whitespace inside of ()s .. :)



trunk/KDE/kdebase/workspace/krunner/krunnerapp.cpp
http://reviewboard.kde.org/r/2091/#comment2491

isn't that a no-op due to:

void KRunnerApp::singleRunnerMode(const QString runnerName)
{
if ( runnerName.isEmpty() ) {
return;


- Aaron


On 2009-11-07 20:29:26, Jacopo De Simoi wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 http://reviewboard.kde.org/r/2091/
 ---
 
 (Updated 2009-11-07 20:29:26)
 
 
 Review request for Plasma, Aaron Seigo and Ryan Bitanga.
 
 
 Summary
 ---
 
 This patch adds single runner query support to krunner;
 When loading the runners, if any runner supports a defaultSyntax, then this 
 is exposed via an action which shows up in the global shortcuts;
 When this action is triggered, krunner starts in single-runner-query mode; 
 i.e. queries are processed by the selected runner only; the interfaces 
 changes slightly to reflect this fact  (screenshot) and the query given by 
 the default syntax is automatically run.
 
 Also a convenient dbus interface is added, in case we want to trigger this 
 internally; 
 
 The most obvious usecase is the windows runner; an upcoming devicerunner and 
 also the nepomuk search runner could make use of this feature.
 
 
 Diffs
 -
 
   trunk/KDE/kdebase/workspace/krunner/dbus/org.kde.krunner.App.xml 1046190 
   trunk/KDE/kdebase/workspace/krunner/interfaces/default/interface.h 1046190 
   trunk/KDE/kdebase/workspace/krunner/interfaces/default/interface.cpp 
 1046190 
   trunk/KDE/kdebase/workspace/krunner/interfaces/default/resultscene.cpp 
 1046190 
   trunk/KDE/kdebase/workspace/krunner/interfaces/quicksand/qs_dialog.h 
 1046190 
   trunk/KDE/kdebase/workspace/krunner/interfaces/quicksand/qs_dialog.cpp 
 1046190 
   trunk/KDE/kdebase/workspace/krunner/krunnerapp.h 1046190 
   trunk/KDE/kdebase/workspace/krunner/krunnerapp.cpp 1046190 
   trunk/KDE/kdebase/workspace/krunner/krunnerdialog.h 1046190 
   trunk/KDE/kdebase/workspace/krunner/krunnerdialog.cpp 1046190 
 
 Diff: http://reviewboard.kde.org/r/2091/diff
 
 
 Testing
 ---
 
 
 Screenshots
 ---
 
 Window runner in single runner mode
   http://reviewboard.kde.org/r/2091/s/255/
 
 
 Thanks,
 
 Jacopo
 


___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Review Request: Add support for single Runner queries to krunner (part II: krunner)

2009-11-12 Thread Jacopo De Simoi


 On 2009-11-12 20:53:01, Aaron Seigo wrote:
  the line edit for the single query mode should probably have a click text 
  that comes from the name or description of the runner being used; maybe it 
  would even be useful to put a label next to the icon with the name of the 
  runner, so it's really evident what's going on?

Clickmessage would be cool, however, since the lineedit immediately gets focus, 
it is never shown so it is useless.
A label could be a solution indeed; 
The issue is: what should the label read? just the name of the runner?


 On 2009-11-12 20:53:01, Aaron Seigo wrote:
  trunk/KDE/kdebase/workspace/krunner/interfaces/default/interface.cpp, lines 
  446-449
  http://reviewboard.kde.org/r/2091/diff/1/?file=13857#file13857line446
 
  adjustInterface(bool) is redundant; may as well just have one method, 
  setStaticQueryMode(bool)

my only concern was to give methods a meaningful name; adjustInterface does 
more than setting the static query mode or not


 On 2009-11-12 20:53:01, Aaron Seigo wrote:
  trunk/KDE/kdebase/workspace/krunner/krunnerapp.cpp, line 305
  http://reviewboard.kde.org/r/2091/diff/1/?file=13862#file13862line305
 
  isn't that a no-op due to:
  
  void KRunnerApp::singleRunnerMode(const QString runnerName)
  {
  if ( runnerName.isEmpty() ) {
  return;

actually it's 

void KRunnerDialog::setSingleRunnerMode(QString runnerName)
{
m_singleRunnerId = runnerName;

if (runnerName.isEmpty()) {
return;
}
...

KRunnerApp::singleRunnermode is the dbus method, whose name will be changed :)


- Jacopo


---
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/2091/#review3064
---


On 2009-11-07 20:29:26, Jacopo De Simoi wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 http://reviewboard.kde.org/r/2091/
 ---
 
 (Updated 2009-11-07 20:29:26)
 
 
 Review request for Plasma, Aaron Seigo and Ryan Bitanga.
 
 
 Summary
 ---
 
 This patch adds single runner query support to krunner;
 When loading the runners, if any runner supports a defaultSyntax, then this 
 is exposed via an action which shows up in the global shortcuts;
 When this action is triggered, krunner starts in single-runner-query mode; 
 i.e. queries are processed by the selected runner only; the interfaces 
 changes slightly to reflect this fact  (screenshot) and the query given by 
 the default syntax is automatically run.
 
 Also a convenient dbus interface is added, in case we want to trigger this 
 internally; 
 
 The most obvious usecase is the windows runner; an upcoming devicerunner and 
 also the nepomuk search runner could make use of this feature.
 
 
 Diffs
 -
 
   trunk/KDE/kdebase/workspace/krunner/dbus/org.kde.krunner.App.xml 1046190 
   trunk/KDE/kdebase/workspace/krunner/interfaces/default/interface.h 1046190 
   trunk/KDE/kdebase/workspace/krunner/interfaces/default/interface.cpp 
 1046190 
   trunk/KDE/kdebase/workspace/krunner/interfaces/default/resultscene.cpp 
 1046190 
   trunk/KDE/kdebase/workspace/krunner/interfaces/quicksand/qs_dialog.h 
 1046190 
   trunk/KDE/kdebase/workspace/krunner/interfaces/quicksand/qs_dialog.cpp 
 1046190 
   trunk/KDE/kdebase/workspace/krunner/krunnerapp.h 1046190 
   trunk/KDE/kdebase/workspace/krunner/krunnerapp.cpp 1046190 
   trunk/KDE/kdebase/workspace/krunner/krunnerdialog.h 1046190 
   trunk/KDE/kdebase/workspace/krunner/krunnerdialog.cpp 1046190 
 
 Diff: http://reviewboard.kde.org/r/2091/diff
 
 
 Testing
 ---
 
 
 Screenshots
 ---
 
 Window runner in single runner mode
   http://reviewboard.kde.org/r/2091/s/255/
 
 
 Thanks,
 
 Jacopo
 


___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Re: Review Request: Add support for single Runner queries to krunner (part II: krunner)

2009-11-12 Thread Aaron Seigo


 On 2009-11-12 20:53:01, Aaron Seigo wrote:
  the line edit for the single query mode should probably have a click text 
  that comes from the name or description of the runner being used; maybe it 
  would even be useful to put a label next to the icon with the name of the 
  runner, so it's really evident what's going on?
 
 Jacopo De Simoi wrote:
 Clickmessage would be cool, however, since the lineedit immediately gets 
 focus, it is never shown so it is useless.
 A label could be a solution indeed; 
 The issue is: what should the label read? just the name of the runner?

the name of the runner should be enough; hopefully it also looks good :)


 On 2009-11-12 20:53:01, Aaron Seigo wrote:
  trunk/KDE/kdebase/workspace/krunner/krunnerapp.cpp, line 305
  http://reviewboard.kde.org/r/2091/diff/1/?file=13862#file13862line305
 
  isn't that a no-op due to:
  
  void KRunnerApp::singleRunnerMode(const QString runnerName)
  {
  if ( runnerName.isEmpty() ) {
  return;
 
 Jacopo De Simoi wrote:
 actually it's 
 
 void KRunnerDialog::setSingleRunnerMode(QString runnerName)
 {
 m_singleRunnerId = runnerName;
 
 if (runnerName.isEmpty()) {
 return;
 }
 ...
 
 KRunnerApp::singleRunnermode is the dbus method, whose name will be 
 changed :)

ah, good. :)


- Aaron


---
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/2091/#review3064
---


On 2009-11-07 20:29:26, Jacopo De Simoi wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 http://reviewboard.kde.org/r/2091/
 ---
 
 (Updated 2009-11-07 20:29:26)
 
 
 Review request for Plasma, Aaron Seigo and Ryan Bitanga.
 
 
 Summary
 ---
 
 This patch adds single runner query support to krunner;
 When loading the runners, if any runner supports a defaultSyntax, then this 
 is exposed via an action which shows up in the global shortcuts;
 When this action is triggered, krunner starts in single-runner-query mode; 
 i.e. queries are processed by the selected runner only; the interfaces 
 changes slightly to reflect this fact  (screenshot) and the query given by 
 the default syntax is automatically run.
 
 Also a convenient dbus interface is added, in case we want to trigger this 
 internally; 
 
 The most obvious usecase is the windows runner; an upcoming devicerunner and 
 also the nepomuk search runner could make use of this feature.
 
 
 Diffs
 -
 
   trunk/KDE/kdebase/workspace/krunner/dbus/org.kde.krunner.App.xml 1046190 
   trunk/KDE/kdebase/workspace/krunner/interfaces/default/interface.h 1046190 
   trunk/KDE/kdebase/workspace/krunner/interfaces/default/interface.cpp 
 1046190 
   trunk/KDE/kdebase/workspace/krunner/interfaces/default/resultscene.cpp 
 1046190 
   trunk/KDE/kdebase/workspace/krunner/interfaces/quicksand/qs_dialog.h 
 1046190 
   trunk/KDE/kdebase/workspace/krunner/interfaces/quicksand/qs_dialog.cpp 
 1046190 
   trunk/KDE/kdebase/workspace/krunner/krunnerapp.h 1046190 
   trunk/KDE/kdebase/workspace/krunner/krunnerapp.cpp 1046190 
   trunk/KDE/kdebase/workspace/krunner/krunnerdialog.h 1046190 
   trunk/KDE/kdebase/workspace/krunner/krunnerdialog.cpp 1046190 
 
 Diff: http://reviewboard.kde.org/r/2091/diff
 
 
 Testing
 ---
 
 
 Screenshots
 ---
 
 Window runner in single runner mode
   http://reviewboard.kde.org/r/2091/s/255/
 
 
 Thanks,
 
 Jacopo
 


___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


Review Request: Add support for single Runner queries to krunner (part II: krunner)

2009-11-07 Thread Jacopo De Simoi

---
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/2091/
---

Review request for Plasma, Aaron Seigo and Ryan Bitanga.


Summary
---

This patch adds single runner query support to krunner;
When loading the runners, if any runner supports a defaultSyntax, then this is 
exposed via an action which shows up in the global shortcuts;
When this action is triggered, krunner starts in single-runner-query mode; i.e. 
queries are processed by the selected runner only; the interfaces changes 
slightly to reflect this fact  (screenshot) and the query given by the default 
syntax is automatically run.

Also a convenient dbus interface is added, in case we want to trigger this 
internally; 

The most obvious usecase is the windows runner; an upcoming devicerunner and 
also the nepomuk search runner could make use of this feature.


Diffs
-

  trunk/KDE/kdebase/workspace/krunner/dbus/org.kde.krunner.App.xml 1046190 
  trunk/KDE/kdebase/workspace/krunner/interfaces/default/interface.h 1046190 
  trunk/KDE/kdebase/workspace/krunner/interfaces/default/interface.cpp 1046190 
  trunk/KDE/kdebase/workspace/krunner/interfaces/default/resultscene.cpp 
1046190 
  trunk/KDE/kdebase/workspace/krunner/interfaces/quicksand/qs_dialog.h 1046190 
  trunk/KDE/kdebase/workspace/krunner/interfaces/quicksand/qs_dialog.cpp 
1046190 
  trunk/KDE/kdebase/workspace/krunner/krunnerapp.h 1046190 
  trunk/KDE/kdebase/workspace/krunner/krunnerapp.cpp 1046190 
  trunk/KDE/kdebase/workspace/krunner/krunnerdialog.h 1046190 
  trunk/KDE/kdebase/workspace/krunner/krunnerdialog.cpp 1046190 

Diff: http://reviewboard.kde.org/r/2091/diff


Testing
---


Screenshots
---

Window runner in single runner mode
  http://reviewboard.kde.org/r/2091/s/255/


Thanks,

Jacopo

___
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel