Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

AmigaGUI.c File Reference

#include <exec/types.h>
#include <intuition/intuition.h>
#include <intuition/classes.h>
#include <intuition/classusr.h>
#include <intuition/imageclass.h>
#include <intuition/gadgetclass.h>
#include <libraries/gadtools.h>
#include <graphics/displayinfo.h>
#include <graphics/gfxbase.h>
#include <clib/exec_protos.h>
#include <clib/intuition_protos.h>
#include <clib/gadtools_protos.h>
#include <clib/graphics_protos.h>
#include <clib/utility_protos.h>
#include <string.h>
#include "AmigaGUI.h"

Include dependency graph for AmigaGUI.c:

Include dependency graph

Go to the source code of this file.

Defines

#define Prefs_TNUM   1

Functions

UWORD ComputeX (UWORD value)
UWORD ComputeY (UWORD value)
void ComputeFont (UWORD width, UWORD height)
int SetupScreen (void)
void CloseDownScreen (void)
void PrefsRender (void)
int HandlePrefsIDCMP (void)
int OpenPrefsWindow (void)
void ClosePrefsWindow (void)

Variables

Screen * Scr = NULL
UBYTE * PubScreenName = NULL
APTR VisualInfo = NULL
WindowPrefsWnd = NULL
Gadget * PrefsGList = NULL
Menu * PrefsMenus = NULL
IntuiMessage PrefsMsg
UWORD PrefsZoom [4]
Gadget * PrefsGadgets [31]
UWORD PrefsLeft = 0
UWORD PrefsTop = 16
UWORD PrefsWidth = 561
UWORD PrefsHeight = 238
UBYTE * PrefsWdt = (UBYTE *)"Frodo Preferences"
TextAttr * Font
TextAttr Attr
UWORD FontX
UWORD FontY
UWORD OffX
UWORD OffY
UBYTE * SIDType0Labels []
UBYTE * REUSize0Labels []
UBYTE * DriveType80Labels []
UBYTE * DriveType90Labels []
UBYTE * DriveType100Labels []
UBYTE * DriveType110Labels []
IntuiText PrefsIText []
NewMenu PrefsNewMenu []
UWORD PrefsGTypes []
NewGadget PrefsNGad []
ULONG PrefsGTags []


Define Documentation

#define Prefs_TNUM   1
 

Definition at line 83 of file AmigaGUI.c.

Referenced by PrefsRender().


Function Documentation

void CloseDownScreen void   ) 
 

Definition at line 244 of file AmigaGUI.c.

References Scr, and VisualInfo.

Referenced by Prefs::ShowEditor().

void ClosePrefsWindow void   ) 
 

Definition at line 390 of file AmigaGUI.c.

References PrefsGList, PrefsMenus, and PrefsWnd.

Referenced by Prefs::ShowEditor().

void ComputeFont UWORD  width,
UWORD  height
[static]
 

Definition at line 208 of file AmigaGUI.c.

References Attr, ComputeX(), ComputeY(), Font, FontX, FontY, OffX, OffY, and Scr.

Referenced by OpenPrefsWindow(), PrefsRender(), and SetupScreen().

UWORD ComputeX UWORD  value  )  [static]
 

Definition at line 198 of file AmigaGUI.c.

References FontX.

Referenced by ComputeFont(), OpenPrefsWindow(), and PrefsRender().

UWORD ComputeY UWORD  value  )  [static]
 

Definition at line 203 of file AmigaGUI.c.

References FontY.

Referenced by ComputeFont(), OpenPrefsWindow(), and PrefsRender().

int HandlePrefsIDCMP void   ) 
 

Definition at line 274 of file AmigaGUI.c.

References BOOL, PrefsMenus, PrefsMsg, PrefsRender(), PrefsVanillaKey(), and PrefsWnd.

Referenced by Prefs::ShowEditor().

int OpenPrefsWindow void   ) 
 

Definition at line 317 of file AmigaGUI.c.

References ComputeFont(), ComputeX(), ComputeY(), Font, OffX, OffY, Prefs_CNT, PrefsGadgets, PrefsGList, PrefsGTags, PrefsGTypes, PrefsHeight, PrefsLeft, PrefsMenus, PrefsNewMenu, PrefsNGad, PrefsRender(), PrefsTop, PrefsWdt, PrefsWidth, PrefsWnd, PrefsZoom, Scr, strlen, and VisualInfo.

Referenced by Prefs::ShowEditor().

void PrefsRender void   ) 
 

Definition at line 257 of file AmigaGUI.c.

References ComputeFont(), ComputeX(), ComputeY(), Font, OffX, OffY, Prefs_TNUM, PrefsHeight, PrefsIText, PrefsWidth, and PrefsWnd.

Referenced by HandlePrefsIDCMP(), and OpenPrefsWindow().

int SetupScreen void   ) 
 

Definition at line 231 of file AmigaGUI.c.

References ComputeFont(), PubScreenName, Scr, and VisualInfo.

Referenced by Prefs::ShowEditor().


Variable Documentation

struct TextAttr Attr
 

Definition at line 39 of file AmigaGUI.c.

Referenced by ComputeFont().

UBYTE* DriveType100Labels[]
 

Initial value:

 {
        (UBYTE *)"DIR",
        (UBYTE *)"D64",
        (UBYTE *)"T64",
        NULL }

Definition at line 68 of file AmigaGUI.c.

UBYTE* DriveType110Labels[]
 

Initial value:

 {
        (UBYTE *)"DIR",
        (UBYTE *)"D64",
        (UBYTE *)"T64",
        NULL }

Definition at line 74 of file AmigaGUI.c.

UBYTE* DriveType80Labels[]
 

Initial value:

 {
        (UBYTE *)"DIR",
        (UBYTE *)"D64",
        (UBYTE *)"T64",
        NULL }

Definition at line 56 of file AmigaGUI.c.

UBYTE* DriveType90Labels[]
 

Initial value:

 {
        (UBYTE *)"DIR",
        (UBYTE *)"D64",
        (UBYTE *)"T64",
        NULL }

Definition at line 62 of file AmigaGUI.c.

struct TextAttr* Font
 

Definition at line 39 of file AmigaGUI.c.

Referenced by ComputeFont(), OpenPrefsWindow(), and PrefsRender().

UWORD FontX
 

Definition at line 40 of file AmigaGUI.c.

Referenced by ComputeFont(), and ComputeX().

UWORD FontY
 

Definition at line 40 of file AmigaGUI.c.

Referenced by ComputeFont(), and ComputeY().

UWORD OffX
 

Definition at line 41 of file AmigaGUI.c.

Referenced by ComputeFont(), OpenPrefsWindow(), and PrefsRender().

UWORD OffY
 

Definition at line 41 of file AmigaGUI.c.

Referenced by ComputeFont(), OpenPrefsWindow(), and PrefsRender().

struct Gadget* PrefsGadgets[31]
 

Definition at line 33 of file AmigaGUI.c.

Referenced by get_values(), ghost_gadgets(), OpenPrefsWindow(), and set_values().

struct Gadget* PrefsGList = NULL
 

Definition at line 29 of file AmigaGUI.c.

Referenced by ClosePrefsWindow(), and OpenPrefsWindow().

ULONG PrefsGTags[]
 

Definition at line 164 of file AmigaGUI.c.

Referenced by OpenPrefsWindow().

UWORD PrefsGTypes[]
 

Definition at line 96 of file AmigaGUI.c.

Referenced by OpenPrefsWindow().

UWORD PrefsHeight = 238
 

Definition at line 37 of file AmigaGUI.c.

Referenced by OpenPrefsWindow(), and PrefsRender().

struct IntuiText PrefsIText[]
 

Initial value:

 {
        2, 0, JAM1,34, 115, NULL, (UBYTE *)"Drive", NULL }

Definition at line 80 of file AmigaGUI.c.

Referenced by PrefsRender().

UWORD PrefsLeft = 0
 

Definition at line 34 of file AmigaGUI.c.

Referenced by OpenPrefsWindow().

struct Menu* PrefsMenus = NULL
 

Definition at line 30 of file AmigaGUI.c.

Referenced by ClosePrefsWindow(), HandlePrefsIDCMP(), and OpenPrefsWindow().

struct IntuiMessage PrefsMsg
 

Definition at line 31 of file AmigaGUI.c.

Referenced by DriveType10Clicked(), DriveType11Clicked(), DriveType8Clicked(), DriveType9Clicked(), HandlePrefsIDCMP(), PrefsVanillaKey(), REUSizeClicked(), and SIDTypeClicked().

struct NewMenu PrefsNewMenu[]
 

Initial value:

 {
        NM_TITLE, (STRPTR)"Preferences", NULL, 0, NULL, NULL,
        NM_ITEM, (STRPTR)"Open...", (STRPTR)"O", 0, 0L, (APTR)PrefsOpen,
        NM_ITEM, (STRPTR)"Save", (STRPTR)"S", 0, 0L, (APTR)PrefsSave,
        NM_ITEM, (STRPTR)"Save As...", (STRPTR)"A", 0, 0L, (APTR)PrefsSaveAs,
        NM_ITEM, (STRPTR)"Revert", (STRPTR)"R", 0, 0L, (APTR)PrefsRevert,
        NM_ITEM, (STRPTR)NM_BARLABEL, NULL, 0, 0L, NULL,
        NM_ITEM, (STRPTR)"OK", NULL, 0, 0L, (APTR)PrefsOK,
        NM_ITEM, (STRPTR)"Cancel", NULL, 0, 0L, (APTR)PrefsCancel,
        NM_END, NULL, NULL, 0, 0L, NULL }

Definition at line 85 of file AmigaGUI.c.

Referenced by OpenPrefsWindow().

struct NewGadget PrefsNGad[]
 

Definition at line 130 of file AmigaGUI.c.

Referenced by OpenPrefsWindow().

UWORD PrefsTop = 16
 

Definition at line 35 of file AmigaGUI.c.

Referenced by OpenPrefsWindow().

UBYTE* PrefsWdt = (UBYTE *)"Frodo Preferences"
 

Definition at line 38 of file AmigaGUI.c.

Referenced by OpenPrefsWindow().

UWORD PrefsWidth = 561
 

Definition at line 36 of file AmigaGUI.c.

Referenced by OpenPrefsWindow(), and PrefsRender().

struct Window* PrefsWnd = NULL
 

Definition at line 28 of file AmigaGUI.c.

Referenced by ClosePrefsWindow(), ghost_gadgets(), HandlePrefsIDCMP(), OpenPrefsWindow(), PrefsRender(), set_values(), and Prefs::ShowEditor().

UWORD PrefsZoom[4]
 

Definition at line 32 of file AmigaGUI.c.

Referenced by OpenPrefsWindow().

UBYTE* PubScreenName = NULL
 

Definition at line 26 of file AmigaGUI.c.

Referenced by SetupScreen().

UBYTE* REUSize0Labels[]
 

Initial value:

 {
        (UBYTE *)"None",
        (UBYTE *)"128K",
        (UBYTE *)"256K",
        (UBYTE *)"512K",
        NULL }

Definition at line 49 of file AmigaGUI.c.

struct Screen* Scr = NULL
 

Definition at line 25 of file AmigaGUI.c.

Referenced by CloseDownScreen(), ComputeFont(), OpenPrefsWindow(), and SetupScreen().

UBYTE* SIDType0Labels[]
 

Initial value:

 {
        (UBYTE *)"None",
        (UBYTE *)"Digital (AHI)",
        (UBYTE *)"SID Card",
        NULL }

Definition at line 43 of file AmigaGUI.c.

APTR VisualInfo = NULL
 

Definition at line 27 of file AmigaGUI.c.

Referenced by CloseDownScreen(), OpenPrefsWindow(), and SetupScreen().


Generated on Tue Feb 8 04:08:40 2005 for E32frodo by doxygen 1.3.3