home *** CD-ROM | disk | FTP | other *** search
-
- /*- - - - - - - - - - - - - - - - - - - - - */
- /* File: qman_menus.include */
- /* */
- /* Sets up data structures required */
- /* for subsequent use with call to */
- /* Intuition routine SetMenuStrip. */
- /*- - - - - - - - - - - - - - - - - - - - - */
-
- void SetUpMandelMenus()
-
- {
-
- /* Link the menus together: */
- qman.NextMenu = &resolution;
- resolution.NextMenu = &color;
- color.NextMenu = &zoom;
- zoom.NextMenu = NULL;
-
- qman.LeftEdge = 0;
- qman.Width = 120;
- resolution.LeftEdge = 150;
- resolution.Width = 120;
- color.LeftEdge = 300;
- color.Width = 140;
- zoom.LeftEdge = 450;
- zoom.Width = 120;
-
- qman.Flags = MENUENABLED | MIDRAWN;
- resolution.Flags = MENUENABLED | MIDRAWN;
- color.Flags = MENUENABLED | MIDRAWN;
- zoom.Flags = MENUENABLED | MIDRAWN;
-
- qman.MenuName = "Qman\0";
- resolution.MenuName = "Resolution\0";
- color.MenuName = "Color\0";
- zoom.MenuName = "Zoom\0";
-
- qman.FirstItem = &restart;
- resolution.FirstItem = &interlace;
- color.FirstItem = &blend;
- zoom.FirstItem = &select;
-
- restart.NextItem = &skew;
- skew.NextItem = &quit;
- quit.NextItem = NULL;
- interlace.NextItem = &smooth;
- smooth.NextItem = NULL;
- blend.NextItem = &random;
- random.NextItem = &cycle;
- cycle.NextItem = &next;
- next.NextItem = NULL;
- select.NextItem = NULL;
-
- restart.LeftEdge = 0;
- restart.TopEdge = 0;
- restart.Width = 120;
- restart.Height = 9;
- skew.LeftEdge = 0;
- skew.TopEdge = 9;
- skew.Width = 120;
- skew.Height = 9;
- quit.LeftEdge = 0;
- quit.TopEdge = 18;
- quit.Width = 120;
- quit.Height = 9;
-
- interlace.LeftEdge = 0;
- interlace.TopEdge = 0;
- interlace.Width = 120;
- interlace.Height = 9;
- smooth.LeftEdge = 0;
- smooth.TopEdge = 9;
- smooth.Width = 120;
- smooth.Height = 9;
-
- blend.LeftEdge = 0;
- blend.TopEdge = 0;
- blend.Width = 140;
- blend.Height = 9;
-
- random.LeftEdge = 0;
- random.TopEdge = 9;
- random.Width = 140;
- random.Height = 9;
-
- cycle.LeftEdge = 0;
- cycle.TopEdge = 18;
- cycle.Width = 140;
- cycle.Height = 9;
-
- next.LeftEdge = 0;
- next.TopEdge = 27;
- next.Width = 140;
- next.Height = 9;
-
- select.LeftEdge = 0;
- select.TopEdge = 0;
- select.Width = 120;
- select.Height = 9;
-
- default_flags = ITEMTEXT | COMMSEQ | ITEMENABLED | HIGHCOMP;
-
- if ( kflag == 1 )
- skew.Flags = default_flags | CHECKIT | CHECKED ;
- else
- skew.Flags = default_flags | CHECKIT ;
-
- if ( ilace == 1 )
- interlace.Flags = default_flags | CHECKIT | CHECKED ;
- else
- interlace.Flags = default_flags | CHECKIT ;
-
- if ( smooth_flag == 1 )
- smooth.Flags = default_flags | CHECKIT | CHECKED ;
- else
- smooth.Flags = default_flags | CHECKIT ;
-
- restart.Flags = default_flags ;
- quit.Flags = default_flags ;
- blend.Flags = default_flags | CHECKIT | CHECKED;
- random.Flags = default_flags | CHECKIT ;
- cycle.Flags = default_flags | CHECKIT | CHECKED;
- next.Flags = default_flags ;
- select.Flags = default_flags ;
-
- blend.MutualExclude = 0x0002;
- random.MutualExclude = 0x0001;
- cycle.MutualExclude = 0x0000; /* no exclusion; can be used with 1 or 2 */
-
- restart.ItemFill = (APTR) &restart_text;
- skew.ItemFill = (APTR) &skew_text;
- quit.ItemFill = (APTR) &quit_text;
- interlace.ItemFill = (APTR) &interlace_text;
- smooth.ItemFill = (APTR) &smooth_text;
- blend.ItemFill = (APTR) &blend_text;
- random.ItemFill = (APTR) &random_text;
- cycle.ItemFill = (APTR) &cycle_text;
- next.ItemFill = (APTR) &next_text;
- select.ItemFill = (APTR) &select_text;
-
- restart_text.IText = " restart\0";
- skew_text.IText = " skew\0";
- quit_text.IText = " quit\0";
- interlace_text.IText = " ilace\0";
- smooth_text.IText = " smooth\0";
- blend_text.IText = " blend\0";
- random_text.IText = " random\0";
- cycle_text.IText = " cycle\0";
- next_text.IText = " next\0";
- select_text.IText = "select\0";
-
- restart.Command = 's';
- skew.Command = 'k';
- quit.Command = 'q';
- interlace.Command = 'i';
- smooth.Command = 'm';
- blend.Command = 'b';
- random.Command = 'r';
- cycle.Command = 'c';
- next.Command = 'n';
- select.Command = 'z';
-
- }
-