Main Page Class Hierarchy Compound List File List Compound Members File Members

# control.h

Go to the documentation of this file.

    00001
    00002
    00003 //
    00004 //      CONTROL.H                                       (c)     YoY'01                                          WEB: www.aestesis.org
    00005 //
    00008 #ifndef                                                 _CONTROL_H_
    00009 #define                                                 _CONTROL_H_
    00012 #include                                                "elektrodef.h"
    00015
    00016 //      If you use directly the variables in the class API, it's at your own risks. Prefer the methods...
    00017
    00020
    00021 #define                                                 guidCONTROL                                             (Acontrol::CI.guid)
    00022
    00025
    00027 class Acontrol : public Anode
    00028 {
    00029 public:
    00030
    00032 enum
    00033 {
    00034         NOTHING=0,
    00035         CONTROLER_01=1,
    00036         CONTROLER_02,
    00037         CONTROLER_03,
    00038         CONTROLER_04,
    00039         CONTROLER_05,
    00040         CONTROLER_06,
    00041         CONTROLER_07,
    00042         CONTROLER_08,
    00043         CONTROLER_09,
    00044         CONTROLER_10,
    00045         KEY_01=100,
    00046         KEY_02,
    00047         KEY_03,
    00048         KEY_04,
    00049         KEY_05,
    00050         KEY_06,
    00051         KEY_07,
    00052         KEY_08,
    00053         KEY_09,
    00054         KEY_10,
    00055         KEY_11,
    00056         KEY_12,
    00057         KEY_13,
    00058         KEY_14,
    00059         KEY_15,
    00060         KEY_16,
    00061         KEY_17,
    00062         KEY_18,
    00063         KEY_19,
    00064         KEY_20
    00065 };
    00066
    00067         ELIBOBJ
    00068
    00069         EDLL                                            Acontrol                                                (char *name, class Aeffect *ef, class Aobject *o, int type=NOTHING);
    00070         EDLL virtual                            ~Acontrol                                               ();
    00071
    00072         EDLL virtual bool                       notify                                                  (Anode *o, int event, dword p);
    00073
    00074         EDLL virtual bool                       set                                                             (int control, int value);
    00075
    00076         EDLL virtual bool                       sequence                                                (int control, int value);
    00077
    00078         class Aeffect                           *effect;
    00079         class Atable                            *table;
    00080         class Aobject                           *object;                                                // the object with control
    00081         int                                                     control;
    00082
    00083         int                                                     id;                                                             // todo: when save/load make give the sames ID*
    00084         class Atrack                            *track;
    00085 };
    00086
    00089
    00091 class Amapping : public Aobject
    00092 {
    00093 public:
    00094         ELIBOBJ
    00095
    00096                                                                 Amapping                                                (char *name, Aobject *father, Acontrol *control);
    00097                                                                 ~Amapping                                               ();
    00098
    00099         virtual void                            paint                                                   (Abitmap *b);
    00100         virtual bool                            notify                                                  (Anode *o, int event, dword p=0);
    00101         virtual bool                            mouse                                                   (int x, int y, int state, int event);
    00102
    00103         Acontrol                                        *control;
    00104         Abutton                                         *close;
    00105 };
    00106
    00109 #endif                                                  //_CONTROL_H_