Step.rc vs. Include Thread last updated on 2003-07-04 00:58:20

Posted by member 43401 on 2003-07-03 00:27:59

I was just wondering if people prefer configuring modules in Step.rc or if they use seperate config files like in Simplicity Theme.

Posted by member 1783 on 2003-07-03 02:37:08 link

i usually like to keep the configuration in one file, that's in step.rc, but i use other config files too if it makes themeing simpler and more logical.

Posted by member 2112 on 2003-07-03 05:53:07 link

I've seen some themes use a seperate RC file for every module. I personally feel it's better to break a theme down into multiple files as I believe it makes it easier to follow but really it's up to the individual.

Posted by member 7223 on 2003-07-03 06:09:26 link

I think it's not a very good idea to separate rc files for every module. I prefer put almost everything in step.rc and personal.rc. But both include a lot:

step.rc:
Include "$UserEtc$settings.rc" ; per user theme settings

*mzScriptFile "$ConfigDir$Step.mz" ; global scripts
*mzScriptFile "$UserEtc$Step.mz" ; per user theme scripts


personal.rc:
Include "$PersonalDir$$Username$.rc" ; per user config (all themes)

*mzScriptFile "$PersonalDir$Step.mz" ; common scripts (all themes)

Posted by member 99 on 2003-07-03 10:37:22 link

I keep 'em all in one file, but separated with blocks of ;{ ... ;} Since I use scite (and more recently alphaedit3), these blocks get collapsed so I get a nice table of contents for my step.rc:
;{ tasks
;{ date
;{ VWM
;{ SkinBox
;{ scripts
;{ lsxcommand
CommandX 0
CommandY -$barheight*2-1$
CommandWidth $leftResolutionX*.40$
CommandHeight $barheight$
CommandBorderSize 1
...
;}

The best of both worlds! :D

Posted by member 6742 on 2003-07-03 23:39:35 link

I agree with Rabid and Smurth on this one. In theme creation, so many of the individual modules can be interdependent that it gets overtly confusing to keep control content spanned across multiple locations. Translation: less windows open at a time to do the same editing.

Posted by member 1 on 2003-07-04 00:58:20 link

I personally prefer includes because I like to keep configs for certain modules contained in one easy to find place. However, when I do set it up I include everything about a modules setup in one file, so more than one module may be used in a single rc. For example, GetWeather is displayed via Label so Label information is found in the GetWeather.rc file.