<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Wow that sounds cool. When I get a chance I would love to add the memory name.frequency display button for tyt h9800. I’ll have to give it a try when I have some time.<div class=""><br class=""></div><div class="">James</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 27, 2015, at 1:06 AM, Kosta Arvanitis <<a href="mailto:kosta@alumni.uvic.ca" class="">kosta@alumni.uvic.ca</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">I have put together a quick prototype which allows the Radio class, via the features interface, to expose user defined memory attributes. In a way it extends the memory object allowing the user to generically specify editable columns in the edit view.<br class=""> <br class="">As this is only a prototype, I have only upgraded two radio classes (UV5R and FT60) to utilize this feature and not all portions of the mem edit view support it. You can try it by applying the supplied patch, I would appreciate the feedback.<br class=""> <br class="">Under the current prototype users can define user extensions to the memory class by specifying a tuple in the radio features structure. This tuple defines the caption, type, and choices for each "user" defined memory which is then stored in the memory's "user" dictionary.<br class=""> <br class="">For example,<br class=""> <br class=""> def get_features(self):<br class=""> ...<br class=""> rf.valid_user_mem = [ ("BCL", TYPE_BOOLEAN, "bcl", False, None), \<br class=""> ("PTT ID", TYPE_STRING, "pttid", PTTID_LIST[0], PTTID_LIST)<br class=""> <br class=""> def get_memory(self, number):<br class=""> ....<br class=""> mem.user["bcl"] = _mem.bcl<br class=""> mem.user["pttid"] = PTTID_LIST[_mem.pttid]<br class=""><br class=""> <br class="">As a result "BCL" and "PTT ID" will appear in the memory editor as either Text or ComboBox ui elements, depending on whether or not choices are provided. Two values will be added to the dictionary under the keys "blc" and "pttid" each of the respective type defined by the tuple.<br class=""> <br class="">This API is simply a proof of concept, no mention is made to committing the code as is. <br class=""> <br class=""> This may allow us to ask the question, does it make sense to allow each radio define its own memory class, rather than a single common class that all radios must adhere too...? While many radios share many similar attributes, it is not uncommon for a particular make/model to deviate from this slightly. This is even more true when it comes to settings.<br class=""> <br class="">We may wish to take this a bit further and help define a method of serializing raw memory into a class object which may then be reflected to appear in the memory editor, settings editor, etc.. thus resulting in a completely radio driven interface... <br class=""> <br class=""> <br class="">-kosta<br class=""> <br class=""><div class=""><hr id="stopSpelling" class="">From:<span class="Apple-converted-space"> </span><a href="mailto:kosta@alumni.uvic.ca" class="">kosta@alumni.uvic.ca</a><br class="">To:<span class="Apple-converted-space"> </span><a href="mailto:af5mi@yahoo.com" class="">af5mi@yahoo.com</a>;<span class="Apple-converted-space"> </span><a href="mailto:chirp_devel@intrepid.danplanet.com" class="">chirp_devel@intrepid.danplanet.com</a><br class="">Date: Sat, 24 Jan 2015 13:37:28 -0800<br class="">Subject: Re: [chirp_devel] accessing channel edit menu on mac<br class=""><br class=""><div dir="ltr" class="">Hi Jens,<br class=""> <br class="">I also find it counter intuitive; the mem.extra concept is hidden too deep in the ui so that some users may not necessarily realize it exists. Unfortunately, the TreeView does not support CellRendered buttons that would allow us to directly show to the Edit dialog.<br class=""> <br class="">Maybe there is another method for exposing custom channel settings.<br class=""> <br class=""> <br class="">-kosta<br class=""> <br class=""><div class=""><hr id="ecxstopSpelling" class="">Date: Sat, 24 Jan 2015 20:46:09 +0000<br class="">From:<span class="Apple-converted-space"> </span><a href="mailto:af5mi@yahoo.com" class="">af5mi@yahoo.com</a><br class="">To:<span class="Apple-converted-space"> </span><a href="mailto:chirp_devel@intrepid.danplanet.com" class="">chirp_devel@intrepid.danplanet.com</a>;<span class="Apple-converted-space"> </span><a href="mailto:kosta@alumni.uvic.ca" class="">kosta@alumni.uvic.ca</a><br class="">Subject: Re: [chirp_devel] accessing channel edit menu on mac<br class=""><br class=""><div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" class=""><div id="ecxyui_3_16_0_1_1422131583051_7532" dir="ltr" class="">Dan,<br class=""></div><div id="ecxyui_3_16_0_1_1422131583051_7532" dir="ltr" class=""><span id="ecxyui_3_16_0_1_1422131583051_7624" class="">I sent a separate query - I'm not sure how/when you determine if the radio has extra settings. Seems mem.extra is only populated sometimes for set_memory.</span></div><div id="ecxyui_3_16_0_1_1422131583051_7532" dir="ltr" class=""><span id="ecxyui_3_16_0_1_1422131583051_7667" class="">Should this be a radio features flag, e.g., rf.has_extra_channel_settings?</span></div><div id="ecxyui_3_16_0_1_1422131583051_7727" class=""><br class=""></div><div id="ecxyui_3_16_0_1_1422131583051_7532" dir="ltr" class=""><span id="ecxyui_3_16_0_1_1422131583051_7679" class="">Hi Kosta,</span></div><div id="ecxyui_3_16_0_1_1422131583051_7532" dir="ltr" class=""><span id="ecxyui_3_16_0_1_1422131583051_7619" class="">I noticed you seem to be very comfortable with GTK and UI portions of the code.</span></div><div id="ecxyui_3_16_0_1_1422131583051_7532" dir="ltr" class=""><span id="ecxyui_3_16_0_1_1422131583051_7620" class="">Do you know what it would take to enable a column in edit table view with an "edit" button when the radio has extended channel settings?</span></div><div id="ecxyui_3_16_0_1_1422131583051_7532" dir="ltr" class=""><span class=""><br class=""></span></div><div id="ecxyui_3_16_0_1_1422131583051_7532" dir="ltr" class=""><span id="ecxyui_3_16_0_1_1422131583051_7695" class="">I suspect alot of users aren't even aware that there are extra channel settings for some radios (even in windows world, unless they are handy with right-click, i.e., power-users)</span></div><div id="ecxyui_3_16_0_1_1422131583051_7532" dir="ltr" class=""><span class=""><br class=""></span></div><div id="ecxyui_3_16_0_1_1422131583051_7532" dir="ltr" class=""><span class="">-Jens</span></div><div id="ecxyui_3_16_0_1_1422131583051_7532" dir="ltr" class=""><span class=""><br class=""></span></div><div id="ecxyui_3_16_0_1_1422131583051_7529" style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;" class=""><div id="ecxyui_3_16_0_1_1422131583051_7528" style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;" class=""><div id="ecxyui_3_16_0_1_1422131583051_7530" dir="ltr" class=""><hr size="1" id="ecxyui_3_16_0_1_1422131583051_7621" class=""><font id="ecxyui_3_16_0_1_1422131583051_7531" face="Arial" size="2" class=""><b class=""><span style="font-weight: bold;" class="">From:</span></b><span class="Apple-converted-space"> </span>Dan Smith <<a href="mailto:dsmith@danplanet.com" class="">dsmith@danplanet.com</a>><br class=""><b class=""><span style="font-weight: bold;" class="">To:</span></b><span class="Apple-converted-space"> </span><a href="mailto:chirp_devel@intrepid.danplanet.com" class="">chirp_devel@intrepid.danplanet.com</a><span class="Apple-converted-space"> </span><br class=""><b class=""><span style="font-weight: bold;" class="">Sent:</span></b><span class="Apple-converted-space"> </span>Thursday, January 22, 2015 9:45 AM<br class=""><b id="ecxyui_3_16_0_1_1422131583051_7685" class=""><span id="ecxyui_3_16_0_1_1422131583051_7684" style="font-weight: bold;" class="">Subject:</span></b><span class="Apple-converted-space"> </span>Re: [chirp_devel] accessing channel edit menu on mac<br class=""></font></div><div class="ecxy_msg_container" id="ecxyui_3_16_0_1_1422131583051_7527"><br class="">> Besides right-clicking fpr context menu on a channel, is there a way to<br clear="none" class="">> access the channel edit menu, i.e., by keyboard shortcut or other<br clear="none" class="">> combination if user doesnt have right-click mouse setup (I think most<br clear="none" class="">> mac users dont).<br clear="none" class=""><br clear="none" class="">Well, control-click gets you that without any extra settings, but I can<br clear="none" class="">imagine that dyed in the wool mac folks probably wouldn't think of that.<br clear="none" class=""><br clear="none" class="">> I'm wondering how users would even know to look at the extended edit<br clear="none" class="">> menu for channels.<br clear="none" class=""><br clear="none" class="">Well, I right-click on everything looking for more stuff, but... :)<div class="ecxqtdSeparateBR"><br class=""><br class=""></div><div class="ecxyqt4940668302" id="ecxyqtfd99585"><br clear="none" class=""><br clear="none" class="">> Maybe one of the columns (last one?) should contain an edit button which<br clear="none" class="">> has the same functionality (open edit window for that channel).</div><br clear="none" class=""><br clear="none" class="">Yeah, that seems reasonable, as long as we only display that button for<br clear="none" class="">radios that have extra settings in the memories.<br clear="none" class=""><br clear="none" class="">--Dan<div class="ecxyqt4940668302" id="ecxyqtfd90073"><br clear="none" class=""></div><br class="">_______________________________________________<br clear="none" class="">chirp_devel mailing list<br clear="none" class=""><a href="mailto:chirp_devel@intrepid.danplanet.com" shape="rect" class="">chirp_devel@intrepid.danplanet.com</a><br clear="none" class=""><a href="http://intrepid.danplanet.com/mailman/listinfo/chirp_devel" target="_blank" shape="rect" class="">http://intrepid.danplanet.com/mailman/listinfo/chirp_devel</a><br clear="none" class="">Developer docs:<span class="Apple-converted-space"> </span><a href="http://chirp.danplanet.com/projects/chirp/wiki/Developers" target="_blank" shape="rect" class="">http://chirp.danplanet.com/projects/chirp/wiki/Developers</a><br class=""><br class=""></div></div></div></div></div></div><br class="">_______________________________________________ chirp_devel mailing list<a href="mailto:chirp_devel@intrepid.danplanet.com" class="">chirp_devel@intrepid.danplanet.com</a><a href="http://intrepid.danplanet.com/mailman/listinfo/chirp_devel" class="">http://intrepid.danplanet.com/mailman/listinfo/chirp_devel</a><span class="Apple-converted-space"> </span>Developer docs:<span class="Apple-converted-space"> </span><a href="http://chirp.danplanet.com/projects/chirp/wiki/Developers" class="">http://chirp.danplanet.com/projects/chirp/wiki/Developers</a></div></div><span id="cid:1674F362-3D6E-4EEA-B704-CE196491A69F"><2015-01-26_22-02-14_r2342+.diff></span><span style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">chirp_devel mailing list</span><br style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:chirp_devel@intrepid.danplanet.com" style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">chirp_devel@intrepid.danplanet.com</a><br style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://intrepid.danplanet.com/mailman/listinfo/chirp_devel" style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">http://intrepid.danplanet.com/mailman/listinfo/chirp_devel</a><br style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Developer docs:<span class="Apple-converted-space"> </span></span><a href="http://chirp.danplanet.com/projects/chirp/wiki/Developers" style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">http://chirp.danplanet.com/projects/chirp/wiki/Developers</a></div></blockquote></div><br class=""></div></body></html>