Saturday, 2015-09-12

*** tytel has quit IRC00:22
*** tytel has joined #lv200:22
*** tytel has quit IRC00:22
*** curlymorphic has quit IRC00:30
*** tytel has joined #lv200:39
*** tytel has quit IRC00:50
*** tytel has joined #lv201:14
*** nicksb2 has joined #lv202:31
*** tytel has quit IRC02:48
*** nicksb2 has quit IRC04:19
*** tytel has joined #lv204:40
*** deva has joined #lv206:46
*** tytel has quit IRC07:33
*** tytel has joined #lv207:36
*** edogawa has joined #lv207:39
*** rncbc has joined #lv208:12
*** tytel has quit IRC08:14
*** ventosus has joined #lv208:21
*** tytel has joined #lv208:32
*** nicksb2 has joined #lv209:05
*** tytel has quit IRC09:55
*** edogawa has quit IRC10:20
*** ricardocrudo has joined #lv210:30
*** nicksb2 has quit IRC12:07
*** ventosus has left #lv212:10
*** rncbc is now known as rncbc|AFK12:11
*** son0p has joined #lv213:12
*** son0p has quit IRC13:44
*** son0p has joined #lv213:45
*** rncbc|AFK is now known as rncbc13:54
drobillarncbc: gtk2_in_qt5 doesn't seem to work for me14:48
rncbcdrobilla: hi. how are you testing?14:50
drobillarncbc: I made a jalv.qt514:51
drobillarncbc: X11 works though14:51
rncbcdrobilla: which gtk2 plugin?14:51
drobillarncbc: tried meters, calf14:52
drobillarncbc: I'll just commit this stuff and you can see14:53
rncbcrncbc: here they work14:53
rncbcdrobilla: ^14:53
rncbcdrobilla: one note is that embedding might not really work as with qt414:54
rncbcdrobilla: you're probably re-parenting the QWidget* returned by gtk2_in_qt5, in jaclv.qt5, right?14:55
rncbcjalv.qt514:55
drobillaSame code as qt4.  win->setCentralWidget(widget)14:58
rncbcdrobilla: so you get two windows, one empty blank and another top-level window with the plugin gui ?15:11
drobillaNo, just the one window with nothing in it15:21
rncbcdrobilla: and what if you replate setCentralWidget(widget) by widget->show() ?15:24
rncbcdrobilla: just 4 testing15:24
drobillarncbc: Then I get the UI in a separate window as you describe15:25
*** falktx has joined #lv215:25
rncbcdrobilla: ok. probably the widget has to be re-parented in some other way than setCentralWidget()15:26
rgareusscandal: cute parent throws adopted child out of the window.15:34
rncbcdrobilla: try this way -> http://pastebin.com/yhTC2U7415:41
rncbcdrobilla: nb. ^replaces setCentralWidget(widget); on jalv.qt515:42
drobillarncbc: what is 'this' here?15:55
rncbcdrobilla: this = main widget15:56
drobillamy main/only widget is a window, but you have a separate window15:56
drobillamm, n/m, that's the widget's15:57
rncbcmain widget = main top-level window15:57
drobillaDoesn't draw contents at all (including background)15:59
drobillahttp://dev.drobilla.net/changeset/572516:03
drobilla16:03
drobillahttp://dev.drobilla.net/changeset/572616:03
rncbcdrobilla: maybe this simpler way -> http://pastebin.com/1tZqKMcd16:04
rncbcdrobilla: ok. thanks16:06
falktxrncbc: do you know of anything to do the embeding the other way? (qt5 stuff in x11/gtk)16:07
rncbcfalktx: nope but qt5 should be similar to x11 via QWidget::winId() gives you the (x11) Window id and should be handled by gtk2 window etc. thereafter.16:11
falktxexcept that doesn't work quite well16:16
falktxit's the only thing preventing carla from going qt5 on linux :(16:17
rgareusmaybe a stupid question: Can suil  qt4_in_...  and qt5_in_...  be compiled at the same time in one build?16:17
falktxrncbc: with this suil change will you start recomming using qt5 for plugins + qtractor?16:18
falktxrgareus: what about linkage?16:18
falktxrgareus: the symbols are very similar16:18
rgareusfalktx: strictly speaking they're independent.  so qt4_in_..  would be compiled and linked with qt4 libs, qt5_in_... with qt5 libs16:18
rncbcfalktx: maybe in mid-november16:18
rgareusfalktx: I think the problem is rather pkg-config and the build-environment. Include-files, compiler-flags,... which may share the same name16:19
rgareusjalv would have the same issue, I expect16:20
rncbcrgareus: problem is that qt5-plugins crash qt4-host and vice-versa16:20
rgareusrncbc: right, but a gtk host could load either.16:20
rgareusas long as it does not load both16:20
falktxno16:21
falktxgtk3 hosts can't load qt4/5 stuff16:21
falktxbecause qt has a gtk2 theme16:22
rncbcrgareus: wrong. it can only load one kind; you cannot load libQt4Gui and libQt5Widgets loaded in same process address-space16:22
rgareusrncbc: as I said  a gtk host could load either ..  as long as it does not load both.16:22
rncbcrgareus: right16:22
rgareusand as falktx pointed out  gtk2 hosts onlys16:23
rgareusfalktx: do you know what motivated QT to use a GTK2 theme ?16:23
falktxit's the old code16:23
falktxhasn't been updated to gtk3 because theming in gtk3 is a horrendous mess16:23
falktxalso latest gtk3 require theming via static css files afaik16:24
rgareuswhat a mess.  I long for the day that all GTK and QT plugin GUIs vanish.16:24
rgareusand FLTK, too16:24
falktxand NTK16:24
falktxsorry spenser..16:24
rgareusNTK is not unresonable, were it portable16:24
falktxntk has the same issues that fltk has, but at least supports embedding16:25
rgareusit's pretty much cairo + basic layout packing.16:25
drobillaIs "resizeable but always square" a thing?  on all/which platforms?16:25
falktxusing a menu or calling a dialog in ntk will block the main thread16:25
falktxqt/gtk also block, but qt re-uses the glib event handler or something16:26
falktxsomehow it works out even when the call is blocking16:26
rgareusdrobilla: just set a 1:1 aspect ratio. pugl supports that on all platforms,.16:26
rgareusdrobilla: at least falktx' and my fork of pugl :(16:27
* rgareus used a dirty hack though, compatible with the old API min_width != width means retain aspect.16:29
*** nicksb2 has joined #lv216:30
drobillaThat's probably the reason for it not moving upstream, but I forget16:34
drobillaI merged almost all your stuff, but should have kept a record, because most had to be done manually so git doesn' tknow16:34
*** nicksb2 has quit IRC16:34
drobillargareus: seems to be x11 only16:39
rgareusdrobilla: windows works as well. I remember testing that.  OSX I don't remember16:40
*** ventosus has joined #lv216:43
* drobilla discovers that resize with pugl+cairo doesn't work at all16:43
*** tytel has joined #lv216:49
drobilla... and wow, is double buffering sorely needed there16:53
drobillaI have a big patch for event stuff on Windows, too, but the key stuff is completely cracked out and I don't know how to properly do unicode text input there17:08
*** nicksb2 has joined #lv217:20
*** nicksb2 has quit IRC17:24
*** ricardocrudo has quit IRC18:36
rncbcdrobilla: new patch ->  http://dev.drobilla.net/ticket/108618:58
* rncbc -> diner18:59
*** rncbc is now known as rncbc|AFK18:59
*** ventosus has left #lv219:06
drobillaHmm.. everything I can find online suggests that XPending is blocking, but my loops chew 100% CPU regardless of any events being present19:31
drobillaBut this raises a pugl API question... both blocking and non-blocking (and/or blocking + timeout?) might be desired19:33
*** NickSB2 has joined #lv219:34
drobillaSome stuff doesn't work if I make it block by using XNextEvent straight away, though.19:39
*** rncbc|AFK is now known as rncbc19:56
*** flexus has joined #lv220:01
*** edogawa has joined #lv220:28
*** falktx has quit IRC20:28
*** nicksbx has quit IRC20:51
*** deva has quit IRC20:52
*** deva has joined #lv221:12
*** rncbc has quit IRC21:17
*** deva has quit IRC21:37
*** tytel has quit IRC21:38
*** tytel has joined #lv221:40
*** nicksby_ has joined #lv221:51
*** tytel has quit IRC22:22
*** tytel has joined #lv222:38
drobillaHrm.  Well, I added a separate puglWaitForEvents() so you can just stick that in your loop.. but I can't find such a thing for OSX23:22
drobillaSurely it must be possible to block waiting for an event somehow23:22
*** flexus has quit IRC23:30
*** edogawa has quit IRC23:39
*** nicksbx has joined #lv223:45
*** nicksby_ has quit IRC23:45

Generated by irclog2html.py 2.13.0 by Marius Gedminas - find it at mg.pov.lt!