Re: [Pharo-project] [Moose-dev] Re: GLMTextualPresentation background color
I would like to get a list of important things to fix in the UI I have - in place item list edit (we should be able to change the protocol of a method by clicking on the list item) - fixed layout (problem of the expansion in glamour) - seeing only what is shown when typing (you type on a list = it shows you the matching items) Coudl you report the list of what is urgently needed in the pharo mailing-list? Stef On Jul 1, 2011, at 10:13 PM, Lukas Renggli wrote:
2. Perhaps you can take a shorter route and build a model of a simply text with zones that have styles and actions. Then we integrate this in the rendering.
FYI: In Helvetia-Core there is a class called CHHighlightAttribute that can highlight the background, as well as draw bitmap borders (e.g. wiggled lines) around (left, right, bottom, top) the text. The only problem is that a solid background will hide the text selection.
Lukas
-- Lukas Renggli www.lukas-renggli.ch _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Hi, Here are some issues: - PluggableTextMorph does not provide a means for clients to know when the text has changed - TabMorph does not provide a means for client to know when the tab has changed - The label of a TabMorph should shrink to fit the space. Right now a tab with a large title will expand the bounds of the tab. I would like to have the possibility to limit the size of the title to the size of the contents. Ideally, there should be some abbreviation (with ...) of the title. - the MorphTreeMorph does not expand the embedded morphs horizontally. Currently it inherits from ScrollPane. I think it would be great to get it inherit from GeneralScrollPane. Or maybe there is a better solution. Cheers, Doru On 2 Jul 2011, at 12:57, Stéphane Ducasse wrote:
I would like to get a list of important things to fix in the UI I have - in place item list edit (we should be able to change the protocol of a method by clicking on the list item) - fixed layout (problem of the expansion in glamour) - seeing only what is shown when typing (you type on a list = it shows you the matching items)
Coudl you report the list of what is urgently needed in the pharo mailing-list?
Stef
On Jul 1, 2011, at 10:13 PM, Lukas Renggli wrote:
2. Perhaps you can take a shorter route and build a model of a simply text with zones that have styles and actions. Then we integrate this in the rendering.
FYI: In Helvetia-Core there is a class called CHHighlightAttribute that can highlight the background, as well as draw bitmap borders (e.g. wiggled lines) around (left, right, bottom, top) the text. The only problem is that a solid background will hide the text selection.
Lukas
-- Lukas Renggli www.lukas-renggli.ch _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com "Every thing has its own flow."
- PluggableTextMorph does not provide a means for clients to know when the text has changed
aPluggableTextEditorMorph autoAccept: true
- TabMorph does not provide a means for client to know when the tab has changed
Sure, become a dependent of the #tabSelectorMorph and it will trigger a change #selectedIndex whenever the tab changes. Alternatively you could use a deticated panel that notices when it is attached into the Morphic tree (owner is set).
- The label of a TabMorph should shrink to fit the space. Right now a tab with a large title will expand the bounds of the tab. I would like to have the possibility to limit the size of the title to the size of the contents. Ideally, there should be some abbreviation (with ...) of the title.
Grease has a method called String>>#truncate:ellipsis:. For perfect results you might want to specify the width in pixels not characters, but that could be easily added using AbstractFont>>#widthOfString:. Lukas -- Lukas Renggli www.lukas-renggli.ch
Hi, On 3 Jul 2011, at 09:54, Lukas Renggli wrote:
- PluggableTextMorph does not provide a means for clients to know when the text has changed
aPluggableTextEditorMorph autoAccept: true
That is not the same. I want a notification from the PluggableTextMorph to tell me that the text changed, so that I can update the an external client.
- TabMorph does not provide a means for client to know when the tab has changed
Sure, become a dependent of the #tabSelectorMorph and it will trigger a change #selectedIndex whenever the tab changes.
Alternatively you could use a deticated panel that notices when it is attached into the Morphic tree (owner is set).
Good point. I will look at that.
- The label of a TabMorph should shrink to fit the space. Right now a tab with a large title will expand the bounds of the tab. I would like to have the possibility to limit the size of the title to the size of the contents. Ideally, there should be some abbreviation (with ...) of the title.
Grease has a method called String>>#truncate:ellipsis:. For perfect results you might want to specify the width in pixels not characters, but that could be easily added using AbstractFont>>#widthOfString:.
Nice. It still has to be integrated in TabMorph. Cheers, Doru
Lukas
-- Lukas Renggli www.lukas-renggli.ch
-- www.tudorgirba.com "In a world where everything is moving ever faster, one might have better chances to win by moving slower."
- PluggableTextMorph does not provide a means for clients to know when the text has changed
aPluggableTextEditorMorph autoAccept: true
That is not the same. I want a notification from the PluggableTextMorph to tell me that the text changed, so that I can update the an external client.
You'll get an accept notification for each key press. There is also an option to automatically send a accept notification when the text field looses focus. Alternatively you can directly hook into the morphic #eventHandler and get notified about #keystroke, #keyDown, #keyUp, ... Lukas -- Lukas Renggli www.lukas-renggli.ch
Ahh, I messed up the issue description. It is the current selection that is not announced, not the contents. Or is there a possibility to get the a notification of the current selection while I am selecting a piece of text? Cheers, Doru On 3 Jul 2011, at 10:13, Lukas Renggli wrote:
- PluggableTextMorph does not provide a means for clients to know when the text has changed
aPluggableTextEditorMorph autoAccept: true
That is not the same. I want a notification from the PluggableTextMorph to tell me that the text changed, so that I can update the an external client.
You'll get an accept notification for each key press. There is also an option to automatically send a accept notification when the text field looses focus.
Alternatively you can directly hook into the morphic #eventHandler and get notified about #keystroke, #keyDown, #keyUp, ...
Lukas
-- Lukas Renggli www.lukas-renggli.ch
-- www.tudorgirba.com "The coherence of a trip is given by the clearness of the goal."
doru could you have screen capture of the problem? On Jul 2, 2011, at 11:13 PM, Tudor Girba wrote:
Hi,
Here are some issues:
- PluggableTextMorph does not provide a means for clients to know when the text has changed
- TabMorph does not provide a means for client to know when the tab has changed
- The label of a TabMorph should shrink to fit the space. Right now a tab with a large title will expand the bounds of the tab. I would like to have the possibility to limit the size of the title to the size of the contents. Ideally, there should be some abbreviation (with ...) of the title.
- the MorphTreeMorph does not expand the embedded morphs horizontally. Currently it inherits from ScrollPane. I think it would be great to get it inherit from GeneralScrollPane. Or maybe there is a better solution.
Cheers, Doru
On 2 Jul 2011, at 12:57, Stéphane Ducasse wrote:
I would like to get a list of important things to fix in the UI I have - in place item list edit (we should be able to change the protocol of a method by clicking on the list item) - fixed layout (problem of the expansion in glamour) - seeing only what is shown when typing (you type on a list = it shows you the matching items)
Coudl you report the list of what is urgently needed in the pharo mailing-list?
Stef
On Jul 1, 2011, at 10:13 PM, Lukas Renggli wrote:
2. Perhaps you can take a shorter route and build a model of a simply text with zones that have styles and actions. Then we integrate this in the rendering.
FYI: In Helvetia-Core there is a class called CHHighlightAttribute that can highlight the background, as well as draw bitmap borders (e.g. wiggled lines) around (left, right, bottom, top) the text. The only problem is that a solid background will hide the text selection.
Lukas
-- Lukas Renggli www.lukas-renggli.ch _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Every thing has its own flow."
I attached here the screenshots for the TabMorph label shrinking problem, and for the MorphTreeMorph one. Cheers, Doru On 3 Jul 2011, at 23:33, Stéphane Ducasse wrote:
doru could you have screen capture of the problem?
On Jul 2, 2011, at 11:13 PM, Tudor Girba wrote:
Hi,
Here are some issues:
- PluggableTextMorph does not provide a means for clients to know when the text has changed
- TabMorph does not provide a means for client to know when the tab has changed
- The label of a TabMorph should shrink to fit the space. Right now a tab with a large title will expand the bounds of the tab. I would like to have the possibility to limit the size of the title to the size of the contents. Ideally, there should be some abbreviation (with ...) of the title.
- the MorphTreeMorph does not expand the embedded morphs horizontally. Currently it inherits from ScrollPane. I think it would be great to get it inherit from GeneralScrollPane. Or maybe there is a better solution.
Cheers, Doru
On 2 Jul 2011, at 12:57, Stéphane Ducasse wrote:
I would like to get a list of important things to fix in the UI I have - in place item list edit (we should be able to change the protocol of a method by clicking on the list item) - fixed layout (problem of the expansion in glamour) - seeing only what is shown when typing (you type on a list = it shows you the matching items)
Coudl you report the list of what is urgently needed in the pharo mailing-list?
Stef
On Jul 1, 2011, at 10:13 PM, Lukas Renggli wrote:
2. Perhaps you can take a shorter route and build a model of a simply text with zones that have styles and actions. Then we integrate this in the rendering.
FYI: In Helvetia-Core there is a class called CHHighlightAttribute that can highlight the background, as well as draw bitmap borders (e.g. wiggled lines) around (left, right, bottom, top) the text. The only problem is that a solid background will hide the text selection.
Lukas
-- Lukas Renggli www.lukas-renggli.ch _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Every thing has its own flow."
-- www.tudorgirba.com "One cannot do more than one can do."
doru is there a bug entry and an example how to generate this widget? Stef On Jul 4, 2011, at 4:20 PM, Tudor Girba wrote:
I attached here the screenshots for the TabMorph label shrinking problem, and for the MorphTreeMorph one.
Cheers, Doru
<MorphTreeMorph-not-expanding.png><TabLabel-does-not-shrink.png>
On 3 Jul 2011, at 23:33, Stéphane Ducasse wrote:
doru could you have screen capture of the problem?
On Jul 2, 2011, at 11:13 PM, Tudor Girba wrote:
Hi,
Here are some issues:
- PluggableTextMorph does not provide a means for clients to know when the text has changed
- TabMorph does not provide a means for client to know when the tab has changed
- The label of a TabMorph should shrink to fit the space. Right now a tab with a large title will expand the bounds of the tab. I would like to have the possibility to limit the size of the title to the size of the contents. Ideally, there should be some abbreviation (with ...) of the title.
- the MorphTreeMorph does not expand the embedded morphs horizontally. Currently it inherits from ScrollPane. I think it would be great to get it inherit from GeneralScrollPane. Or maybe there is a better solution.
Cheers, Doru
On 2 Jul 2011, at 12:57, Stéphane Ducasse wrote:
I would like to get a list of important things to fix in the UI I have - in place item list edit (we should be able to change the protocol of a method by clicking on the list item) - fixed layout (problem of the expansion in glamour) - seeing only what is shown when typing (you type on a list = it shows you the matching items)
Coudl you report the list of what is urgently needed in the pharo mailing-list?
Stef
On Jul 1, 2011, at 10:13 PM, Lukas Renggli wrote:
2. Perhaps you can take a shorter route and build a model of a simply text with zones that have styles and actions. Then we integrate this in the rendering.
FYI: In Helvetia-Core there is a class called CHHighlightAttribute that can highlight the background, as well as draw bitmap borders (e.g. wiggled lines) around (left, right, bottom, top) the text. The only problem is that a solid background will hide the text selection.
Lukas
-- Lukas Renggli www.lukas-renggli.ch _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Every thing has its own flow."
-- www.tudorgirba.com
"One cannot do more than one can do."
participants (3)
-
Lukas Renggli -
Stéphane Ducasse -
Tudor Girba