Author Topic: New App #4: d20 Dice  (Read 2489 times)

doc

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • http://
New App #4: d20 Dice
« on: April 18, 2004, 11:26:01 pm »
Hi...I\'ve tried other versions of a dice roller program and decided to write my own.  This one doesn\'t require the keyboard like the java dice program to enter the number of dice.  It uses spin boxes, radio boxes, and buttons...now you can just click an image of the type of die you\'d like to roll and see the result in the results window.  For you gamers out there I\'m sure you\'ll appreciate the way this program works.  Cheers.

P.S. offroadgeek, please add this app to the zaurus feed.  Thanks.

zD20 Dice Home:
http://www.cinlug.org/index.php?module=Sta...dice/index.html
zLapSpeed ipk:
http://www.cinlug.org/index.php?module=Sta...e_1.0.0_arm.ipk
By your command...

Doc
Sharp SL-5500 PDA
Sharp 2.78 ROM
Viking 256MB SD
Socket LP-E CF Ethernet

offroadgeek

  • Administrator
  • Hero Member
  • *****
  • Posts: 1419
    • View Profile
    • https://www.oesf.org
New App #4: d20 Dice
« Reply #1 on: April 19, 2004, 01:21:33 am »
Quote
P.S. offroadgeek, please add this app to the zaurus feed.  Thanks.

done
Search the OESF Wiki
C1000 w/Cacko 1.23 beta (from Streamline) / 760 pdaxrom rc9 / 6000L (thanks Santa's elf!) / 5500 - OZ 3.3.5 / SIMpad SL4
1GB, 256mb SanDisk CF / 2x 1GB, 512mb, 256mb, 128mb SanDisk SD
Ambicom WL100C-CF wifi / Socket 56k CF modem / AmbiCom BT2000-CF (x2)
Pocketop keyboard, Piel Frama case (1000 & 5500), PDAir case (760 & 1000)
sip:536093@fwd.pulver.com
| OESF | ELSI | Zaurus User Group | ZaurusThemes |

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
New App #4: d20 Dice
« Reply #2 on: April 19, 2004, 08:03:35 am »
Nice, but it\'s really small on the C760 , okay if I keep it enlarged mode, but I\'d like to se more of the history.

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

doc

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • http://
New App #4: d20 Dice
« Reply #3 on: April 19, 2004, 10:01:46 am »
Yes I was a bit disappointed in how little I could get to display on the 5500. But I want the dice buttons big enough to use a finger rather than the stylus.  Only 4 of the last lines show on my screen.   I\'m not too savy with the QTextView widget, so maybe there is a better way to do it.  I don\'t have a C760, so I can\'t test it on that, but if you send me a screen shot, I can look into trying to accomodate the larger screen with the \"resize\" options on the QTextView widget.  Right now it is set to \"manual\" the other options are \"AutoOne\" and \"AutoOneFit\", not quite sure what that means at present...can you resize the results window manually?  Send it to db@cinlug.org, and any other feedback from the community of Zaurus folks who play D20 games would be appreciated.  Cheers...
By your command...

Doc
Sharp SL-5500 PDA
Sharp 2.78 ROM
Viking 256MB SD
Socket LP-E CF Ethernet

tumnus

  • Hero Member
  • *****
  • Posts: 1176
    • View Profile
    • http://www.cpinkney.org.uk
New App #4: d20 Dice
« Reply #4 on: April 19, 2004, 10:42:38 am »
It sounds like you want to look at layouts like QVBoxLayout and QHBoxLayout and spacers and the sizePolicy properties on widgets that make them autosize in layouts. QT Designer lets you create layouts fairly easily.
# Search the Zaurus Howtos ## Search the Zaurus FAQs ## Find Z software at ELSI #
--------------------
UK SL5500 with Sharp ROM 3.13, SL5600 with Sharp ROM 1.32 - SuSE 9.0 Pro, Windows XP Home
Qualendar for Calendar and Todo
Socket Bluetooth CF Card (Rev F), Kingmax 512MB MMC Card, Palm Tungsten T Stylus,
Pretec CF->Smartmedia Adapter, Semsons Universal Battery Extender

doc

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • http://
New App #4: d20 Dice
« Reply #5 on: April 19, 2004, 11:36:57 am »
Right.  Need to do more research on that, but it looks good on the 5xxx series. ;]  All I know at this point is that it works a whole lot better than that Java Dice ipk I downloaded.  I can just click the dice with my finger.  When running on x86 I just compile the app for x86 and run /opt/Qtopia/bin/qvfb & then ./appname -qws  and it displays in a PDA sized 240x320 window.  I think I can configure it for any size, but maybe someone can tell me what sizes I should test the app in?  What is the size of the C7xxx screen, C6xxx screen, etc?
By your command...

Doc
Sharp SL-5500 PDA
Sharp 2.78 ROM
Viking 256MB SD
Socket LP-E CF Ethernet

tumnus

  • Hero Member
  • *****
  • Posts: 1176
    • View Profile
    • http://www.cpinkney.org.uk
New App #4: d20 Dice
« Reply #6 on: April 19, 2004, 05:17:23 pm »
SL-Cxxx Zs and the SL-6000 all have a 640x480 screen. QT Designer also has a preview function that lets you resize a form to see how the layouts work.

I like your app a lot better than the Java version BTW
# Search the Zaurus Howtos ## Search the Zaurus FAQs ## Find Z software at ELSI #
--------------------
UK SL5500 with Sharp ROM 3.13, SL5600 with Sharp ROM 1.32 - SuSE 9.0 Pro, Windows XP Home
Qualendar for Calendar and Todo
Socket Bluetooth CF Card (Rev F), Kingmax 512MB MMC Card, Palm Tungsten T Stylus,
Pretec CF->Smartmedia Adapter, Semsons Universal Battery Extender