*** njsf_ has quit IRC | 00:17 | |
*** njsf_1 has joined #maemo-devel | 00:17 | |
*** njsf_1 is now known as njsf_ | 00:18 | |
*** njsf_ has joined #maemo-devel | 00:18 | |
*** njsf_ has quit IRC | 00:19 | |
*** njsf_ has joined #maemo-devel | 00:19 | |
*** njsf_ has quit IRC | 00:20 | |
dotblank | Lullen, you have to set the widget attribute on all of the windows... but theres a bug | 00:20 |
---|---|---|
*** njsf_ has joined #maemo-devel | 00:20 | |
dotblank | http://talk.maemo.org/showthread.php?t=56643 | 00:20 |
*** njsf_ has quit IRC | 00:23 | |
*** njsf_1 has joined #maemo-devel | 00:23 | |
*** njsf_1 is now known as njsf_ | 00:23 | |
*** njsf_ has joined #maemo-devel | 00:23 | |
*** silbo_____ has quit IRC | 00:23 | |
Lullen | I have set the attribute on all windows but I dont think I have the same problem as I it works on all windows just that it dont register what the last windows orientation was | 00:23 |
dotblank | Lullen, yup.. thats the exact problem I had | 00:24 |
Lullen | aha | 00:24 |
dotblank | I had to really mess with my source code to get it to work with manual portrait code | 00:25 |
dotblank | but it worked | 00:25 |
*** njsf_ has quit IRC | 00:26 | |
Lullen | okey | 00:26 |
*** njsf_1 has joined #maemo-devel | 00:26 | |
Lullen | annoying | 00:26 |
*** njsf_1 is now known as njsf_ | 00:26 | |
*** njsf_ has joined #maemo-devel | 00:26 | |
Lullen | you havnt heard if it been fixed? | 00:26 |
dotblank | Lullen, there is a bug report opened for it... but.. I haven't heard much about it | 00:26 |
dotblank | Lullen, the workaround works well though | 00:27 |
Lullen | So I add the rotator for all the windows? | 00:27 |
dotblank | Feel free to vote for it | 00:27 |
dotblank | https://bugs.maemo.org/show_bug.cgi?id=10521 | 00:28 |
povbot | Bug 10521: Phone app's settings affect other applications | 00:28 |
dotblank | yes but you also have to set what the last known rotation is | 00:28 |
dotblank | if(orientation == QMaemo5Rotator::PortraitOrientation) | 00:29 |
dotblank | pd->rot->setCurrentOrientation(orientation); | 00:29 |
*** kW_ has quit IRC | 00:29 | |
dotblank | I did that after creating my new widget | 00:30 |
dotblank | /window | 00:30 |
Lullen | okey thanks | 00:30 |
Lullen | Do I still need to set the attribute? | 00:32 |
dotblank | Lullen, no | 00:32 |
Lullen | okey | 00:33 |
Lullen | awesome | 00:33 |
dotblank | bug is now confirmed :) | 00:34 |
*** SpeedEvil has quit IRC | 00:34 | |
Lullen | nice :) | 00:35 |
*** njsf_ has quit IRC | 00:36 | |
*** njsf_1 has joined #maemo-devel | 00:36 | |
*** njsf_1 is now known as njsf_ | 00:37 | |
*** njsf_ has joined #maemo-devel | 00:37 | |
*** SpeedEvil has joined #maemo-devel | 00:38 | |
*** SpeedEvil has quit IRC | 00:39 | |
*** SpeedEvil has joined #maemo-devel | 00:39 | |
*** swc|666 has quit IRC | 00:39 | |
*** njsf_ has quit IRC | 00:45 | |
*** swc|666 has joined #maemo-devel | 00:45 | |
Lullen | works like a charm =) | 00:45 |
dotblank | Lullen, great to hear | 00:47 |
dotblank | btw what are you working on? | 00:48 |
Lullen | im working on a gym program called qexercise | 00:58 |
Lullen | its in devel | 00:58 |
Lullen | and you are working on?` | 00:58 |
dotblank | Im working on Groove, grooveshark client for the n900 | 01:08 |
SpeedEvil | I'm working on a networked n900 computing solution. I shall call it skynet. | 01:09 |
SpeedEvil | Muhahahahhahahahah! | 01:09 |
dotblank | sounds great | 01:09 |
dotblank | that project skips extras-testing doesn't it | 01:09 |
SpeedEvil | :) | 01:10 |
DocScrutinizer | that project EATS extras-testing once it's started | 01:10 |
SpeedEvil | More seriously - some sort of advanced power analysis tool | 01:10 |
*** Lullen has quit IRC | 01:10 | |
*** Lullen has joined #maemo-devel | 01:10 | |
dotblank | SpeedEvil, is that its name or... | 01:10 |
dotblank | SSoAPAT | 01:11 |
SpeedEvil | No. | 01:11 |
dotblank | oh :( | 01:12 |
DocScrutinizer | http://www.skynet.net/ | 01:13 |
dotblank | http://www.sky.net/ | 01:14 |
dotblank | is way more scary | 01:14 |
DocScrutinizer | 403? | 01:14 |
DocScrutinizer | not really scary | 01:14 |
dotblank | oh yes | 01:14 |
dotblank | at a site named sky.net | 01:14 |
dotblank | everyone should be scared | 01:15 |
SpeedEvil | http://www.skytran.net/ I want | 01:15 |
SpeedEvil | Packet switched single-person rail | 01:15 |
SpeedEvil | Running on lightpole-like structures | 01:15 |
DocScrutinizer | hmm | 01:15 |
dotblank | PRT is cool | 01:16 |
DocScrutinizer | looks a liiiiitle bit like peoplemover I worked on the control system | 01:16 |
SpeedEvil | The idea is that you basically go continuously from the origin to the destination at ~50MPH | 01:17 |
SpeedEvil | with no traffic issues | 01:17 |
dotblank | SpeedEvil, sounds great... but it holds a max of 2 people... some im going to assume everyone will have one to themselves... unless the pool together | 01:18 |
dotblank | which is weird to have only one other person | 01:18 |
dotblank | they* | 01:18 |
DocScrutinizer | sipem people mover | 01:19 |
SpeedEvil | dotblank: that's the idea | 01:19 |
SpeedEvil | dotblank: they all go to different locations | 01:19 |
dotblank | http://www.youtube.com/watch?v=TIOA6ExOq6c | 01:20 |
DocScrutinizer | http://faculty.washington.edu/jbs/itrans/sipemhm.htm | 01:20 |
DocScrutinizer | push button, <30s you enter a cabin | 01:20 |
*** mindfaq has quit IRC | 01:22 | |
DocScrutinizer | internal project name HBDUS for Duesseldorf, and HBDO for Dortmund | 01:22 |
DocScrutinizer | was a fun project | 01:23 |
SpeedEvil | http://blog.cartelagency.com/wp-content/uploads/2008/08/push-button-receive-bacon.png | 01:23 |
lcuk | mmm bacon | 01:23 |
Lullen | dotblank, do you know how I make all windows in portrait exept one that should be in landscape? | 01:25 |
SpeedEvil | Interesting. | 01:25 |
dotblank | Lullen, hmm you may not need the auto rotation then | 01:26 |
dotblank | If you have designed certain parts of the application to be used that certain way | 01:26 |
Lullen | I found out that the rotation is annoying :) But I have a window where I need to type in text and it needs to be in landscape. I try to set the orientation to landscape but nothing happends, tried with the rotator too but still portrait | 01:31 |
dotblank | Lullen, did you try setting the behaviour to landscape? | 01:32 |
Lullen | yes | 01:32 |
dotblank | you might actually try the widget attribute | 01:32 |
Lullen | I did both | 01:32 |
dotblank | hmm can I look at your code? | 01:32 |
Lullen | If I make a button with setAttribute(blbalbala) it works but not else | 01:33 |
Lullen | sure | 01:33 |
Lullen | http://pastebin.ca/1887360 | 01:34 |
dotblank | hmm | 01:37 |
Lullen | its like the start window is controlling all the other windows | 01:38 |
dotblank | Lullen, ah yes.. that could be it | 01:38 |
dotblank | because from what I see here its not going to change orientation | 01:38 |
dotblank | off landscape | 01:39 |
Lullen | it should move to landscape | 01:39 |
dotblank | have you tried explicitly sett auto rotation off? | 01:39 |
Lullen | the windows that call that window is all portrait | 01:39 |
dotblank | in setAttribute? | 01:39 |
Lullen | think you missunderstand me, all windows are in portrait mode (and it works) but that window needs to be in landscape | 01:40 |
dotblank | Lullen, ok I see what you are saying now.. | 01:40 |
dotblank | I think I would have to see the code for the other windows | 01:40 |
dotblank | do you have a git repo? | 01:40 |
dotblank | oh... | 01:41 |
Lullen | no I dont understand that stuff | 01:42 |
dotblank | have you tried widget->setAttribute(Qt::WA_Maemo5LandscapeOrientation); | 01:42 |
dotblank | after declaring the central widget | 01:42 |
Lullen | no | 01:42 |
Lullen | I'll try | 01:43 |
Lullen | no nothing :( | 01:44 |
dotblank | Lullen, hmm maybe setAttribute isn't setting the value | 01:45 |
dotblank | its supposed to set it to true | 01:45 |
dotblank | setAttribute(Qt::WA_Maemo5LandscapeOrientation,true); | 01:45 |
dotblank | and also set setAttribute(Qt::WA_Maemo5PortraitOrientation,false); | 01:46 |
Lullen | will try, just testing to call it when pressing save | 01:46 |
dotblank | maybe if both flags are set then the portrait flag takes priority | 01:47 |
Lullen | it worked before I think | 01:47 |
dotblank | hmm | 01:47 |
dotblank | your not calling this window outside of this source.. something like newexerciswindow.setAttribute are you? | 01:48 |
Lullen | no | 01:49 |
Lullen | I only call newexercisewindow.show() | 01:49 |
dotblank | do you set a parent? | 01:49 |
Lullen | yes and it works as it is a stacked window | 01:50 |
dotblank | k | 01:50 |
dotblank | can you upload your complete source so I can tinker around with it? | 01:50 |
Lullen | can you open rar? | 01:53 |
Lullen | made it zip instead | 01:54 |
Lullen | http://www.MegaShare.com/2243444 | 01:54 |
Lullen | the startwindow.cpp sets portrait and that one and almost every other window calls newexercisewindow | 01:55 |
dotblank | k one sec as I download it | 01:58 |
Lullen | I like how the phone gives me small shocks when I thouch the side of it :D | 01:58 |
dotblank | k I downlaoded it | 02:01 |
Lullen | great :) | 02:02 |
dotblank | jsut got it build and run on my n900 | 02:03 |
Lullen | You see anything thats wrong? | 02:04 |
dotblank | the new exercise window needs to be in portrait :) | 02:05 |
*** MasseR has joined #maemo-devel | 02:05 | |
MasseR | I've just a few hours ago downloaded scratchbox, and have been trying the examples foudn around the net. All the ui-elements are grey, what could be the cause? (http://imgur.com/13k4D.png) | 02:05 |
Lullen | why does it need to be in portrait? :P | 02:08 |
dotblank | Lullen, because it would be awesome.. but its not your fault virtual keyboard needs portrait mode | 02:09 |
Lullen | haha yeah we really need it :( | 02:10 |
dotblank | ah.. I think I found out why | 02:15 |
dotblank | the constructor gets called and sets the auto-rotation immediately | 02:15 |
dotblank | not when shown | 02:15 |
*** csaavedra has quit IRC | 02:18 | |
Lullen | I think I have tried that too | 02:19 |
Lullen | been having this problems since nokia qt sdk came out :( | 02:19 |
dotblank | Lullen, I got it to work | 02:25 |
Lullen | how? | 02:26 |
Lullen | sounds awesome | 02:26 |
dotblank | well I called setAttribute on the startwindow before I called nw->show(); | 02:27 |
Lullen | setAttribute on nw? | 02:27 |
dotblank | then I made the nw set the attribute back when it was saved or destroyed | 02:28 |
dotblank | no on the sartwindow | 02:28 |
dotblank | the orientation has to be set on top level widget | 02:28 |
Lullen | how do I do that? | 02:28 |
Lullen | set it back i mean | 02:28 |
dotblank | also when the button is clicked you should create a new window | 02:28 |
dotblank | not create it during the initializeation of the program | 02:29 |
Lullen | Yeah I have been thinking about doing that but I never understood why | 02:29 |
dotblank | you have to call ((QWidget *)parent())->setAttribute() | 02:29 |
dotblank | but thats less then ideal | 02:30 |
dotblank | so you want to destroy the window and connect the signal | 02:30 |
dotblank | so whenever nw gets destroyed the portrait mode is restored | 02:31 |
dotblank | also the scave funstion should make the window destroy itself | 02:31 |
dotblank | save* | 02:31 |
Lullen | that code is going to be messy as it can be like: startwindow->weightwindow->listwindow->infowindow->exercisewindow->newexercisewindow | 02:31 |
dotblank | or emit a signal that it should be destroyed | 02:31 |
Lullen | what do I call do destroy it? | 02:31 |
Lullen | my first c++ program here :) | 02:32 |
dotblank | actually im not too sure but you could do nw->~nw() | 02:32 |
Lullen | ah thats true | 02:32 |
Lullen | I can't make some public function or something that newexercisewindow can call instead of calling parent? | 02:34 |
Lullen | annoying to 5 parents to set the orientation | 02:34 |
Lullen | to call* | 02:34 |
dotblank | Lullen, actually im working on making it so the nw doesn't even call setAttribute in regard to window orientation | 02:35 |
Lullen | okey nice :) | 02:35 |
dotblank | this app takes forever to build | 02:39 |
dotblank | ughs :) | 02:39 |
Lullen | yeah its annoying >:( | 02:41 |
Lullen | it is getting kind of big | 02:42 |
dotblank | 5329 lines of code | 02:43 |
Lullen | lol | 02:44 |
Lullen | if I was better I guess it could be at least 3000 lines | 02:44 |
SpeedEvil | dotblank: this is some sort of diet program? | 02:45 |
Lullen | not yet | 02:46 |
Lullen | its more of a program to have at the gym | 02:46 |
SpeedEvil | ah | 02:47 |
Lullen | more diet functions will come | 02:48 |
Lullen | dont know when tho soon I won't have that much time | 02:48 |
dotblank | Lullen, almost got it all working | 02:55 |
Lullen | nice work :) | 02:58 |
dotblank | Lullen, ran into a snag | 03:01 |
dotblank | because when you hit the back button on a stacked window it does not destroy just hides | 03:01 |
dotblank | so I can't catch the destroy signal.. | 03:02 |
Lullen | I know | 03:02 |
Lullen | but | 03:02 |
Lullen | there is a way | 03:02 |
Lullen | sec | 03:02 |
Lullen | void ExerciseWindow::closeEvent(QCloseEvent *event) | 03:02 |
Lullen | that is called when you hit the back button | 03:03 |
Lullen | then you can call ~ | 03:03 |
dotblank | hmm ok | 03:03 |
dotblank | What close event is it specifically? | 03:03 |
dotblank | oh ncvm | 03:04 |
dotblank | nvm thot it was a signal | 03:04 |
Lullen | aha | 03:05 |
Lullen | nope :) | 03:05 |
*** SpeedEvil has quit IRC | 03:08 | |
*** SpeedEvil has joined #maemo-devel | 03:12 | |
SpeedEvil | Is there a nice installable package for powertop? | 03:14 |
dotblank | Lullen Why are you linking with phonon? | 03:15 |
dotblank | Lullen, does it play sound? | 03:15 |
Lullen | yes it does | 03:17 |
dotblank | oh ok then :) | 03:17 |
dotblank | well I got it all to work | 03:17 |
Lullen | great | 03:17 |
Lullen | what did you do? | 03:17 |
dotblank | let me send you some diffs | 03:17 |
Lullen | sure | 03:18 |
dotblank | http://pastebin.com/z9jkwSZk thats startwindow | 03:20 |
dotblank | http://pastebin.com/XfWjbPPb startwindow header | 03:20 |
dotblank | http://pastebin.com/SscXYUd5 new exercise window | 03:21 |
dotblank | http://pastebin.com/nbQD5af6 newexercise window header | 03:22 |
Lullen | hmm | 03:23 |
Lullen | at the startwindow | 03:23 |
Lullen | this->setAttribute(Qt::WA_Maemo5PortraitOrientation,false); and connect(nw,SIGNAL(closed()),this,SLOT(restorePortrait())); is before nw.show right? | 03:23 |
dotblank | Lullen, after | 03:24 |
Lullen | okey | 03:25 |
dotblank | here is all of the files together | 03:28 |
dotblank | http://pastebin.com/zwBQe64Q | 03:28 |
*** rcampbell has joined #maemo-devel | 03:29 | |
Lullen | thanks alot :) | 03:30 |
dotblank | maybe the show and load should be done after the set attr. | 03:31 |
dotblank | think it would look better | 03:31 |
Lullen | okey | 03:32 |
*** njsf_ has joined #maemo-devel | 03:47 | |
*** shinkamui has joined #maemo-devel | 05:17 | |
*** kamui has quit IRC | 05:21 | |
*** njsf_ has quit IRC | 06:00 | |
*** rcampbell has quit IRC | 07:23 | |
*** Acedip has joined #maemo-devel | 07:31 | |
*** DigitalPioneer has joined #maemo-devel | 07:34 | |
*** DocScrutinizer has quit IRC | 07:34 | |
*** Venemo has joined #maemo-devel | 08:34 | |
*** csaavedra has joined #maemo-devel | 08:43 | |
*** plastun has joined #maemo-devel | 09:17 | |
*** bricks has joined #maemo-devel | 09:18 | |
*** bricks has quit IRC | 09:20 | |
*** bricks has joined #maemo-devel | 09:20 | |
plastun | hello! how to get cellrenderer from hildon.TouchSelector? | 09:23 |
*** Venemo has quit IRC | 10:04 | |
*** plastun has quit IRC | 10:07 | |
*** plastun has joined #maemo-devel | 10:07 | |
*** Venemo has joined #maemo-devel | 10:08 | |
*** swc|666 has quit IRC | 10:12 | |
*** swc|666 has joined #maemo-devel | 10:16 | |
*** swc|666 has quit IRC | 10:17 | |
plastun | hello! how to add markupped text to HildonTouchSelector? | 10:34 |
*** amigadave has joined #maemo-devel | 11:10 | |
*** eitama has joined #maemo-devel | 11:14 | |
*** SpeedEvil has quit IRC | 11:22 | |
*** plastun has quit IRC | 11:22 | |
*** SpeedEvil has joined #maemo-devel | 11:23 | |
*** plastun has joined #maemo-devel | 11:23 | |
*** aboyer_ has joined #maemo-devel | 11:38 | |
*** Venemo has left #maemo-devel | 12:00 | |
*** Acedip has quit IRC | 12:13 | |
*** aboyer_ has quit IRC | 12:50 | |
*** plastun has quit IRC | 12:52 | |
*** plastun has joined #maemo-devel | 12:52 | |
*** aboyer_ has joined #maemo-devel | 12:52 | |
*** plastun has quit IRC | 12:54 | |
*** plastun has joined #maemo-devel | 12:54 | |
*** achipa has joined #maemo-devel | 13:31 | |
*** plastun has quit IRC | 13:47 | |
*** plastun has joined #maemo-devel | 13:48 | |
*** plastun has quit IRC | 13:57 | |
*** plastun has joined #maemo-devel | 13:58 | |
*** njsf_ has joined #maemo-devel | 14:07 | |
*** ScriptFanix has quit IRC | 14:15 | |
*** ScriptFanix has joined #maemo-devel | 14:16 | |
*** achipa has quit IRC | 14:48 | |
*** plastun has quit IRC | 14:52 | |
*** plastun has joined #maemo-devel | 14:52 | |
*** achipa has joined #maemo-devel | 15:10 | |
*** plastun has quit IRC | 15:11 | |
*** plastun has joined #maemo-devel | 15:11 | |
*** eitama has quit IRC | 15:15 | |
*** eitama has joined #maemo-devel | 15:15 | |
*** Venemo has joined #maemo-devel | 15:15 | |
*** DigitalPioneer is now known as DocScrutinizer2 | 15:17 | |
*** DocScrutinizer2 is now known as DocScrutinizer | 15:17 | |
*** lizardo has joined #maemo-devel | 15:24 | |
*** fiferboy has joined #maemo-devel | 15:51 | |
*** plastun has quit IRC | 16:50 | |
*** plastun has joined #maemo-devel | 16:50 | |
*** Venemo1 has joined #maemo-devel | 17:02 | |
*** Venemo has quit IRC | 17:03 | |
*** plastun has quit IRC | 17:05 | |
*** kamui__ has joined #maemo-devel | 17:17 | |
*** kW_ has joined #maemo-devel | 17:21 | |
*** shinkamui has quit IRC | 17:21 | |
*** Venemo has joined #maemo-devel | 17:39 | |
*** Venemo1 has quit IRC | 17:41 | |
*** edisson has joined #maemo-devel | 18:29 | |
*** bricks has left #maemo-devel | 18:35 | |
*** azakai has joined #maemo-devel | 18:56 | |
*** swc|666 has joined #maemo-devel | 19:06 | |
*** amigadave has quit IRC | 19:13 | |
*** achipa has quit IRC | 19:26 | |
*** Venemo has quit IRC | 19:52 | |
*** Venemo has joined #maemo-devel | 19:52 | |
*** MacGyver_ has joined #maemo-devel | 20:03 | |
MacGyver_ | Hi together | 20:04 |
MacGyver_ | is there anybody how can tell me a little bit about using SDL with the n900 motion sensor ?? | 20:05 |
lcuk | MacGyver_, theres an excellent overview about maemo accelerometers using many languages hold on | 20:06 |
lcuk | http://wiki.maemo.org/Accelerometers | 20:06 |
lcuk | its not an SDL thing specifically :) | 20:07 |
MacGyver_ | thanks for the link | 20:07 |
MacGyver_ | thats not a problem | 20:07 |
MacGyver_ | i want to rewrite my game OpenPong and i want to use the sensor for move the paddles | 20:08 |
lcuk | cool! | 20:08 |
*** njsf_ has quit IRC | 20:09 | |
*** Ian-- has quit IRC | 20:24 | |
*** kulve has quit IRC | 20:24 | |
*** Ian-- has joined #maemo-devel | 20:24 | |
*** kulve has joined #maemo-devel | 20:25 | |
*** polac has joined #maemo-devel | 20:27 | |
*** 20QAA9IMK has joined #maemo-devel | 20:29 | |
*** MacGyver_ has quit IRC | 20:30 | |
*** timoph|AFK is now known as timoph | 21:16 | |
*** njsf_ has joined #maemo-devel | 21:16 | |
*** kW_ has quit IRC | 21:27 | |
*** kW_ has joined #maemo-devel | 21:27 | |
*** kW_ has quit IRC | 21:32 | |
*** lcuk has quit IRC | 21:38 | |
*** njsf_ has quit IRC | 22:31 | |
*** timoph is now known as timoph|afk | 22:49 | |
*** eitama has quit IRC | 23:02 | |
*** kW_ has joined #maemo-devel | 23:03 | |
*** kW_ has quit IRC | 23:14 | |
*** lcuk has joined #maemo-devel | 23:16 | |
*** lcuk has quit IRC | 23:18 | |
*** kW_ has joined #maemo-devel | 23:20 | |
*** Venemo has quit IRC | 23:24 | |
*** lcuk has joined #maemo-devel | 23:24 | |
*** kW_ has quit IRC | 23:26 | |
*** Venemo has joined #maemo-devel | 23:28 | |
*** lizardo has quit IRC | 23:51 | |
*** Venemo has left #maemo-devel | 23:59 |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!