Subversion Repositories tpanel

Rev

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

Rev 89 Rev 107
Line 67... Line 67...
67
            int top{0};
67
            int top{0};
68
            int width{0};
68
            int width{0};
69
            int height{0};
69
            int height{0};
70
            QPropertyAnimation *animation{nullptr};
70
            QPropertyAnimation *animation{nullptr};
71
            ANIMATION_t animate;
71
            ANIMATION_t animate;
-
 
72
            bool aniDirection{false};
72
            WId wid{0};                     // Used to identify a QTextEdit or QLineEdit
73
            WId wid{0};                     // Used to identify a QTextEdit or QLineEdit
73
            bool remove{false};
74
            std::atomic<bool> remove{false};// Object is marked for remove. Used with animation.
74
            OBJECT_t *next{nullptr};
75
            OBJECT_t *next{nullptr};
75
        }OBJECT_t;
76
        }OBJECT_t;
76
 
77
 
77
        TObject();
78
        TObject();
78
        ~TObject();
79
        ~TObject();
Line 83... Line 84...
83
        OBJECT_t *findObject(WId id);
84
        OBJECT_t *findObject(WId id);
84
        OBJECT_t *findFirstChild(ulong handle);
85
        OBJECT_t *findFirstChild(ulong handle);
85
        OBJECT_t *findNextChild(ulong handle);
86
        OBJECT_t *findNextChild(ulong handle);
86
        OBJECT_t *getMarkedRemove();
87
        OBJECT_t *getMarkedRemove();
87
        OBJECT_t *getNextMarkedRemove(OBJECT_t *obj);
88
        OBJECT_t *getNextMarkedRemove(OBJECT_t *obj);
-
 
89
        void cleanMarked();
88
        void removeAllChilds(ulong handle);
90
        void removeAllChilds(ulong handle);
89
        void removeObject(ulong handle);
91
        void removeObject(ulong handle);
90
 
92
 
91
        static std::string handleToString(ulong handle)
93
        static std::string handleToString(ulong handle)
92
        {
94
        {
Line 94... Line 96...
94
            ulong part2 = handle & 0x0000ffff;
96
            ulong part2 = handle & 0x0000ffff;
95
            return std::to_string(part1)+":"+std::to_string(part2);
97
            return std::to_string(part1)+":"+std::to_string(part2);
96
        }
98
        }
97
 
99
 
98
        static std::string objectToString(OBJECT_TYPE o);
100
        static std::string objectToString(OBJECT_TYPE o);
99
 
-
 
100
    protected:
-
 
101
        void dropContent(OBJECT_t *obj);
101
        void dropContent(OBJECT_t *obj);
102
 
102
 
103
    private:
103
    private:
104
        OBJECT_t *mObject{nullptr};
104
        OBJECT_t *mObject{nullptr};
105
};
105
};