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 » Removing .lay dependancy from a GUI app
Removing .lay dependancy from a GUI app [message #27852] Fri, 06 August 2010 19:50 Go to previous message
cullam is currently offline  cullam
Messages: 8
Registered: July 2010
Location: St. John's Canada
Promising Member
Hi Guys.

I've been working on a small set of graphical apps. When I started building them, I used information from one of tutorials, and a template to get started. Basically, the class that contains most of my important functionality is declared like this:

"class VectorsGUI : public UUVBase, public WithVectorsGUILayout<TopWindow>"

I've been doing alot of my own work here, and I'm not using any of UPP's built in graphical widgits. I've started separating my VectorsGUI class into two classes: one that does the basic stuff that I intend to extend on in other applications, and one that does the specific stuff that I want for this application. But to do this, my life would be made a lot easier if I no longer relied on "public WithVectorsGUILayout<TopWindow>", since the class that will want to control the window (I think) will have a different name, and I'd rather not have to use elements that work entirely "under the hood". Aside from that, I'm not actually using the layout file for anything, other than my window size, which I'm going to be reading in from a .conf file in future anyway.

So, in theory, there should be little to this. My main looks like:

#include "VectorsGUI.h"

#define VERSION "2010070801"
#define FILE_BASE "SQX-Drive"
#define FILE_TITLE String( FILE_BASE )


GUI_APP_MAIN
{
VectorsGUI(FILE_TITLE, FILE_BASE, VERSION ).Run();
}


Is there a simple way to have my code just use TopWindow directly, without the auto-generated constructor? And is there something additional I have to do to still be able to use Paint() and GetX()/GetY()?

I'm sure this is fairly easy, but I just don't know enough about how this constructor works. Thanks!
-cullam
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [solved]how to use upp without the ide (what is the gcc command line?)
Next Topic: Debugger’s Explorer tab & display of arrays/vectors
Goto Forum:
  


Current Time: Sun Apr 28 17:00:30 CEST 2024

Total time taken to generate the page: 0.03108 seconds