I cloned the latest git master and it doesn't fix the issues we talked
about.

2010/1/18 omer katz <[email protected]>

> 1) The layout of the slider doesn't matter.
> It's not displaying for FF at all.
> Right now my own is the following: A slider within a template that is
> contained in a tab widget that is bound to a main template.
>
> 2) I'll Check the Git then and come back to you with the results.
>
> 3) Since you *can't set any widget's model *I am forced to grab it from
> the view (As the widgets reside in the view).
>
> In my AuthenticationModel class I do it like this:
>
>> private:
>>     const Wt::WString &username;
>>     const Wt::WString &password;
>>
>>     bool isLoggedIn;
>> public:
>>     AuthenticationModel(const Wt::WString &usr, const Wt::WString &pwd)
>>     :    isLoggedIn(false),
>>         username(usr),
>>         password(pwd)
>>     {
>>     }
>>
> In the view I just call:
>
>> setCurrentModel(shared_ptr<AuthenticationModel>(new
>> AuthenticationModel(getCurrentView<AuthenticationView>()->getUsername(),
>> getCurrentView<AuthenticationView>()->getPassword())));
>
>
> I am aware it's a bit of a messy api as of now but it will change later.
> That way I am able to grab any changes made on submittion.
> It's true that with other widgets I need to grab by a valueChanged event in
> my case (but not in all cases) but it messes things up as not all values are
> the same and also WLineEdit (which should be named WTextbox and for some
> reason isn't named so) returns it's value as text() and not as value() which
> doesn't allow me to make a generic function that will get the widget's
> value.
> Imo all get functions should return a const reference.
>
> As for emitChange, look at my patch, it's not necessary.
> The signal is emitted whenever there was no UI change.
> You may incorporate it with the default value of true and check both if you
> wish.
>
> 4) See 2.
> 2010/1/18 Koen Deforche <[email protected]>
>
>> Hey Omer,
>>
>> 2010/1/16 omer katz <[email protected]>
>>
>> Hello,
>>> There is a difference in appearance of WSlider in Firefox and in IE.
>>> Firefox is the one that's acting buggy and it's not showing the
>>> horizontal line but it is showing the knob correctly.
>>>
>>
>> That is weird, I am not able to reproduce this... Can you provide more
>> clues on what the hierarchy of widgets is leading up to the slider ?
>>
>>
>>>  Also in Firefox WTabWidget doesn't auto-fit himself.
>>>
>>
>> I think I have fixed this.
>>
>>
>>> It does show the value but here's the thing every widget state except
>>> WString objects are returned by value and not by ref, this isn't smart as
>>> yes I can change the value label on each valueChanged signal but it's very
>>> inefficient, it also doesn't allow me to grab it into my own model class.
>>> WLineEdit allows me to do so because text() returns a const WString & like
>>> it should be.
>>>
>>
>> Somehow it sounds like you are trying to grab view state inside your
>> models, while you should actually be capturing model state in your views ?
>>
>> Still, I'm okay with the extra bool emitChange=false parameter for
>> setValue() (as per your other post).
>>
>>
>>> In IE I don't see the value label and it does auto-fit.
>>> Another IE issue is that wt looks for wt_ie.css and it doesn't exist in
>>> themes.
>>>
>>
>> That used to be the case, but now there are wt_ie.css files (and they
>> didn't exist because they were not needed by the default theme(s)).
>>
>> Regards,
>> koen
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Throughout its 18-year history, RSA Conference consistently attracts the
>> world's best and brightest in the field, creating opportunities for
>> Conference
>> attendees to learn about information security's most important issues
>> through
>> interactions with peers, luminaries and emerging and established
>> companies.
>> http://p.sf.net/sfu/rsaconf-dev2dev
>> _______________________________________________
>> witty-interest mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/witty-interest
>>
>>
>
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to