[vlc] Re: GUI development based on wxwidgets

Liu Andy liuzhihua_2003 at hotmail.com
Mon Nov 6 07:02:19 CET 2006


"aMule (coded in wxWidgets)"
What's "aMule" here, I can't find it in codebase...


>From: "Liu Andy" <liuzhihua_2003 at hotmail.com>
>Reply-To: vlc at videolan.org
>To: vlc at videolan.org
>Subject: [vlc] Re: GUI development based on wxwidgets
>Date: Mon, 06 Nov 2006 13:58:26 +0800
>
>Hi Siddique,
>
>Thanks for your nice answer.
>
>Your advice sounds reasonable, but it may not fit for my requirement 
>the best...
>
>Let me rephrase it a little bit, normally "About" message box is 
>triggered/shown by user's clicking on menu, I hope that it can also 
>be triggered by some internal module, e.g. "livedotcom" here. As I 
>can imagine, wxwidgets should provide some interface for other 
>internal modules to register & pass some event, is it correct ? 
>Everything is the same, except for the trigger.
>
>Second question is how I can do function calls between wxwidgets and 
>caller ("livedotcom"), it seems that some link error always 
>exists...
>
>I still expect for your answer, great thanks !
>
>
>
>>From: Siddique Vally-Adam <sid4u at walali.org>
>>Reply-To: vlc at videolan.org
>>To: vlc at videolan.org
>>Subject: [vlc] Re: GUI development based on wxwidgets
>>Date: Mon, 06 Nov 2006 08:19:59 +0400
>>
>>Hi Liu,
>>
>>i would advice you to create a class derived from wxDialog, that 
>>would
>>get all the needed parameters (vlc structures).
>>This class would handle any event on OK/Cancel button. It would use 
>>the
>>vlc structures to get the info you need.
>>It would be much easier. See the wxDialog sample in wxwidgets 
>>directory
>>for more information.
>>
>>On the question about how to dispatch the dialog, well it's kind of 
>>easy
>>as you just need to instanciate your inherited class wxDialog 
>>anytime
>>you think it's needed and show it.
>>
>>You can also call it from the Main wxApp event handler (generate 
>>and
>>event, post an event, handle the event). If i recall, aMule (coded 
>>in
>>wxWidgets), does use a nice way to handle events. You should check 
>>the
>code.
>>
>>Good luck
>>
>>Sid
>>
>>Liu Andy a ¨¦crit :
>> >
>> > To give you more details, I wrote a function "abc()" similar to
>> > Interface::OnAbout(...) in 
>>.../modules/gui/wxwidgets/interface.cpp,
>> > then call it from .../modules/demux/livedotcom.cpp,
>> >
>> > compile is OK, but problem came in linking stage, it shows 
>>"undefined
>> > reference to abc()"
>> >
>> > Then what should I do to let "livedotcom" find approriate object
>> > containing "abc()" ??
>> >
>> > Thanks a lot !!
>> >
>> >
>> >> From: "Liu Andy" <liuzhihua_2003 at hotmail.com>
>> >> Reply-To: vlc at videolan.org
>> >> To: vlc at videolan.org
>> >> CC: vlc-devel at videolan.org, videolan-announce at videolan.org
>> >> Subject: [vlc] Re: GUI development based on wxwidgets
>> >> Date: Sun, 05 Nov 2006 19:03:15 +0800
>> >>
>> >> Hi,
>> >>
>> >> Could anybody show any idea about questions below, thanks !!
>> >>
>> >>
>> >> "
>> >> Hi All,
>> >>
>> >> Sorry to bother you guys again.
>> >>
>> >> What I'm trying to do is as following: 1. When some inernal 
>>event
>> >> happens, e.g. incoming control message says that current 
>>network
>> >> bandwidth available is very limited, then VLC media player 
>>shall
>> >> popup a window or message box alerting user about the 
>>situation. Note
>> >> that this popup shall NOT block anything else. 2. After user 
>>hits
>> >> some buttong, e.g. "OK" or "Cancel", VLC media player shall be 
>>able
>> >> to do some further operation, e.g. stop playing video 
>>automatically.
>> >> 3. items above are based on WxWidgets. 4. VLC0.8.5 + FC4
>> >>
>> >> Normally, GUI seems to be triggered by end user, e.g. clicking
>> >> operations, but it's not the case here, instead it's some 
>>internal
>> >> event which triggers window shown. Meanwhile, GUI shall still 
>>be able
>> >> to capture user's clicking on "OK" button of the window.
>> >>
>> >> .../wxwidgets/interface.cpp, "void Interface::OnAbout(
>> >> wxCommandEvent& WXUNUSED(event) )" This seems to be the event 
>>handler
>> >> of "About" item in menu, which just uses wxMessageBox() to show 
>>the
>> >> box, is this a useful reference for me ??
>> >>
>> >> I also checked development tool for WxWidgets under Fedora, but 
>>my
>> >> requirement seems too simple for those tools... I still have to
>> >> integrate code into VLC code base after GUI object is ready.
>> >>
>> >> Please show me some hints and a quick solution if you are 
>>familiar
>> >> with VLC + WxWidgets, thanks a lot.
>> >> "
>> >>
>> >>> From: "Liu Andy" <liuzhihua_2003 at hotmail.com>
>> >>> Reply-To: vlc at videolan.org
>> >>> To: vlc at videolan.org
>> >>> CC: vlc-devel at videolan.org, videolan-announce at videolan.org
>> >>> Subject: [vlc] Re: GUI development based on wxwidgets
>> >>> Date: Thu, 02 Nov 2006 22:33:36 +0800
>> >>>
>> >>> Hi All,
>> >>>
>> >>> Sorry to bother you guys again.
>> >>>
>> >>> What I'm trying to do is as following:
>> >>> 1. When some inernal event happens, e.g. incoming control 
>>message
>> >>> says that current network bandwidth available is very limited, 
>>then
>> >>> VLC media player shall popup a window or message box alerting 
>>user
>> >>> about the situation. Note that this popup shall NOT block 
>>anything
>> >>> else.
>> >>> 2. After user hits some buttong, e.g. "OK" or "Cancel", VLC 
>>media
>> >>> player shall be able to do some further operation, e.g. stop 
>>playing
>> >>> video automatically.
>> >>> 3. items above are based on WxWidgets.
>> >>> 4. VLC0.8.5 + FC4
>> >>>
>> >>> Normally, GUI seems to be triggered by end user, e.g. clicking
>> >>> operations, but it's not the case here, instead it's some 
>>internal
>> >>> event which triggers window shown. Meanwhile, GUI shall still 
>>be
>> >>> able to capture user's clicking on "OK" button of the window.
>> >>>
>> >>> .../wxwidgets/interface.cpp, "void Interface::OnAbout(
>> >>> wxCommandEvent& WXUNUSED(event) )"
>> >>> This seems to be the event handler of "About" item in menu, 
>>which
>> >>> just uses wxMessageBox() to show the box, is this a useful 
>>reference
>> >>> for me ??
>> >>>
>> >>> I also checked development tool for WxWidgets under Fedora, 
>>but my
>> >>> requirement seems too simple for those tools... I still have 
>>to
>> >>> integrate code into VLC code base after GUI object is ready.
>> >>>
>> >>> Please show me some hints and a quick solution if you are 
>>familiar
>> >>> with VLC + WxWidgets, thanks a lot.
>> >>>
>> >>>
>> >>>
>> >>>> From: Rafaël Carré <funman at videolan.org>
>> >>>> Reply-To: vlc at videolan.org
>> >>>> To: "Liu Andy" <liuzhihua_2003 at hotmail.com>
>> >>>> CC: vlc at videolan.org,
>> >>> vlc-devel at videolan.org,videolan-announce at videolan.org
>> >>>> Subject: [vlc] Re: GUI development based on wxwidgets
>> >>>> Date: Mon, 30 Oct 2006 15:45:30 +0100
>> >>>>
>> >>>> Le Mon, 30 Oct 2006 22:05:25 +0800,
>> >>>> "Liu Andy" <liuzhihua_2003 at hotmail.com> a écrit :
>> >>>>
>> >>>> > Currently I use 0.8.5, does it also support "QT4-based 
>>interface"
>> >>>> ? I
>> >>>> > can only see wxwidgets and Skins2...
>> >>>>
>> >>>> No, 0.8.5 and 0.8.6 use only wxwidgets and skins2
>> >>>>
>> >>>> the development version use QT too, but it is not finished, 
>>and
>> >>>> quite unstable.
>> >>>>
>> >>>> > AND, if I use some QT designer
>> >>>> > (e.g. KDevelop) to get my components well prepared, how can 
>>I
>merge
>> >>>> > it into current framework, how much effort does that need ?
>> >>>> >
>> >>>>
>> >>>> I think that should be easy if you edit existing dialogs.
>> >>>>
>> >>>> If you want to create new, you could do it from scratch
>> >>>>
>> >>>> But once these dialogs are made, you have to integrate code 
>>that use
>> >>>> it, and you'll have to modify the source.
>> >>>>
>> >>>> > I can see from code that "About" dialog is created using
>wxwidgets,
>> >>>> > right ? I've thought that it may be a good reference for 
>>me, hehe.
>> >>>> > But I just don't know if it's feasible to simulate it 
>>within
>code...
>> >>>>
>> >>>> Well you have the choice, I'm sure good GUI editors exist for
>> >>>> WxWidgets
>> >>>> too but I don't know any.
>> >>>>
>> >>>> --
>> >>>> Rafaël Carré
>> >>>
>> >>>
>> >>>> << signature.asc >>
>> >>>
>> >>> 
>>_________________________________________________________________
>> >>> ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger:
>http://messenger.msn.com/cn
>> >>>
>> >>> --
>> >>> This is the vlc mailing-list, see http://www.videolan.org/vlc/
>> >>> To unsubscribe, please read
>http://www.videolan.org/support/lists.html
>> >>>
>> >>
>> >> 
>>_________________________________________________________________
>> >> Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn/
>> >>
>> >> --
>> >> This is the vlc mailing-list, see http://www.videolan.org/vlc/
>> >> To unsubscribe, please read 
>>http://www.videolan.org/support/lists.html
>> >>
>> >
>> > 
>>_________________________________________________________________
>> > Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn
>>
>>
>>
>>
>>
>>
>>___________________________________________________________________________

>
>>Découvrez une nouvelle façon d'obtenir des réponses ?toutes vos 
>>questions
>!
>>Profitez des connaissances, des opinions et des expériences des
>internautes sur Yahoo! Questions/Réponses
>>http://fr.answers.yahoo.com
>>
>>--
>>This is the vlc mailing-list, see http://www.videolan.org/vlc/
>>To unsubscribe, please read 
>>http://www.videolan.org/support/lists.html
>>
>
>_________________________________________________________________
>ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger:  
>http://messenger.msn.com/cn
>
>--
>This is the vlc mailing-list, see http://www.videolan.org/vlc/
>To unsubscribe, please read 
>http://www.videolan.org/support/lists.html
>

_________________________________________________________________
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger:  http://messenger.msn.com/cn  

-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html



More information about the vlc mailing list