~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/blender/makesdna/DNA_screen_types.h

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-02-19 11:24:23 UTC
  • mfrom: (14.2.23 sid)
  • Revision ID: package-import@ubuntu.com-20140219112423-rkmaz2m7ha06d4tk
Tags: 2.69-3ubuntu1
* Merge with Debian; remaining changes:
  - Configure without OpenImageIO on armhf, as it is not available on
    Ubuntu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
        void *activedata;                       /* runtime for panel manipulation */
113
113
} Panel;
114
114
 
115
 
typedef struct uiList {                         /* some list UI data need to be saved in file */
 
115
/* uiList dynamic data... */
 
116
/* These two Lines with # tell makesdna this struct can be excluded. */
 
117
#
 
118
#
 
119
typedef struct uiListDyn {
 
120
        int height;                   /* Number of rows needed to draw all elements. */
 
121
        int visual_height;            /* Actual visual height of the list (in rows). */
 
122
        int visual_height_min;        /* Minimal visual height of the list (in rows). */
 
123
 
 
124
        int items_len;                /* Number of items in collection. */
 
125
        int items_shown;              /* Number of items actually visible after filtering. */
 
126
 
 
127
        /* Filtering data. */
 
128
        int *items_filter_flags;      /* items_len length. */
 
129
        int *items_filter_neworder;   /* org_idx -> new_idx, items_len length. */
 
130
} uiListDyn;
 
131
 
 
132
typedef struct uiList {           /* some list UI data need to be saved in file */
116
133
        struct uiList *next, *prev;
117
134
 
118
 
        struct uiListType *type;                /* runtime */
119
 
        void *padp;
120
 
 
121
 
        char list_id[64];                               /* defined as UI_MAX_NAME_STR */
122
 
 
123
 
        int layout_type;                                /* How items are layedout in the list */
124
 
        int padi;
 
135
        struct uiListType *type;      /* runtime */
 
136
 
 
137
        char list_id[64];             /* defined as UI_MAX_NAME_STR */
 
138
 
 
139
        int layout_type;              /* How items are layedout in the list */
 
140
        int flag;
125
141
 
126
142
        int list_scroll;
127
 
        int list_size;
 
143
        int list_grip;
128
144
        int list_last_len;
129
 
        int list_grip_size;
130
 
/*      char list_search[64]; */
 
145
        int padi1;
 
146
 
 
147
        /* Filtering data. */
 
148
        char filter_byname[64];       /* defined as UI_MAX_NAME_STR */
 
149
        int filter_flag;
 
150
        int filter_sort_flag;
 
151
 
 
152
        /* Custom sub-classes properties. */
 
153
        IDProperty *properties;
 
154
 
 
155
        /* Dynamic data (runtime). */
 
156
        uiListDyn *dyn_data;
131
157
} uiList;
132
158
 
133
159
typedef struct ScrArea {
232
258
#define PNL_DEFAULT_CLOSED              1
233
259
#define PNL_NO_HEADER                   2
234
260
 
235
 
/* uilist layout_type */
 
261
/* uiList layout_type */
236
262
enum {
237
263
        UILST_LAYOUT_DEFAULT          = 0,
238
264
        UILST_LAYOUT_COMPACT          = 1,
239
265
        UILST_LAYOUT_GRID             = 2,
240
266
};
241
267
 
 
268
/* uiList flag */
 
269
enum {
 
270
        UILST_SCROLL_TO_ACTIVE_ITEM   = 1 << 0,          /* Scroll list to make active item visible. */
 
271
        UILST_RESIZING                = 1 << 1,          /* We are currently resizing, deactivate autosize! */
 
272
};
 
273
 
 
274
/* uiList filter flags (dyn_data) */
 
275
enum {
 
276
        UILST_FLT_ITEM      = 1 << 31,  /* This item has passed the filter process successfully. */
 
277
};
 
278
 
 
279
/* uiList filter options */
 
280
enum {
 
281
        UILST_FLT_SHOW      = 1 << 0,          /* Show filtering UI. */
 
282
        UILST_FLT_EXCLUDE   = UILST_FLT_ITEM,  /* Exclude filtered items, *must* use this same value. */
 
283
};
 
284
 
 
285
/* uiList filter orderby type */
 
286
enum {
 
287
        UILST_FLT_SORT_ALPHA         = 1 << 0,
 
288
        UILST_FLT_SORT_REVERSE      = 1 << 31  /* Special value, bitflag used to reverse order! */
 
289
};
 
290
 
 
291
#define UILST_FLT_SORT_MASK (((unsigned int)UILST_FLT_SORT_REVERSE) - 1)
 
292
 
242
293
/* regiontype, first two are the default set */
243
294
/* Do NOT change order, append on end. Types are hardcoded needed */
244
295
enum {