GUI

More
18 Jul 2012 02:28 #553 by PhracturedBlue
Replied by PhracturedBlue on topic Re: GUI
I didn't hook up all the widgets, and not everything is fully configurable yet, but the main page now more closely resembles your example. Because I changed the background image, all the other pages now need to be modified to look ok.

Things you can do:
specify custom icons for each model
Specify the color and outline of the text boxes as well as if they are filled or transparent
specify whether the battery icon or text is shown

Please Log in or Create an account to join the conversation.

More
18 Jul 2012 05:33 - 18 Jul 2012 05:42 #554 by FDR
Replied by FDR on topic Re: GUI
Thanks, I will do the shuffleboard part! ;)

Can I make the header a bit coarser? The buttons can't fit on this small...
Also that model name font is while fancy enough, but it is hard to read. :)

I have some bug with the model picture on the main sreen too:

Attachments:
Last edit: 18 Jul 2012 05:42 by FDR.

Please Log in or Create an account to join the conversation.

More
18 Jul 2012 06:17 - 18 Jul 2012 06:17 #555 by PhracturedBlue
Replied by PhracturedBlue on topic Re: GUI

FDR wrote: Thanks, I will do the shuffleboard part! ;)

Can I make the header a bit coarser? The buttons can't fit on this small...

Of course. I just wanted to getthe pieces in place so you could move them around as you like.

Also that model name font is while fancy enough, but it is hard to read. :)

Yes, that font was just a surragate, and is actually completely useless (nearly unreadable on the actual Devo8). I will probably just delete it. My expectation is that we want a 20pt font there, but I don't have one right now.

I have some bug with the model picture on the main sreen too:

that is weird. is it with the bmps I placed or with your own?
Can you verify that you can open the heli.bmp and plane.bmp bitmaps directly? I'm trying to figure out if the bug is in theparser or the bmps themselves. Also, you can try making your own. Theyare just 96x96 16bit bmps (same as everything else). Currently, they are the ones I copied from the Devo Lib as placeholders.
Last edit: 18 Jul 2012 06:17 by PhracturedBlue.

Please Log in or Create an account to join the conversation.

More
18 Jul 2012 06:24 #556 by FDR
Replied by FDR on topic Re: GUI

PhracturedBlue wrote: that is weird. is it with the bmps I placed or with your own?
Can you verify that you can open the heli.bmp and plane.bmp bitmaps directly? I'm trying to figure out if the bug is in theparser or the bmps themselves. Also, you can try making your own. Theyare just 96x96 16bit bmps (same as everything else). Currently, they are the ones I copied from the Devo Lib as placeholders.

Yes this is the default bmp, and I can open it in PS, and there it looks good.

Please Log in or Create an account to join the conversation.

More
18 Jul 2012 07:07 #557 by PhracturedBlue
Replied by PhracturedBlue on topic Re: GUI
I fixed the bmp. I was opening it in 'text' mode which works fine in linux but not in windows. that specific bmp just happens to have a color that triggers the issue.

Please Log in or Create an account to join the conversation.

More
18 Jul 2012 08:16 #558 by FDR
Replied by FDR on topic Re: GUI

PhracturedBlue wrote: I fixed the bmp. I was opening it in 'text' mode which works fine in linux but not in windows. that specific bmp just happens to have a color that triggers the issue.


Thanks, it's good now...

However I have a crash: if I go to the mixer page end change the channel to "Expo & D/R" type, the emulator craches and closes.

Please Log in or Create an account to join the conversation.

More
18 Jul 2012 08:38 #559 by PhracturedBlue
Replied by PhracturedBlue on topic Re: GUI

FDR wrote:

PhracturedBlue wrote: I fixed the bmp. I was opening it in 'text' mode which works fine in linux but not in windows. that specific bmp just happens to have a color that triggers the issue.


Thanks, it's good now...

However I have a crash: if I go to the mixer page end change the channel to "Expo & D/R" type, the emulator craches and closes.

This was an uninitizlized value. It worked fine in linux, but not windows. Anyhow, it is fixed now.

Please Log in or Create an account to join the conversation.

More
18 Jul 2012 08:40 #560 by FDR
Replied by FDR on topic Re: GUI

PhracturedBlue wrote: This was an uninitizlized value. It worked fine in linux, but not windows. Anyhow, it is fixed now.

Thanks, you can go to sleep now! :lol:

Please Log in or Create an account to join the conversation.

More
18 Jul 2012 13:44 #561 by FDR
Replied by FDR on topic Re: GUI
:blink:
You haven't slept too much!

Please Log in or Create an account to join the conversation.

More
18 Jul 2012 13:47 #562 by PhracturedBlue
Replied by PhracturedBlue on topic Re: GUI

FDR wrote: :blink:
You haven't slept too much!

No probably not enough :)

Please Log in or Create an account to join the conversation.

More
18 Jul 2012 13:50 #563 by FDR
Replied by FDR on topic Re: GUI
Compile error:
+ Compiling 'target/emu_devo8/fltk.cpp'
 + Building 'emu_devo8.exe'
objs/emu_devo8-w32/sound.o: In function `SOUND_Init':
C:\deviation\MinGW\msys\1.0\home\LFodor\src\deviation\src/target/emu_devo8/sound
.c:115: undefined reference to `Pa_Initialize'
C:\deviation\MinGW\msys\1.0\home\LFodor\src\deviation\src/target/emu_devo8/sound
.c:118: undefined reference to `Pa_Terminate'
C:\deviation\MinGW\msys\1.0\home\LFodor\src\deviation\src/target/emu_devo8/sound
.c:121: undefined reference to `Pa_GetDefaultOutputDevice'
C:\deviation\MinGW\msys\1.0\home\LFodor\src\deviation\src/target/emu_devo8/sound
.c:124: undefined reference to `Pa_Terminate'
C:\deviation\MinGW\msys\1.0\home\LFodor\src\deviation\src/target/emu_devo8/sound
.c:130: undefined reference to `Pa_GetDeviceInfo'
objs/emu_devo8-w32/sound.o: In function `SOUND_Start':
C:\deviation\MinGW\msys\1.0\home\LFodor\src\deviation\src/target/emu_devo8/sound
.c:140: undefined reference to `Pa_OpenStream'
C:\deviation\MinGW\msys\1.0\home\LFodor\src\deviation\src/target/emu_devo8/sound
.c:152: undefined reference to `Pa_Terminate'
C:\deviation\MinGW\msys\1.0\home\LFodor\src\deviation\src/target/emu_devo8/sound
.c:155: undefined reference to `Pa_StartStream'
C:\deviation\MinGW\msys\1.0\home\LFodor\src\deviation\src/target/emu_devo8/sound
.c:159: undefined reference to `Pa_Terminate'
objs/emu_devo8-w32/sound.o: In function `SOUND_Stop':
C:\deviation\MinGW\msys\1.0\home\LFodor\src\deviation\src/target/emu_devo8/sound
.c:166: undefined reference to `Pa_StopStream'
collect2: ld returned 1 exit status
make: *** [emu_devo8.exe] Error 1

...probably forgot to checkin or push something...

Please Log in or Create an account to join the conversation.

More
18 Jul 2012 13:54 #564 by PhracturedBlue
Replied by PhracturedBlue on topic Re: GUI
better now.

Please Log in or Create an account to join the conversation.

More
18 Jul 2012 14:07 #565 by FDR
Replied by FDR on topic Re: GUI
Yep.

Found a small bug(?) while clicking like a crazy:



If you change a swith to something, then reverse it by clicking into, and then change back to "None", then the buttons stay...
Attachments:

Please Log in or Create an account to join the conversation.

More
18 Jul 2012 18:19 - 18 Jul 2012 18:57 #566 by FDR
Replied by FDR on topic Re: GUI
Shuffleboard complete... ;)


EDIT: + changed title text and it's color
Last edit: 18 Jul 2012 18:57 by FDR.

Please Log in or Create an account to join the conversation.

More
18 Jul 2012 19:03 #567 by PhracturedBlue
Replied by PhracturedBlue on topic Re: GUI
Looks nice. I merged your changes. I also added code to show the icon of the model selected in load/save. Makes the screen look a little nicer, though probably providing virtually no value :)

Please Log in or Create an account to join the conversation.

More
18 Jul 2012 19:11 #568 by FDR
Replied by FDR on topic Re: GUI
I've made some mistake: the lower two boxes on the main page are no longer in boxes, but I can't see anything...

Please Log in or Create an account to join the conversation.

More
18 Jul 2012 19:24 #569 by FDR
Replied by FDR on topic Re: GUI

PhracturedBlue wrote: Looks nice. I merged your changes. I also added code to show the icon of the model selected in load/save. Makes the screen look a little nicer, though probably providing virtually no value :)

...and I have already realigned! :)

Please Log in or Create an account to join the conversation.

More
18 Jul 2012 19:35 - 18 Jul 2012 19:40 #570 by FDR
Replied by FDR on topic Re: GUI

FDR wrote: I've made some mistake: the lower two boxes on the main page are no longer in boxes, but I can't see anything...


Something is fishy in the ini parser...
I saw strange thing before too, but then I couldn't replicate, but now I can:
The timer boxes appeared if I pulled the font-timer section in the config.ini upper. If I put it before the throttle section, then the throttle boxes go wrong. If I have uppered more, everything seems allright...
Last edit: 18 Jul 2012 19:40 by FDR. Reason: grammar

Please Log in or Create an account to join the conversation.

More
18 Jul 2012 19:45 #571 by FDR
Replied by FDR on topic Re: GUI
I've made some room for you on the chantest_page above and under the bars to display the channel number and the channel value... ;)

And would you shorten the battery level text? IMO 2 decimals would be more than enough...

Please Log in or Create an account to join the conversation.

More
18 Jul 2012 21:01 #572 by PhracturedBlue
Replied by PhracturedBlue on topic Re: GUI
ini parser should be fixed. There is a really hairy piece of code in there to support the devo file i/o and getting it right in all cases is quite tricky, there may still be other bugs like this lurking.

I also merged your latest changes and fixed the voltage. And added the tx-power icon (it should even work properly as youchange the power)

Please Log in or Create an account to join the conversation.

Time to create page: 0.185 seconds
Powered by Kunena Forum