Ignore:
Timestamp:
05/29/18 16:32:45 (6 years ago)
Author:
Maciej Komosinski
Message:

Code formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/param/mutparamlist.h

    r286 r792  
    1212struct ParamInfo;
    1313
    14 class MutableParamList: public virtual ParamInterface, public MutableParamInterface
     14class MutableParamList : public virtual ParamInterface, public MutableParamInterface
    1515{
    16 SList list;
    17 const char *objname;
    18 int getSubParam(int i,ParamInterface **sub_p,int *sub_i);
    19 int getSubGroup(int i,ParamInterface **sub_p,int *sub_i);
     16        SList list;
     17        const char *objname;
     18        int getSubParam(int i, ParamInterface **sub_p, int *sub_i);
     19        int getSubGroup(int i, ParamInterface **sub_p, int *sub_i);
    2020
    21 ParamInfo* getParamInfo(int i);
    22 void addPI(int pos,ParamInfo *pi);
    23 int findPI(ParamInfo *pi);
    24 int findPI(ParamInterface *p);
    25 int findPI(MutableParamInterface *p);
    26 void adjustPI(int firstPI,int addprop,int addgroup);
    27 void removePI(int pi_index);
     21        ParamInfo* getParamInfo(int i);
     22        void addPI(int pos, ParamInfo *pi);
     23        int findPI(ParamInfo *pi);
     24        int findPI(ParamInterface *p);
     25        int findPI(MutableParamInterface *p);
     26        void adjustPI(int firstPI, int addprop, int addgroup);
     27        void removePI(int pi_index);
    2828
    2929#define STATRICKCLASS MutableParamList
    30 STCALLBACKDEF(onPropAdd);
    31 STCALLBACKDEF(onPropDelete);
    32 STCALLBACKDEF(onGroupAdd);
    33 STCALLBACKDEF(onGroupDelete);
    34 STCALLBACKDEF(onPropChange);
    35 STCALLBACKDEF(onGroupChange);
    36 STCALLBACKDEF(onPropActivate);
     30        STCALLBACKDEF(onPropAdd);
     31        STCALLBACKDEF(onPropDelete);
     32        STCALLBACKDEF(onGroupAdd);
     33        STCALLBACKDEF(onGroupDelete);
     34        STCALLBACKDEF(onPropChange);
     35        STCALLBACKDEF(onGroupChange);
     36        STCALLBACKDEF(onPropActivate);
    3737#undef STATRICKCLASS
    3838
    3939public:
    4040
    41 void firePropChange(int i) {onchange.action(i);}
    42 void fireGroupChange(int i) {ongroupchange.action(i);}
     41        void firePropChange(int i) { onchange.action(i); }
     42        void fireGroupChange(int i) { ongroupchange.action(i); }
    4343
    44 MutableParamList(const char* n=0,const char* d=0):objname(n),description(d) {}
    45 ~MutableParamList();
     44        MutableParamList(const char* n = 0, const char* d = 0) :objname(n), description(d) {}
     45        ~MutableParamList();
    4646
    47 void operator+=(ParamInterface *p);
    48 void operator-=(ParamInterface *p);
    49 void operator+=(MutableParamInterface *p);
    50 void operator-=(MutableParamInterface *p);
    51 void insert(int i,ParamInterface *p);
    52 void insert(int i,MutableParamInterface *p);
    53 void operator-=(int i);
     47        void operator+=(ParamInterface *p);
     48        void operator-=(ParamInterface *p);
     49        void operator+=(MutableParamInterface *p);
     50        void operator-=(MutableParamInterface *p);
     51        void insert(int i, ParamInterface *p);
     52        void insert(int i, MutableParamInterface *p);
     53        void operator-=(int i);
    5454
    55 /** remove all sub params */
    56 void clear();
     55        /** remove all sub params */
     56        void clear();
    5757
    58 const char* getName() {return objname;}
    59 const char* description;
    60 const char* getDescription() {return description;}
     58        const char* getName() { return objname; }
     59        const char* description;
     60        const char* getDescription() { return description; }
    6161
    62 int getGroupCount();
    63 int getPropCount();
     62        int getGroupCount();
     63        int getPropCount();
    6464
    65 const char *id(int i);
    66 const char *name(int i);
    67 const char *type(int i);
    68 const char *help(int i);
    69 int flags(int i);
    70 int group(int i);
    71 void call(int i,ExtValue* args,ExtValue *ret);
    72 const char *grname(int i);
     65        const char *id(int i);
     66        const char *name(int i);
     67        const char *type(int i);
     68        const char *help(int i);
     69        int flags(int i);
     70        int group(int i);
     71        void call(int i, ExtValue* args, ExtValue *ret);
     72        const char *grname(int i);
    7373
    74 int grmember(int gi,int n);
     74        int grmember(int gi, int n);
    7575
    76 SString getString(int);
    77 paInt getInt(int);
    78 double getDouble(int);
    79 ExtValue getExtValue(int);
    80 ExtObject getObject(int);
     76        SString getString(int);
     77        paInt getInt(int);
     78        double getDouble(int);
     79        ExtValue getExtValue(int);
     80        ExtObject getObject(int);
    8181
    82 int setInt(int,paInt);
    83 int setDouble(int,double);
    84 int setString(int,const SString &);
    85 int setObject(int,const ExtObject&);
    86 int setExtValue(int,const ExtValue&);
     82        int setInt(int, paInt);
     83        int setDouble(int, double);
     84        int setString(int, const SString &);
     85        int setObject(int, const ExtObject&);
     86        int setExtValue(int, const ExtValue&);
    8787};
    8888
    8989#endif
    90 
    91 
    92 
    93 
    94 
    95 
    96 
    97 
Note: See TracChangeset for help on using the changeset viewer.