Subversion Repositories tpanel

Rev

Rev 108 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 108 Rev 110
Line 80... Line 80...
80
        int states{0};              // Maximum number of states
80
        int states{0};              // Maximum number of states
81
        int ll{0};                  // Level low range
81
        int ll{0};                  // Level low range
82
        int lh{0};                  // Level high range
82
        int lh{0};                  // Level high range
83
    }SYSBUTTONS_t;
83
    }SYSBUTTONS_t;
84
 
84
 
-
 
85
    typedef struct SYSTEF_t         // Text effect names
-
 
86
    {
-
 
87
        int idx{0};
-
 
88
        std::string name;
-
 
89
    }SYSTEF_t;
-
 
90
 
85
    typedef enum TEXT_ORIENTATION
91
    typedef enum TEXT_ORIENTATION
86
    {
92
    {
87
        ORI_ABSOLUT,
93
        ORI_ABSOLUT,
88
        ORI_TOP_LEFT,
94
        ORI_TOP_LEFT,
89
        ORI_TOP_MIDDLE,
95
        ORI_TOP_MIDDLE,
Line 369... Line 375...
369
            int getAddressChannel() { return ad; }
375
            int getAddressChannel() { return ad; }
370
            int getChannelNumber() { return ch; }
376
            int getChannelNumber() { return ch; }
371
            int getChannelPort() { return cp; }
377
            int getChannelPort() { return cp; }
372
            int getLevelPort() { return lp; }
378
            int getLevelPort() { return lp; }
373
            int getLevelValue() { return lv; }
379
            int getLevelValue() { return lv; }
374
            std::string& getText(int inst=0) { return sr[inst].te; }
380
            std::string getText(int inst=0);
375
            std::string& getTextColor(int inst=0) { return sr[inst].ct; }
381
            std::string getTextColor(int inst=0);
376
            std::string& getTextEffectColor(int inst=0) { return sr[inst].ec; }
382
            std::string getTextEffectColor(int inst=0);
377
            void setTextEffectColor(const std::string& ec, int inst=-1);
383
            void setTextEffectColor(const std::string& ec, int inst=-1);
378
            int getTextEffect(int inst=0) {return sr[inst].et; }
384
            int getTextEffect(int inst=0);
379
            void setTextEffect(int et, int inst=0) { sr[inst].et = et; }
385
            void setTextEffect(int et, int inst=-1);
-
 
386
            std::string getTextEffectName(int inst=0);
-
 
387
            void setTextEffectName(const std::string& name, int inst=-1);
380
            std::string& getFillColor(int inst=0) { return sr[inst].cf; }
388
            std::string getFillColor(int inst=0);
381
            std::string& getBitmapName(int inst=0) { return sr[inst].bm; }
389
            std::string getBitmapName(int inst=0);
382
            bool isSingleLine() { return ( dt.compare("multiple") != 0); }
390
            bool isSingleLine() { return ( dt.compare("multiple") != 0); }
383
            bool isMultiLine() { return ( dt.compare("multiple") == 0); }
391
            bool isMultiLine() { return ( dt.compare("multiple") == 0); }
384
            int getTextMaxChars() { return mt; }
392
            int getTextMaxChars() { return mt; }
385
            bool getTextWordWrap(int inst=0) { return (sr[inst].ww == 1); }
393
            void setTextMaxChars(int m) { mt = m; }
386
            void setTextWordWrap(bool ww, int inst=0) { sr[inst].ww = (ww ? 1 : 0); }
394
            bool getTextWordWrap(int inst=0);
387
            int getFontIndex(int inst=0) { return sr[inst].fi; }
395
            bool setTextWordWrap(bool ww, int inst=-1);
388
            void setFontIndex(int fi, int inst=0) { sr[inst].fi = fi; }
396
            int getFontIndex(int inst=0);
389
            int getIconIndex(int inst=0) { return sr[inst].ii; }
397
            bool setFontIndex(int fi, int inst=-1);
390
            void setIconIndex(int ii, int inst=0) { sr[inst].ii = ii; }
398
            int getIconIndex(int inst=0);
391
            std::string& getSound(int inst=0) { return sr[inst].sd; }
399
            std::string getSound(int inst=0);
392
            void setSound(std::string& sd, int inst=0) { sr[inst].sd = sd; }
400
            void setSound(const std::string& sd, int inst=-1);
393
            int getDynamic(int inst=0) { return sr[inst].dynamic; }
401
            bool getDynamic(int inst=0);
394
            void setDynamic(int d, int inst=-1);
402
            void setDynamic(int d, int inst=-1);
395
            int getNumberInstances() { return (int)sr.size(); }
403
            int getNumberInstances() { return (int)sr.size(); }
396
            int getActiveInstance() { return mActInstance; }
404
            int getActiveInstance() { return mActInstance; }
397
            ulong getHandle() { return mHandle; }
405
            ulong getHandle() { return mHandle; }
398
            ulong getParent() { return (mHandle & 0xffff0000); }
406
            ulong getParent() { return (mHandle & 0xffff0000); }
Line 441... Line 449...
441
             * @param instance  The instance where to put the new bitmap. If
449
             * @param instance  The instance where to put the new bitmap. If
442
             *                  this is 0, the bitmap is set on all instances.
450
             *                  this is 0, the bitmap is set on all instances.
443
             * @return TRUE if no errors occures, otherwise FALSE.
451
             * @return TRUE if no errors occures, otherwise FALSE.
444
             */
452
             */
445
            bool setOpacity(int op, int instance);
453
            bool setOpacity(int op, int instance);
446
            int getOpacity(int inst=0) { return sr[inst-1].oo; }
454
            int getOpacity(int inst=0);
447
            bool setWorWrap(bool state, int instance);
-
 
448
            bool setFont(int id, int instance);
455
            bool setFont(int id, int instance);
449
            void setTop(int top);
456
            void setTop(int top);
450
            void setLeft(int left);
457
            void setLeft(int left);
451
            void setLeftTop(int left, int top);
458
            void setLeftTop(int left, int top);
452
            void setResourceName(const std::string& name, int instance);
459
            void setResourceName(const std::string& name, int instance);