On Thu, Jan 29, 2015 at 8:56 AM, Hernán Morales Durand < [email protected]> wrote:
> Hi Tudor, > > 2015-01-28 19:36 GMT-03:00 Tudor Girba <[email protected]>: > >> Hi Hernan, >> >> A couple of things. First, you do not want to disable Raw for an object >> because that implies that you will have no option for inspecting that raw >> state of that object. >> >> You are not forced to have multiple views. Only if you want them :). >> >> It seems to me that you are trying to overuse the inspector for >> customers. That is not the intention. The inspector is for developers. >> >> > I think we finally found the real point. > I see Glamour has the potential to become a framework to build final UI's, > not only for developers. > And I hope one day anyone could build their own view of objects even > visually. > yes, but glamour ~= gtinspector glamour is the framework gtinspector is a tool made with glamour (and a tool intended for developers) Esteban > > >> However, once you have various presentations for an object, you can put >> them together in a filtered inspector or even in a complete browser >> altogether. This is where Glamour kicks in. See here an example: >> >> http://www.humane-assessment.com/blog/creating-custom-browsers-out-of-inspector-extensions/ >> >> > Thank you for the link *and* the post, I will check if could suit my needs. > > Cheers, > > Hernán > > Cheers, >> Doru >> >> >> >> On Wed, Jan 28, 2015 at 6:35 PM, Hernán Morales Durand < >> [email protected]> wrote: >> >>> >>> >>> 2015-01-28 5:44 GMT-03:00 Sven Van Caekenberghe <[email protected]>: >>> >>>> >>>> > On 28 Jan 2015, at 08:33, Hernán Morales Durand < >>>> [email protected]> wrote: >>>> > >>>> > >>>> > >>>> > 2015-01-27 5:11 GMT-03:00 Tudor Girba <[email protected]>: >>>> > Hi Hernan, >>>> > >>>> > GTInspector was built to be extensible without any subclassing :). >>>> > >>>> > The GTObjectVariablesBrowser shows the raw view and you probably do >>>> not want to mess with that. Rather than that you should create a new tab >>>> for your own class. >>>> > >>>> > The way you extend it for a specific class is by defining a method >>>> like this: >>>> > >>>> > MyClass>>gtInspectorCustomListIn: composite >>>> > <gtInspectorPresentationOrder: 10> >>>> > composite list >>>> > title: 'My list' >>>> > display: [ self list] >>>> > >>>> > If you want to see all inspector extensions available in the image >>>> take a look at the following post: >>>> > http://www.humane-assessment.com/blog/managing-gtinspector-extensions >>>> > >>>> > Nice! >>>> > So it would be: >>>> > >>>> > gtInspectorCustomListIn: composite >>>> > <gtInspectorPresentationOrder: 10> >>>> > >>>> > composite list >>>> > title: 'My list'; >>>> > display: [ self container ]; >>>> > selectionAct: [ self actionForA ] on: $A entitled: 'Menu Item >>>> A'; >>>> > selectionAct: [ self actionForB ] on: $B entitled: 'Menu Item >>>> B'. >>>> > >>>> > It is possible to remove the "Raw" and "Meta" tabs? >>>> >>>> Why ? The whole idea is to have multiple views. >>>> >>>> >>> Even if it were nice one can have multiple views, it would be better no >>> to be forced to have them. >>> As practical reason that would only confuse my users. >>> >>> Beyond that, the inspector doesn't feel flexible enough if one must have >>> multiple views. >>> >>> >>> >>>> If you have a homogeneous list on the left and select one tab on the >>>> right, moving up and down the list should keep the same tab selected, even >>>> if it is not the highest priority one. >>>> >>>> > >>>> > Does it help? >>>> > >>>> > Doru >>>> > >>>> > On Tue, Jan 27, 2015 at 8:52 AM, Hernán Morales Durand < >>>> [email protected]> wrote: >>>> > >>>> > >>>> > 2015-01-27 3:41 GMT-03:00 Tudor Girba <[email protected]>: >>>> > Hi, >>>> > >>>> > On Mon, Jan 26, 2015 at 11:58 PM, Hernán Morales Durand < >>>> [email protected]> wrote: >>>> > >>>> > >>>> > 2015-01-26 6:25 GMT-03:00 Tudor Girba <[email protected]>: >>>> > Hi, >>>> > >>>> > On Mon, Jan 26, 2015 at 10:18 AM, Hernán Morales Durand < >>>> [email protected]> wrote: >>>> > >>>> > 2015-01-26 5:54 GMT-03:00 Tudor Girba <[email protected]>: >>>> > There is no way at the moment. >>>> > >>>> > Just out of curiosity, why do you need to select an item if you do >>>> not want to see the details? >>>> > >>>> > >>>> > This is for two reasons >>>> > >>>> > 1) I have items with big strings inside and it takes too long to load >>>> in the new inspector sub-window. >>>> > >>>> > Why should it take too long? Is it because printString is too >>>> expensive? In that case, perhaps you might want to make printString cheaper >>>> and offer a separate presentation for your object that shows the full >>>> contents. >>>> > >>>> > >>>> > I don't know, I have this 7.7Mb XML file, opened the Time Profiler >>>> with: >>>> > >>>> > 'DLoop_Bovino_31-10-14-Alignment.xml' asFileReference contents >>>> inspect. >>>> > >>>> > it took almost 6 minutes to open the inspector. >>>> > >>>> > Here is the link to the file: >>>> https://www.dropbox.com/s/pzw88gg3wyfkf8o/DLoop_Bovino_31-10-14-Alignment.zip?dl=0 >>>> > Here is the full report >>>> > >>>> > - 350675 tallies, 359630 msec. >>>> > >>>> > Hmm, Something is strange. I open the inspector on the same file in >>>> 1192 ms. It takes so long because the first presentation is a text >>>> presentation of the contents of that file. What image do you use? Is it >>>> possible that you have extra . Could you make it available? >>>> > >>>> > >>>> > I am using #40463 in Windows 8.1 x64. This is how I download the image >>>> > >>>> > $ wget -O- get.pharo.org/40+vm | bash >>>> > >>>> > image link with test file: >>>> https://www.dropbox.com/s/57hprg7cyryd9cs/testGT1.zip?dl=0 >>>> > >>>> > >>>> > Could you (or anyone) reproduce the case? >>>> > The dropbox upload is vanilla image. >>>> > >>>> > >>>> > >>>> > >>>> > 2) I select the item to send a message to it, or bring a pop-up menu >>>> to remove the item (I have implemented it in the old inspector and I would >>>> like to port it to Pharo 4) >>>> > >>>> > This implies that you actually need a custom presentation. For such a >>>> custom presentation you can suppress the propagation of selection. If you >>>> tell me your use case in more details I can try to guide you. >>>> > >>>> > >>>> > My use case is I want to add or remove items from an >>>> Inspector/Explorer. >>>> > The items are classified objects and the user curates false positives. >>>> > Another item I used to have is "Serialize" the inspector contents (or >>>> from a specific item) so that one could import the curated data set and >>>> review. >>>> > >>>> > Do you mean items from collections in general, or items stored as a >>>> collection in a specific object? If you mean the latter, you can create a >>>> custom presentation just for that object and add all the actions you want. >>>> Do you want to give it a try? If yes, let me know the more specific use >>>> case and I can help :) >>>> > >>>> > >>>> > I would be glad to get some help :) >>>> > I tried subclassing GTInspector. I see you implemented menu items in >>>> GTObjectVariablesBrowser. >>>> > So question is how could I implement my own >>>> "GTObjectVariablesBrowser" and link to GTInspector subclass? >>>> > Thank you Doru. >>>> > >>>> > >>>> > Hernán >>>> > >>>> > >>>> > Doru >>>> > >>>> > >>>> > -- >>>> > www.tudorgirba.com >>>> > >>>> > "Every thing has its own flow" >>>> > >>>> > >>>> > >>>> > >>>> > -- >>>> > www.tudorgirba.com >>>> > >>>> > "Every thing has its own flow" >>>> >>>> >>>> >>> >> >> >> -- >> www.tudorgirba.com >> >> "Every thing has its own flow" >> > >
