home *** CD-ROM | disk | FTP | other *** search
/ Geek 6 / Geek-006.iso / linux / video / xmovie-1.5.3.tar.gz / xmovie-1.5.3.tar / xmovie-1.5.3 / guicast / bcresources.h < prev    next >
C/C++ Source or Header  |  2000-11-29  |  3KB  |  153 lines

  1. #ifndef BCRESOURCES_H
  2. #define BCRESOURCES_H
  3.  
  4. #include "bcresources.inc"
  5. #include "bcwindowbase.inc"
  6. #include "vframe.inc"
  7.  
  8. #include <X11/Xlib.h>
  9.  
  10. typedef struct
  11. {
  12.     char *suffix;
  13.     int icon_type;
  14. } suffix_to_type_t;
  15.  
  16. class BC_Resources
  17. {
  18. public:
  19.     BC_Resources(); // The window parameter is used to get the display information initially
  20.     ~BC_Resources();
  21.  
  22.     int initialize_display(BC_WindowBase *window);
  23.  
  24.     int get_bg_color();          // window backgrounds
  25.     int get_bg_shadow1();        // border for windows
  26.     int get_bg_shadow2();
  27.     int get_bg_light1();
  28.     int get_bg_light2();
  29.  
  30. // These values should be changed before the first window is created.
  31. // colors
  32.     int bg_color;          // window backgrounds
  33.     int bg_shadow1;        // border for windows
  34.     int bg_shadow2;
  35.     int bg_light1;
  36.     int bg_light2;
  37.  
  38.  
  39. // beveled box colors
  40.     int button_light;      
  41.     int button_highlighted;
  42.     int button_down;       
  43.     int button_up;         
  44.     int button_shadow;     
  45.  
  46. // highlighting
  47.     int highlight_inverse;
  48.     int text_highlight;
  49.  
  50. // for menus
  51.     int menu_light;
  52.     int menu_highlighted;
  53.     int menu_down;
  54.     int menu_up;
  55.     int menu_shadow;
  56.  
  57. // ms for double click
  58.     long double_click;
  59. // ms for cursor flash
  60.     int blink_rate;
  61. // ms for scroll repeats
  62.     int scroll_repeat;
  63. // ms before tooltip
  64.     int tooltip_delay;
  65.     int tooltip_bg_color;
  66.     int tooltips_enabled;
  67.  
  68.     int text_default;      // default color of text
  69.     int text_background;   // background color of textboxes and list boxes
  70.  
  71. // Background images
  72.     static VFrame *bg_image;
  73.     static VFrame *menu_bg;
  74.  
  75. // Buttons
  76.     VFrame **ok_images;
  77.     VFrame **cancel_images;
  78.     VFrame **filebox_text_images;
  79.     VFrame **filebox_icons_images;
  80.     VFrame **filebox_updir_images;
  81.     VFrame **filebox_newfolder_images;
  82.     VFrame **generic_button_images;
  83.  
  84. // Toggles
  85.     VFrame **checkbox_images;
  86.     VFrame **radial_images;
  87.     VFrame **label_images;
  88.  
  89.     VFrame **tumble_data;
  90.     int tumble_duration;
  91.  
  92. // Listbox
  93.     VFrame *listbox_bg;
  94.     VFrame **listbox_button;
  95.  
  96. // Sliders
  97.     VFrame **horizontal_slider;
  98.     VFrame **vertical_slider;
  99.  
  100. // Pans
  101.     VFrame *pan_bg;
  102.     VFrame *pan_bg_hi;
  103.     VFrame *pan_stick;
  104.     VFrame *pan_channel;
  105.  
  106. // Pots
  107.     VFrame **pot_images;
  108.     int pot_x1, pot_y1, pot_r;
  109.  
  110. // Meters
  111.     VFrame **meter_images;
  112.  
  113. // Progress bar
  114.     VFrame **progress_images;
  115.  
  116. // Motion required to start a drag
  117.     int drag_radius;
  118.  
  119. // Filebox
  120.     static suffix_to_type_t suffix_to_type[TOTAL_SUFFIXES];
  121.     static VFrame *type_to_icon[TOTAL_ICONS];
  122. // Display mode for fileboxes
  123.     int filebox_mode;
  124. // Filter currently used in filebox
  125.     char filebox_filter[BCTEXTLEN];
  126.     int filebox_w;
  127.     int filebox_h;
  128.  
  129. // fonts
  130.     static char *large_font;
  131.     static char *medium_font;
  132.     static char *small_font;
  133.     static char *large_fontset;
  134.     static char *medium_fontset;
  135.     static char *small_fontset;
  136.     VFrame **medium_7segment;
  137.     int use_fontset;
  138.  
  139. // Available display extensions
  140.     int use_shm;
  141.     static int error;
  142. // If the program uses recursive_resizing
  143.     int recursive_resizing;
  144.  
  145. private:
  146. // Test for availability of shared memory pixmaps
  147.     int init_shm(BC_WindowBase *window);
  148.     static int x_error_handler(Display *display, XErrorEvent *event);
  149. };
  150.  
  151.  
  152. #endif
  153.