|
|
Home » Developing U++ » UppHub » Docking package (plus examples)
|
Re: Docking package (plus examples) [message #21051 is a reply to message #21034] |
Tue, 28 April 2009 21:32 |
Didier
Messages: 680 Registered: November 2008 Location: France
|
Contributor |
|
|
OK works fine
I added the following additional creator methods to enable constructors with parameters:
in 'class DockWindow'
template<class T>
DockableCtrl& CreateDockable(WString title) { return Register(ctrls.Create<T>().Title(title)); }
template<class T, class PARAM1>
DockableCtrl& CreateDockable(WString title, PARAM1 p1) { return Register(ctrls.Create<T>(p1).Title(title)); }
template<class T>
DockableCtrl& CreateDockable(const char *title = 0) { return CreateDockable<T>((WString)title); }
template<class T, class PARAM1>
DockableCtrl& CreateDockable(const char *title, PARAM1 p1) { return CreateDockable<T>((WString)title, p1); }
in 'class Array' : Core/Vcont.h
template<class TT> TT& Create() { TT *q = new TT; Add(q); return *q; }
template<class TT, class PARAM1> TT& Create(PARAM1 p1) { TT *q = new TT(p1); Add(q); return *q; }
Maybe it's a good idea to add such methods with 1,2,3,4 ... parameters since Array does not use Pick behaviour (copy is a move)
What do you think ?
|
|
|
|
|
|
|
|
|
Re: Docking package (plus examples) [message #22126 is a reply to message #22070] |
Fri, 19 June 2009 03:54 |
Novo
Messages: 1358 Registered: December 2006
|
Ultimate Contributor |
|
|
mrjt wrote on Tue, 16 June 2009 11:09 | Done. Revision 1315.
|
Thanks for the fix.
It looks like rev. 1320 doesn't work on Linux. I checked that with 32 and 64-bit versions of Ubuntu 9.04 with Compiz enabled.
Floating window cannot be docked back.
Regards,
Novo
|
|
|
|
|
Re: Docking package (plus examples) [message #22170 is a reply to message #22131] |
Mon, 22 June 2009 00:52 |
Novo
Messages: 1358 Registered: December 2006
|
Ultimate Contributor |
|
|
mrjt wrote on Fri, 19 June 2009 03:38 | Bugger. I've never tested it with Compiz and none of the floating/docking code has changed, so perhaps it's that.
This might be much more difficult to fix, what I need is a log of X events during window draging and dropping.
|
Sorry for making you a problem again.
I attached a log of X11 events for DockingExample1. It is created using xtrace. I hope that it is what you need.
TIA
[Attachment is deleted ...]
Regards,
Novo
[Updated on: Sun, 19 July 2009 18:41] Report message to a moderator
|
|
|
|
|
|
Re: Docking package (plus examples) [message #22239 is a reply to message #22228] |
Fri, 26 June 2009 15:29 |
ptDev
Messages: 25 Registered: June 2009
|
Promising Member |
|
|
I'm sorry for my confusion.
Is it that you wish to always type the additional "Upp::" scope prefix whenever you're referring to an U++ class?
Note that when you're making a new package, you can always omit the "using namespace Upp" statement and be explicit about the namespaces. In fact, you can even still refer to the namespaces for clarity, "using" or no "using".
Personally, I never saw any obvious advantage in this, but you do have the option to do so if you wish.
[Updated on: Fri, 26 June 2009 15:30] Report message to a moderator
|
|
|
|
|
Re: Docking package (plus examples) [message #22499 is a reply to message #22180] |
Sun, 19 July 2009 18:43 |
Novo
Messages: 1358 Registered: December 2006
|
Ultimate Contributor |
|
|
mrjt wrote on Tue, 23 June 2009 06:07 | I don't have much time to look at it now, but that might be too much information to get what I need. The best way is to add logging to the X11 window proc, i'll give you a patch to do this when I can.
|
I can try to enable LLOG ...
Is that what you mean?
Regards,
Novo
|
|
|
|
Goto Forum:
Current Time: Sun Apr 28 22:59:36 CEST 2024
Total time taken to generate the page: 0.04340 seconds
|
|
|