Re: Separating Code

new topic     » goto parent     » topic index » view thread      » older message » newer message
euphoric said...

I'd like to organize my code differently for a current project, and I'm wondering how to go about doing it.

Ultimately, what I'd like to do is something like this:

include wxeud.e 
 
include myFrame.ew        -- defines the primary frame as well as multiple dialogs 
include frame_controls.ew -- uses the frame defined in myFrame.ew 
include dlg_controls_1.ew -- uses dlg_1 defined in myFrame.ew 
include dlg_controls_2.ew -- uses dlg_1 defined in myFrame.ew 
-- etc... 
 

In each of the "dlg_controls_X.ew" files, it contains the definition for the dialog's controls and the associated event handlers.

Is there even a way to do this with Euphoria? If not, I'm imagining an "import" directive that plops the imported code straight into the code as though it were there to start with.

Matt, how do you wrangle a large wxEuphoria project?

What you have looks fine. I'm assuming that you'll have some code that several of those files will want to use. Put that in its own file, and include it wherever you need it.

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu