Hello again,<br><br>I *think* I&#39;ve managed to fix the things that you suggested.&nbsp; The only thing I can&#39;t get to work is saving the preferred size of the notes pane (the VBox doesn&#39;t seem to emit a configure event - I guess maybe I could change it so that when the program is quit the preference is updated, but it&#39;d be nice to get it to work the &quot;right&quot; way).&nbsp; I apologize for messy code - once again, this is mostly a learning experience for me.<br>
<br>Charlotte<br><br><div class="gmail_quote">On Mon, May 5, 2008 at 3:38 PM, Charlotte Curtis &lt;<a href="mailto:c.f.curtis@gmail.com">c.f.curtis@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks John, I have to admit I didn&#39;t quite know what I was doing at times, and I was just excited that the whole thing more or less worked.&nbsp; I originally wanted to implement this feature as a plugin, but it seemed that the required changes to the document class as well as the UI changes would be a little too complex.&nbsp; I&#39;ll take a crack at fixing the things you pointed out, and I&#39;m sure more will pop up along the way.&nbsp; Thanks again,<br>
<font color="#888888">
<br>Charlotte</font><div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Mon, May 5, 2008 at 3:02 PM, John Spray &lt;<a href="mailto:jcspray@icculus.org" target="_blank">jcspray@icculus.org</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>On Mon, 2008-05-05 at 13:35 -0400, Charlotte Curtis wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; I&#39;ve been using referencer for a while, but one thing I always wanted<br>
&gt; to be able to do was to take notes about my articles. &nbsp;I had a bit of<br>
&gt; free time and a desire to learn about gtkmm, so I tried to add some<br>
&gt; basic note functionality. &nbsp;I&#39;ve attached the patch to this email in<br>
&gt; case anyone wants to check it out. &nbsp;The functionality that should<br>
&gt; exist now is:<br>
<br>
</div>Good stuff. &nbsp;You&#39;re not the first person to wish for annotation, so I<br>
expect this to be popular.<br>
<br>
I&#39;ve committed the patch with the following changes:<br>
 &nbsp; &nbsp; &nbsp;* Fixed up the label strings to be translatable<br>
 &nbsp; &nbsp; &nbsp;* Got rid of the accelerator for export to HTML, it clashed with<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&quot;Save As&quot;. &nbsp;I don&#39;t think it&#39;s really frequently used enough to<br>
 &nbsp; &nbsp; &nbsp; &nbsp;need an accelerator anyway.<br>
 &nbsp; &nbsp; &nbsp;* Move the export action from the Tools menu to the Library menu:<br>
 &nbsp; &nbsp; &nbsp; &nbsp;the Tools menu is provided primarily for plugins providing any<br>
 &nbsp; &nbsp; &nbsp; &nbsp;truly obscure items: actions starting &quot;export&quot; should probably<br>
 &nbsp; &nbsp; &nbsp; &nbsp;go together. &nbsp;Library menu is a bit cluttered now, but it&#39;s the<br>
 &nbsp; &nbsp; &nbsp; &nbsp;lesser of two evils until I figure out a non-evil way.<br>
Diff at <a href="http://hg.icculus.org/jcspray/referencer/rev/922d9cf167b9" target="_blank">http://hg.icculus.org/jcspray/referencer/rev/922d9cf167b9</a><br>
<br>
I couldn&#39;t find any serious bugs in the patch, but that doesn&#39;t mean<br>
the ravenous hordes won&#39;t: I&#39;d encourage anyone comfortable with running<br>
from hg to try out the latest.<br>
<br>
There are some other changes I&#39;d like to see before releasing it:<br>
 &nbsp; &nbsp; &nbsp;* The HTML output should include a meta tag specifying UTF-8<br>
 &nbsp; &nbsp; &nbsp; &nbsp;encoding, assuming this is what comes out when one does a &lt;&lt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;between std::ofstream and Glib::ustring. &nbsp;See for example<br>
 &nbsp; &nbsp; &nbsp; &nbsp;www/index.html.<br>
 &nbsp; &nbsp; &nbsp;* I don&#39;t like the invocation of docSelectionChanged in<br>
 &nbsp; &nbsp; &nbsp; &nbsp;onSaveLibrary: I think adding a function that commits any<br>
 &nbsp; &nbsp; &nbsp; &nbsp;outstanding notes changes would be preferable, even if this is<br>
 &nbsp; &nbsp; &nbsp; &nbsp;the only place it&#39;s used.<br>
 &nbsp; &nbsp; &nbsp;* Document titles should be ellipsized to the available space -<br>
 &nbsp; &nbsp; &nbsp; &nbsp;really long titles otherwise cause the window to be resized. &nbsp;I<br>
 &nbsp; &nbsp; &nbsp; &nbsp;tried using set_ellipsize on the label from<br>
 &nbsp; &nbsp; &nbsp; &nbsp;notespane_-&gt;get_label_widget, but it didn&#39;t have the correct<br>
 &nbsp; &nbsp; &nbsp; &nbsp;effect. &nbsp;Probably a Gtk::Frame problem. &nbsp;See the first item of<br>
 &nbsp; &nbsp; &nbsp; &nbsp;the next list.<br>
<br>
And some things that would be nice:<br>
 &nbsp; &nbsp; &nbsp;* A Gtk::Stock::CLOSE button in the top right corner of the notes<br>
 &nbsp; &nbsp; &nbsp; &nbsp;area. &nbsp;Should be simple if you replace the Gtk::Frame(TextView)<br>
 &nbsp; &nbsp; &nbsp; &nbsp;with Vbox(Hbox(Label,Button), TextView). &nbsp;That would also allow<br>
 &nbsp; &nbsp; &nbsp; &nbsp;adding some space around the &quot;Notes for&quot; label which is a bit<br>
 &nbsp; &nbsp; &nbsp; &nbsp;cramped as it is.<br>
 &nbsp; &nbsp; &nbsp;* The size of the notes area should be saved as a preference -- I<br>
 &nbsp; &nbsp; &nbsp; &nbsp;can imagine users having wildly different expectations of the<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&quot;right&quot; size.<br>
 &nbsp; &nbsp; &nbsp;* If a document has an empty title it would be nice to use the key<br>
 &nbsp; &nbsp; &nbsp; &nbsp;name instead or failing that put &quot;unnamed&quot; rather than having<br>
 &nbsp; &nbsp; &nbsp; &nbsp;the abrupt &quot;Notes for&quot;<br>
<br>
<br>
Cheers,<br>
John<br>
<br>
<br>
---<br>
To unsubscribe, send a blank email to <a href="mailto:referencer-unsubscribe@icculus.org" target="_blank">referencer-unsubscribe@icculus.org</a><br>
Mailing list archives: <a href="http://icculus.org/cgi-bin/ezmlm/ezmlm-cgi?60" target="_blank">http://icculus.org/cgi-bin/ezmlm/ezmlm-cgi?60</a><br>
<br>
<br>
</blockquote></div><br>
</div></div></blockquote></div><br>