<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 25/04/2022 à 19:07, Mariano Montone
via Cuis-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:23e576db-a7d6-0b19-5480-180da8bfb950@gmail.com"><br>
<div class="moz-cite-prefix">-------------------------------<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Props-Preferences package builds on
top of 'Props' library, a library I implemented for adding
properties to objects.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Evaluate: 'PropertiesBrowser openOn:
Preferences'.</div>
</blockquote>
<p>Installation did not work:<br>
</p>
<img moz-do-not-send="false"
src="cid:part1.h7n0Fo5P.GRKxgbUJ@drgeo.eu" alt="" width="476"
height="86">
<p>I wrote a simple ValueModel in Cuis-Smalltalk-UI, we should
synchronized because I think I could not follow the protocol with
value/value: (propertyValue/propertyValue:)<br>
</p>
<p>In the meantime I wrote a simple Preference browser for the
boolean preferences. It uses the widgets found in
Cuis-Smalltalk-UI. The package is in the tools/ section of the
Cuis-Smalltalk-UI repo.<br>
</p>
<img moz-do-not-send="false"
src="cid:part2.v5GmgYij.240IaGxy@drgeo.eu" alt="" width="799"
height="596">
<p><br>
</p>
<blockquote type="cite"
cite="mid:23e576db-a7d6-0b19-5480-180da8bfb950@gmail.com">
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">-------------------------------<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Neither is very polished, though.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">One problem I have with Cuis
preferences is that not every preference is declared explicitly
with name, proper description and data type. <br>
</div>
<div class="moz-cite-prefix">And so tools need to infer that
information sometimes. I wish that was something that changed in
Cuis, so we can have better tools for editing preferences.</div>
</blockquote>
<p>Yes, in the Preference model I did not find way to define data
type. Beside boolean, you may need to define preferences as an
index from a list, free string, closure, number from a slider.</p>
<p>For example Preference>>togglePreferenceValue broke when
used with non boolean preference.<br>
</p>
<p>Hilaire<br>
</p>
<p><br>
</p>
<pre class="moz-signature" cols="72">--
GNU Dr. Geo
<a class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a class="moz-txt-link-freetext" href="http://blog.drgeo.eu">http://blog.drgeo.eu</a></pre>
</body>
</html>