[squeak-dev] Preference #swapMouseButtons in Cuis?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
15 messages Options
bpi
Reply | Threaded
Open this post in threaded view
|

[squeak-dev] Preference #swapMouseButtons in Cuis?

bpi
The preference is there. I see it in the inspector which opens on  
World > help... > preferences... I canged it using an inspect, but it  
was not honoured. Any ideas why?

Is it the preferred way to post bug reports to this list, by the way?

A UI for setting the preferences would be great IMO.

Cheers,
Bernhard

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Preference #swapMouseButtons in Cuis?

Juan Vuletich-4
Hi Bernhard,

Bernhard Pieber wrote:
> The preference is there. I see it in the inspector which opens on
> World > help... > preferences... I canged it using an inspect, but it
> was not honoured. Any ideas why?

Yes. You need to do InputSensor swapMouseButtons: true . Please look at
this method to see why. Some preferences are a bit "special" and setting
the value in the Preferences dictionary is not enough.

>
> Is it the preferred way to post bug reports to this list, by the way?

So far, yes. At some time it might make sense to ask if would it be ok
to use Mantis for Cuis and other Squeak derivatives, or if a Cuis
specific bug tracker is needed.

>
> A UI for setting the preferences would be great IMO.
>
> Cheers,
> Bernhard

Cheers,
Juan Vuletich

bpi
Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Preference #swapMouseButtons in Cuis?

bpi
Am 11.07.2009 um 23:51 schrieb Juan Vuletich:
> Yes. You need to do InputSensor swapMouseButtons: true . Please look  
> at this method to see why. Some preferences are a bit "special" and  
> setting the value in the Preferences dictionary is not enough.
Thanks. Now I see. Hmm, doesn't that make the Preferences inspector  
quite useless for these preferences?

Cheers,
Bernhard

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Preference #swapMouseButtons in Cuis?

Juan Vuletich-4
Bernhard Pieber wrote:
> Am 11.07.2009 um 23:51 schrieb Juan Vuletich:
>> Yes. You need to do InputSensor swapMouseButtons: true . Please look
>> at this method to see why. Some preferences are a bit "special" and
>> setting the value in the Preferences dictionary is not enough.
> Thanks. Now I see. Hmm, doesn't that make the Preferences inspector
> quite useless for these preferences?

Yes... :(

Cheers,
Juan Vuletich

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Preference #swapMouseButtons in Cuis?

Bert Freudenberg

On 13.07.2009, at 04:41, Juan Vuletich wrote:

> Bernhard Pieber wrote:
>> Am 11.07.2009 um 23:51 schrieb Juan Vuletich:
>>> Yes. You need to do InputSensor swapMouseButtons: true . Please  
>>> look at this method to see why. Some preferences are a bit  
>>> "special" and setting the value in the Preferences dictionary is  
>>> not enough.
>> Thanks. Now I see. Hmm, doesn't that make the Preferences inspector  
>> quite useless for these preferences?
>
> Yes... :(


Err, you can register a method to be called whenever a preference is  
changed.

- Bert -



Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Preference #swapMouseButtons in Cuis?

Juan Vuletich-4
Bert Freudenberg wrote:

>
> On 13.07.2009, at 04:41, Juan Vuletich wrote:
>
>> Bernhard Pieber wrote:
>>> Am 11.07.2009 um 23:51 schrieb Juan Vuletich:
>>>> Yes. You need to do InputSensor swapMouseButtons: true . Please
>>>> look at this method to see why. Some preferences are a bit
>>>> "special" and setting the value in the Preferences dictionary is
>>>> not enough.
>>> Thanks. Now I see. Hmm, doesn't that make the Preferences inspector
>>> quite useless for these preferences?
>>
>> Yes... :(
>
>
> Err, you can register a method to be called whenever a preference is
> changed.
>
> - Bert -
Right! In this case instead of setting the 'value' instance variable in
the preference, you'd do 'self preferenceValue: true'.

Cheers,
Juan Vuletich

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Preference #swapMouseButtons in Cuis?

Bert Freudenberg

On 16.07.2009, at 02:47, Juan Vuletich wrote:

> Bert Freudenberg wrote:
>>
>> On 13.07.2009, at 04:41, Juan Vuletich wrote:
>>
>>> Bernhard Pieber wrote:
>>>> Am 11.07.2009 um 23:51 schrieb Juan Vuletich:
>>>>> Yes. You need to do InputSensor swapMouseButtons: true . Please  
>>>>> look at this method to see why. Some preferences are a bit  
>>>>> "special" and setting the value in the Preferences dictionary is  
>>>>> not enough.
>>>> Thanks. Now I see. Hmm, doesn't that make the Preferences  
>>>> inspector quite useless for these preferences?
>>>
>>> Yes... :(
>>
>>
>> Err, you can register a method to be called whenever a preference  
>> is changed.
>>
>> - Bert -
> Right! In this case instead of setting the 'value' instance variable  
> in the preference, you'd do 'self preferenceValue: true'.
>
> Cheers,
> Juan Vuletich


No, what I meant is that even if you change a preference in the  
preferences dialog, a method can be executed to make all adjustments  
necessary. In fact, in my image the #swapMouseButtons preference does  
inform InputSensor:

(Preferences preferenceAt: #swapMouseButtons) longPrintString
'name: #swapMouseButtons
value: false
defaultValue: false
helpString: ''if true, swaps mouse buttons 2 and 3''
localToProject: false
categoryList: #(#general)
changeInformee: InputSensor
changeSelector: #installMouseDecodeTable
viewRegistry: a PreferenceViewRegistry
'

- Bert -



Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Preference #swapMouseButtons in Cuis?

Juan Vuletich-4
>
> On 16.07.2009, at 02:47, Juan Vuletich wrote:
>
>> Bert Freudenberg wrote:
>>>
>>> On 13.07.2009, at 04:41, Juan Vuletich wrote:
>>>
>>>> Bernhard Pieber wrote:
>>>>> Am 11.07.2009 um 23:51 schrieb Juan Vuletich:
>>>>>> Yes. You need to do InputSensor swapMouseButtons: true . Please
>>>>>> look at this method to see why. Some preferences are a bit
>>>>>> "special" and setting the value in the Preferences dictionary is
>>>>>> not enough.
>>>>> Thanks. Now I see. Hmm, doesn't that make the Preferences
>>>>> inspector quite useless for these preferences?
>>>>
>>>> Yes... :(
>>>
>>>
>>> Err, you can register a method to be called whenever a preference
>>> is changed.
>>>
>>> - Bert -
>> Right! In this case instead of setting the 'value' instance variable
>> in the preference, you'd do 'self preferenceValue: true'.
>>
>> Cheers,
>> Juan Vuletich
>
>
> No, what I meant is that even if you change a preference in the
> preferences dialog, a method can be executed to make all adjustments
> necessary. In fact, in my image the #swapMouseButtons preference does
> inform InputSensor:
>
> (Preferences preferenceAt: #swapMouseButtons) longPrintString
> 'name: #swapMouseButtons
> value: false
> defaultValue: false
> helpString: ''if true, swaps mouse buttons 2 and 3''
> localToProject: false
> categoryList: #(#general)
> changeInformee: InputSensor
> changeSelector: #installMouseDecodeTable
> viewRegistry: a PreferenceViewRegistry
> '
>
> - Bert -

Cuis does not include the preferences dialog. That's why we are talking
about the inspector.

Cheers,
Juan Vuletich



bpi
Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Preference #swapMouseButtons in Cuis?

bpi
In reply to this post by Juan Vuletich-4
Ah, I didn't know that. Thanks!

Cheers,
Bernhard

Am 16.07.2009 um 02:47 schrieb Juan Vuletich:
> Bert Freudenberg wrote:
>> On 13.07.2009, at 04:41, Juan Vuletich wrote:
>>> Bernhard Pieber wrote:
>>>> Thanks. Now I see. Hmm, doesn't that make the Preferences  
>>>> inspector quite useless for these preferences?
>>
>> Yes... :(
> Err, you can register a method to be called whenever a preference is  
> changed.

Right! In this case instead of setting the 'value' instance variable  
in the preference, you'd do 'self preferenceValue: true'.


bpi
Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Preference #swapMouseButtons in Cuis?

bpi
In reply to this post by Juan Vuletich-4
Am 16.07.2009 um 14:41 schrieb [hidden email]:
> Cuis does not include the preferences dialog. That's why we are  
> talking
> about the inspector.
It would be really cool to have one, though. ;-)

Cheers,
Bernhard

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Preference #swapMouseButtons in Cuis?

Igor Stasenko
In reply to this post by Juan Vuletich-4
2009/7/16  <[hidden email]>:

>>
>> On 16.07.2009, at 02:47, Juan Vuletich wrote:
>>
>>> Bert Freudenberg wrote:
>>>>
>>>> On 13.07.2009, at 04:41, Juan Vuletich wrote:
>>>>
>>>>> Bernhard Pieber wrote:
>>>>>> Am 11.07.2009 um 23:51 schrieb Juan Vuletich:
>>>>>>> Yes. You need to do InputSensor swapMouseButtons: true . Please
>>>>>>> look at this method to see why. Some preferences are a bit
>>>>>>> "special" and setting the value in the Preferences dictionary is
>>>>>>> not enough.
>>>>>> Thanks. Now I see. Hmm, doesn't that make the Preferences
>>>>>> inspector quite useless for these preferences?
>>>>>
>>>>> Yes... :(
>>>>
>>>>
>>>> Err, you can register a method to be called whenever a preference
>>>> is changed.
>>>>
>>>> - Bert -
>>> Right! In this case instead of setting the 'value' instance variable
>>> in the preference, you'd do 'self preferenceValue: true'.
>>>
>>> Cheers,
>>> Juan Vuletich
>>
>>
>> No, what I meant is that even if you change a preference in the
>> preferences dialog, a method can be executed to make all adjustments
>> necessary. In fact, in my image the #swapMouseButtons preference does
>> inform InputSensor:
>>
>> (Preferences preferenceAt: #swapMouseButtons) longPrintString
>> 'name:        #swapMouseButtons
>> value:        false
>> defaultValue:         false
>> helpString:   ''if true, swaps mouse buttons 2 and 3''
>> localToProject:       false
>> categoryList:         #(#general)
>> changeInformee:       InputSensor
>> changeSelector:       #installMouseDecodeTable
>> viewRegistry:         a PreferenceViewRegistry
>> '
>>
>> - Bert -
>
> Cuis does not include the preferences dialog. That's why we are talking
> about the inspector.
>

oh, then you might try to integrate a new preference system, like
someone proposed - with pragmas and other stuff.


> Cheers,
> Juan Vuletich
>
>
>
>



--
Best regards,
Igor Stasenko AKA sig.

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Preference #swapMouseButtons in Cuis?

Juan Vuletich-4
Igor Stasenko wrote:
> 2009/7/16  <[hidden email]>:
>  
>> Cuis does not include the preferences dialog. That's why we are talking
>> about the inspector.
>>
>>    
>
> oh, then you might try to integrate a new preference system, like
> someone proposed - with pragmas and other stuff

New preference system? Do you have any pointers? (Just curious...)

Cheers,
Juan Vuletich

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Preference #swapMouseButtons in Cuis?

Igor Stasenko
2009/7/17 Juan Vuletich <[hidden email]>:

> Igor Stasenko wrote:
>>
>> 2009/7/16  <[hidden email]>:
>>
>>>
>>> Cuis does not include the preferences dialog. That's why we are talking
>>> about the inspector.
>>>
>>>
>>
>> oh, then you might try to integrate a new preference system, like
>> someone proposed - with pragmas and other stuff
>
> New preference system? Do you have any pointers? (Just curious...)
>
Here, i think one of the thread(s) where it was discussed:
http://lists.gforge.inria.fr/pipermail/pharo-project/2009-March/006204.html

(there is also some more, try searching a pharo/squeak-dev mail archives)

> Cheers,
> Juan Vuletich
>
>



--
Best regards,
Igor Stasenko AKA sig.

Reply | Threaded
Open this post in threaded view
|

[squeak-dev] Re: Preference #swapMouseButtons in Cuis?

Andreas.Raab
In reply to this post by Juan Vuletich-4
Juan Vuletich wrote:
> New preference system? Do you have any pointers? (Just curious...)

http://bugs.squeak.org/view.php?id=7306 (remember I suggested using this
in MessageTally?)

Cheers,
   - Andreas

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Re: Preference #swapMouseButtons in Cuis?

Juan Vuletich-4
Andreas Raab wrote:
> Juan Vuletich wrote:
>> New preference system? Do you have any pointers? (Just curious...)
>
> http://bugs.squeak.org/view.php?id=7306 (remember I suggested using
> this in MessageTally?)
>

Oh, yes. Thanks. Cuis doesn't support pragmas, though.

WRT MessageTally, in Cuis we have

spyAllOn: aBlock      "aBlock can be something like [ (Delay
forMilliseconds: 100) wait]"
spyOn: aBlock
spyOnProcess: aProcess forMilliseconds: msecDuration

These covers all I needed pretty well. I also added:

Utilities reportCPUandRAM

This is triggered by a hotkey in our system. In case of unexpected
slowdowns (we use a very slow processor), the hotkey is pressed and the
report sent to me for analysis. Very handy :)

Cheers,
Juan Vuletich

> Cheers,
>   - Andreas