Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Need help with new project
Need help with new project [message #38571] Tue, 25 December 2012 22:12 Go to next message
lectus is currently offline  lectus
Messages: 329
Registered: September 2006
Location: Brazil
Senior Member
Hi guys!
This is my first real project. I need a little help with ideas.
For this project I need to draw a few shapes in a window. Each shape indicates a status. This status will be stored in a sqlite database, then i need to show the right image according the status stored.
Each client stored in the database has this status handling.

Any ideas to point me on the right direction?

Thanks
Re: Need help with new project [message #38572 is a reply to message #38571] Wed, 26 December 2012 00:04 Go to previous messageGo to next message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
Maybe break it down to two sections, logic and display.

How stuff is handled in the data base and pulled out.
This could just show as a list with ID and true/false, on/off, etc.
With whatever attributes you want to assign to each.

Then draw images for however you want it displayed.

What kind of laptop did you get?

[Updated on: Wed, 26 December 2012 00:08]

Report message to a moderator

Re: Need help with new project [message #38577 is a reply to message #38572] Wed, 26 December 2012 02:19 Go to previous messageGo to next message
lectus is currently offline  lectus
Messages: 329
Registered: September 2006
Location: Brazil
Senior Member
nlneilson wrote on Tue, 25 December 2012 18:04

Maybe break it down to two sections, logic and display.

How stuff is handled in the data base and pulled out.
This could just show as a list with ID and true/false, on/off, etc.
With whatever attributes you want to assign to each.

Then draw images for however you want it displayed.

What kind of laptop did you get?


I got an ASUS laptop.

So, how do I draw images? What's the recommended way?
Re: Need help with new project [message #38579 is a reply to message #38577] Wed, 26 December 2012 02:59 Go to previous messageGo to next message
Lance is currently offline  Lance
Messages: 347
Registered: March 2007
Senior Member
http://www.ultimatepp.org/srcdoc$Draw$ImgTutorial$en-us.html

http://www.ultimatepp.org/srcdoc$Draw$DrawTutorial$en-us.htm l

Also refer to Examples/ImageView

Re: Need help with new project [message #38580 is a reply to message #38571] Wed, 26 December 2012 03:06 Go to previous messageGo to next message
lectus is currently offline  lectus
Messages: 329
Registered: September 2006
Location: Brazil
Senior Member
Actually, let me get more detailed here:

This images will be a circle. I need to paint it with different color as the user chooses.

There will be a legend indicating what the user just painted.

Something like this:
http://imagetooth.rubyforge.org/images/odontogram.png
It's an odontogram.

[Updated on: Wed, 26 December 2012 03:30]

Report message to a moderator

Re: Need help with new project [message #38581 is a reply to message #38577] Wed, 26 December 2012 03:09 Go to previous messageGo to next message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
ASUS is good. If this is your first laptop you will like the portability and being able to hook up to the internet.
McDonalds and Denny's is good for me while getting something to eat when 150 miles from home at my Farm/Ranch.

Look at the 5th image down on this page.
http://www.ultimatepp.org/www$uppweb$idess$en-us.html
Also you should be able to import images.

Upp is very powerful and you can do whatever you want once you know how. The documentation is much better than before but could still be improved. AFAIK the 'Manual' you can click on the forum still is not available as a download.

The help on the forum is excellent.

Just for kicks try OpenGL in reference.

[Updated on: Wed, 26 December 2012 03:41]

Report message to a moderator

Re: Need help with new project [message #38582 is a reply to message #38581] Wed, 26 December 2012 03:47 Go to previous messageGo to next message
Lance is currently offline  Lance
Messages: 347
Registered: March 2007
Senior Member
You don't seem to need more than ImageDraw part in the U++ Draw Guide.

No prestore icon is necessary as only simple shapes are involved.

ImageDraw is a Draw derivative which you can use just like you use the one you get in a virtual Ctrl::Paint(Draw& w), you can assign it to a Image very easily by simple assignment. And a Image can be drawn on your window in its overided Paint method.
Re: Need help with new project [message #38583 is a reply to message #38582] Wed, 26 December 2012 03:51 Go to previous messageGo to next message
Lance is currently offline  Lance
Messages: 347
Registered: March 2007
Senior Member
DrawingDraw in the same guide serves your purpose well too.

One will be rendered on to your screen with Draw::DrawDrawing, and the other is rendered with Draw::DrawImage
Re: Need help with new project [message #38596 is a reply to message #38571] Wed, 26 December 2012 23:22 Go to previous message
lectus is currently offline  lectus
Messages: 329
Registered: September 2006
Location: Brazil
Senior Member
I decided to represent each status as a DropList.

It simplified my code.

BTW... U++ is very productive. I expected this project to take about 80 days.

I'm on day 1 and the project is 80% done. I'm just having a little bit work with a complex algorithm. But it's nice to know U++ takes care of everything like reports.
Previous Topic: Linking error
Next Topic: How to add a struct to a U++ container?
Goto Forum:
  


Current Time: Sun Dec 15 09:34:20 CET 2019

Total time taken to generate the page: 0.01191 seconds