delete asset_edit;
delete label_edit;
delete clip_edit;
+ delete effect_tip;
}
void AWindow::create_objects()
#include "pluginserver.h"
#include "preferences.h"
#include "renderfarmclient.h"
+#include "units.h"
#include "versioninfo.h"
#include <locale.h>
#include <stdlib.h>
#include <string.h>
-#if 0
+#ifdef LEAKER
#define STRC(v) printf("==new %p from %p sz %jd\n", v, __builtin_return_address(0), n)
#define STRD(v) printf("==del %p from %p\n", v, __builtin_return_address(0))
void *operator new(size_t n) { void *vp = malloc(n); STRC(vp); bzero(vp,n); return vp; }
batch_path[0] = 0;
deamon_path[0] = 0;
EDL::id_lock = new Mutex("EDL::id_lock");
+ Units::init();
File::init_cin_path();
const char *locale_path = File::get_locale_path();
filenames.remove_all_objects();
delete EDL::id_lock; EDL::id_lock = 0;
+ Units::finit();
return 0;
}
#endif
reset_caches();
dead_plugins->remove_all_objects();
+// must delete theme before destroying plugindb
+// theme destructor will be deleted by delete_plugins
+ delete theme; theme = 0;
delete_plugins();
finit_error();
keyframe_threads->remove_all_objects();
delete defaults; defaults = 0;
delete assets; assets = 0;
delete splash_window; splash_window = 0;
-// delete theme; theme = 0; // deleted by delete_plugins
if( !edl->Garbage::remove_user() ) edl = 0;
delete channeldb_buz;
delete channeldb_v4l2jpeg;
plugins.remove_all();
}
-void MWindow::init_plugin_tips(ArrayList<PluginServer*> &plugins)
+void MWindow::init_plugin_tips(ArrayList<PluginServer*> &plugins, const char *lang)
{
const char *cfg_path = File::get_cindat_path();
char msg_path[BCTEXTLEN]; int txt = 0;
FILE *fp = 0;
if( BC_Resources::language[0] ) {
snprintf(msg_path, sizeof(msg_path), "%s/info/plugins.%s",
- cfg_path, BC_Resources::language);
+ cfg_path, lang);
fp = fopen(msg_path, "r");
}
if( !fp ) {
if(debug) PRINT_TRACE
init_ladspa_plugins(this, preferences);
if(debug) PRINT_TRACE
- init_plugin_tips(*plugindb);
+ init_plugin_tips(*plugindb, cin_lang);
if(splash_window)
splash_window->operation->update(_("Initializing GUI"));
if(debug) PRINT_TRACE
static void get_plugin_path(char *path, const char *plug_dir, const char *fs_path);
static int init_plugins(MWindow *mwindow, Preferences *preferences);
static int init_ladspa_plugins(MWindow *mwindow, Preferences *preferences);
- static void init_plugin_tips(ArrayList<PluginServer*> &plugins);
+ static void init_plugin_tips(ArrayList<PluginServer*> &plugins, const char *lang);
static int check_plugin_index(ArrayList<PluginServer*> &plugins,
const char *plug_dir, const char *plug_path);
static void init_plugin_index(MWindow *mwindow, Preferences *preferences,
int resume = 0;
//printf("PlayTransport::handle_transport 1 %d\n", command);
int prev_command = engine->command->command;
- int prev_direction = engine->command->get_direction();
int prev_single_frame = engine->command->single_frame();
int prev_audio = engine->command->audio_toggle ?
!prev_single_frame : prev_single_frame;
delete input_lock;
delete start_lock;
delete output_lock;
+ delete render_active;
delete interrupt_lock;
delete first_frame_lock;
delete config;
widget_border = 5;
this->mwindow = 0;
theme_title = _(DEFAULT_THEME);
- data_buffer = 0;
- contents_buffer = 0;
last_image = 0;
mtransport_margin = 0;
toggle_margin = 0;
void Theme::flush_images()
{
- if(data_buffer) delete [] data_buffer;
- if(contents_buffer) delete [] contents_buffer;
- data_buffer = 0;
- contents_buffer = 0;
- contents.remove_all();
}
void Theme::initialize()
MWindow *mwindow;
// Compressed images are loaded in here.
char *data_buffer;
- char *contents_buffer;
- ArrayList<char*> contents;
- ArrayList<int> offsets;
char path[BCTEXTLEN];
char *last_image;
int last_offset;
static void get_top_coords(Display *display, Window win, int &px,int &py, int &tx,int &ty)
{
- Window *pcwin; unsigned int ncwin;
+ Window *pcwin = 0; unsigned int ncwin = 0;
Window cwin = 0, pwin = 0, root = 0;
- int nx=0, ny=0;
XQueryTree(display, win, &root, &pwin, &pcwin, &ncwin);
if( pcwin ) XFree(pcwin);
XTranslateCoordinates(display, pwin, root, 0,0, &px,&py, &cwin);
//printf(" win=%lx, px/py=%d/%d\n", win, px,py);
+ int nx = px, ny = py; pwin = win;
for( int i=5; --i>=0; ) {
- win = pwin;
+ win = pwin; root = 0; pwin = 0; pcwin = 0; ncwin = 0;
XQueryTree(display, win, &root, &pwin, &pcwin, &ncwin);
if( pcwin ) XFree(pcwin);
if( pwin == root ) break;
set_font(large_font_xft2, default_font_xft2);
set_font(big_font_xft2, default_font_xft2);
}
+void BC_Resources::finit_font_defs()
+{
+ delete [] small_font;
+ delete [] small_font2;
+ delete [] medium_font;
+ delete [] medium_font2;
+ delete [] large_font;
+ delete [] large_font2;
+ delete [] big_font;
+ delete [] big_font2;
+ delete [] small_fontset;
+ delete [] medium_fontset;
+ delete [] large_fontset;
+ delete [] big_fontset;
+ delete [] small_font_xft;
+ delete [] small_b_font_xft;
+ delete [] medium_font_xft;
+ delete [] medium_b_font_xft;
+ delete [] large_font_xft;
+ delete [] large_b_font_xft;
+ delete [] big_font_xft;
+ delete [] big_b_font_xft;
+
+ delete [] small_font_xft2;
+ delete [] medium_font_xft2;
+ delete [] large_font_xft2;
+ delete [] big_font_xft2;
+}
suffix_to_type_t BC_Resources::suffix_to_type[] =
{
return cpus;
}
-BC_Resources::BC_Resources()
-{
- synchronous = 0;
- vframe_shm = 0;
- double default_scale = 1.0; // display_size/1000.;
- char *env = getenv("BC_FONT_SCALE");
- font_scale = env ? atof(env) : default_scale;
- if( font_scale <= 0 ) font_scale = 1;
- init_font_defs(font_scale);
- env = getenv("BC_ICON_SCALE");
- icon_scale = env ? atof(env) : default_scale;
- if( icon_scale <= 0 ) icon_scale = 1;
-
- id_lock = new Mutex("BC_Resources::id_lock");
- create_window_lock = new Mutex("BC_Resources::create_window_lock", 1);
- id = 0;
- machine_cpus = get_machine_cpus();
-
- for(int i = 0; i < FILEBOX_HISTORY_SIZE; i++)
- filebox_history[i].path[0] = 0;
-
-#ifdef HAVE_XFT
- XftInitFtLibrary();
-#endif
-
- little_endian = (*(const u_int32_t*)"\01\0\0\0") & 1;
- wide_encoding = little_endian ? "UTF32LE" : "UTF32BE";
- use_xvideo = 1;
-
#include "images/file_folder_png.h"
#include "images/file_unknown_png.h"
#include "images/file_film_png.h"
#include "images/file_sound_png.h"
#include "images/file_label_png.h"
#include "images/file_column_png.h"
- static VFrame* default_type_to_icon[] =
- {
- new VFramePng(file_folder_png),
- new VFramePng(file_unknown_png),
- new VFramePng(file_film_png),
- new VFramePng(file_sound_png),
- new VFramePng(file_label_png),
- new VFramePng(file_column_png)
- };
- type_to_icon = default_type_to_icon;
-
+VFrame *BC_Resources::default_type_to_icon[] = {
+ new VFramePng(file_folder_png),
+ new VFramePng(file_unknown_png),
+ new VFramePng(file_film_png),
+ new VFramePng(file_sound_png),
+ new VFramePng(file_label_png),
+ new VFramePng(file_column_png)
+};
#include "images/bar_png.h"
- static VFrame* default_bar = new VFramePng(bar_png);
- bar_data = default_bar;
-
+VFrame *BC_Resources::default_bar = new VFramePng(bar_png);
#include "images/cancel_up_png.h"
#include "images/cancel_hi_png.h"
#include "images/cancel_dn_png.h"
- static VFrame* default_cancel_images[] =
- {
- new VFramePng(cancel_up_png),
- new VFramePng(cancel_hi_png),
- new VFramePng(cancel_dn_png)
- };
+VFrame *BC_Resources::default_cancel_images[] = {
+ new VFramePng(cancel_up_png),
+ new VFramePng(cancel_hi_png),
+ new VFramePng(cancel_dn_png)
+};
#include "images/ok_up_png.h"
#include "images/ok_hi_png.h"
#include "images/ok_dn_png.h"
- static VFrame* default_ok_images[] =
- {
- new VFramePng(ok_up_png),
- new VFramePng(ok_hi_png),
- new VFramePng(ok_dn_png)
- };
+VFrame *BC_Resources::default_ok_images[] = {
+ new VFramePng(ok_up_png),
+ new VFramePng(ok_hi_png),
+ new VFramePng(ok_dn_png)
+};
#include "images/usethis_up_png.h"
#include "images/usethis_uphi_png.h"
#include "images/usethis_dn_png.h"
- static VFrame* default_usethis_images[] =
- {
- new VFramePng(usethis_up_png),
- new VFramePng(usethis_uphi_png),
- new VFramePng(usethis_dn_png)
- };
+VFrame *BC_Resources::default_usethis_images[] = {
+ new VFramePng(usethis_up_png),
+ new VFramePng(usethis_uphi_png),
+ new VFramePng(usethis_dn_png)
+};
#if 0
#include "images/checkbox_checked_png.h"
#include "images/checkbox_checkedhi_png.h"
#include "images/checkbox_up_png.h"
#include "images/checkbox_hi_png.h"
- static VFrame* default_checkbox_images[] =
- {
- new VFramePng(checkbox_up_png),
- new VFramePng(checkbox_hi_png),
- new VFramePng(checkbox_checked_png),
- new VFramePng(checkbox_dn_png),
- new VFramePng(checkbox_checkedhi_png)
- };
+VFrame *BC_Resources::default_checkbox_images[] = {
+ new VFramePng(checkbox_up_png),
+ new VFramePng(checkbox_hi_png),
+ new VFramePng(checkbox_checked_png),
+ new VFramePng(checkbox_dn_png),
+ new VFramePng(checkbox_checkedhi_png)
+};
#include "images/radial_checked_png.h"
#include "images/radial_dn_png.h"
#include "images/radial_checkedhi_png.h"
#include "images/radial_up_png.h"
#include "images/radial_hi_png.h"
- static VFrame* default_radial_images[] =
- {
- new VFramePng(radial_up_png),
- new VFramePng(radial_hi_png),
- new VFramePng(radial_checked_png),
- new VFramePng(radial_dn_png),
- new VFramePng(radial_checkedhi_png)
- };
-
- static VFrame* default_label_images[] =
- {
- new VFramePng(radial_up_png),
- new VFramePng(radial_hi_png),
- new VFramePng(radial_checked_png),
- new VFramePng(radial_dn_png),
- new VFramePng(radial_checkedhi_png)
- };
+VFrame *BC_Resources::default_radial_images[] = {
+ new VFramePng(radial_up_png),
+ new VFramePng(radial_hi_png),
+ new VFramePng(radial_checked_png),
+ new VFramePng(radial_dn_png),
+ new VFramePng(radial_checkedhi_png)
+};
+
+VFrame *BC_Resources::default_label_images[] = {
+ new VFramePng(radial_up_png),
+ new VFramePng(radial_hi_png),
+ new VFramePng(radial_checked_png),
+ new VFramePng(radial_dn_png),
+ new VFramePng(radial_checkedhi_png)
+};
#endif
+#include "images/menuitem_up_png.h"
+#include "images/menuitem_hi_png.h"
+#include "images/menuitem_dn_png.h"
+
+VFrame *BC_Resources::default_menuitem_data[] = {
+ new VFramePng(menuitem_up_png),
+ new VFramePng(menuitem_hi_png),
+ new VFramePng(menuitem_dn_png),
+};
+
+#include "images/menubar_up_png.h"
+#include "images/menubar_hi_png.h"
+#include "images/menubar_dn_png.h"
+VFrame *BC_Resources::default_menubar_data[] = {
+ new VFramePng(menubar_up_png),
+ new VFramePng(menubar_hi_png),
+ new VFramePng(menubar_dn_png),
+};
+
+#include "images/menu_popup_bg_png.h"
+VFrame *BC_Resources::default_menu_popup_bg = new VFramePng(menu_popup_bg_png);
+
+#include "images/menubar_bg_png.h"
+VFrame *BC_Resources::default_menu_bar_bg = new VFramePng(menubar_bg_png);
+
#include "images/check_png.h"
- static VFrame* default_check_image = new VFramePng(check_png);
- check = default_check_image;
+VFrame *BC_Resources::default_check_image = new VFramePng(check_png);
#include "images/file_text_up_png.h"
#include "images/file_text_hi_png.h"
#include "images/file_reload_up_png.h"
#include "images/file_reload_hi_png.h"
#include "images/file_reload_dn_png.h"
- static VFrame* default_filebox_text_images[] =
- {
- new VFramePng(file_text_up_png),
- new VFramePng(file_text_hi_png),
- new VFramePng(file_text_dn_png)
- };
-
- static VFrame* default_filebox_icons_images[] =
- {
- new VFramePng(file_icons_up_png),
- new VFramePng(file_icons_hi_png),
- new VFramePng(file_icons_dn_png)
- };
+VFrame *BC_Resources::default_filebox_text_images[] = {
+ new VFramePng(file_text_up_png),
+ new VFramePng(file_text_hi_png),
+ new VFramePng(file_text_dn_png)
+};
- static VFrame* default_filebox_updir_images[] =
- {
- new VFramePng(file_updir_up_png),
- new VFramePng(file_updir_hi_png),
- new VFramePng(file_updir_dn_png)
- };
+VFrame *BC_Resources::default_filebox_icons_images[] = {
+ new VFramePng(file_icons_up_png),
+ new VFramePng(file_icons_hi_png),
+ new VFramePng(file_icons_dn_png)
+};
- static VFrame* default_filebox_newfolder_images[] =
- {
- new VFramePng(file_newfolder_up_png),
- new VFramePng(file_newfolder_hi_png),
- new VFramePng(file_newfolder_dn_png)
- };
+VFrame *BC_Resources::default_filebox_updir_images[] = {
+ new VFramePng(file_updir_up_png),
+ new VFramePng(file_updir_hi_png),
+ new VFramePng(file_updir_dn_png)
+};
+VFrame *BC_Resources::default_filebox_newfolder_images[] = {
+ new VFramePng(file_newfolder_up_png),
+ new VFramePng(file_newfolder_hi_png),
+ new VFramePng(file_newfolder_dn_png)
+};
- static VFrame* default_filebox_rename_images[] =
- {
- new VFramePng(file_rename_up_png),
- new VFramePng(file_rename_hi_png),
- new VFramePng(file_rename_dn_png)
- };
+VFrame *BC_Resources::default_filebox_rename_images[] = {
+ new VFramePng(file_rename_up_png),
+ new VFramePng(file_rename_hi_png),
+ new VFramePng(file_rename_dn_png)
+};
- static VFrame* default_filebox_delete_images[] =
- {
- new VFramePng(file_delete_up_png),
- new VFramePng(file_delete_hi_png),
- new VFramePng(file_delete_dn_png)
- };
+VFrame *BC_Resources::default_filebox_delete_images[] = {
+ new VFramePng(file_delete_up_png),
+ new VFramePng(file_delete_hi_png),
+ new VFramePng(file_delete_dn_png)
+};
- static VFrame* default_filebox_reload_images[] =
- {
- new VFramePng(file_reload_up_png),
- new VFramePng(file_reload_hi_png),
- new VFramePng(file_reload_dn_png)
- };
+VFrame *BC_Resources::default_filebox_reload_images[] = {
+ new VFramePng(file_reload_up_png),
+ new VFramePng(file_reload_hi_png),
+ new VFramePng(file_reload_dn_png)
+};
#include "images/listbox_button_dn_png.h"
#include "images/listbox_button_hi_png.h"
#include "images/listbox_button_up_png.h"
#include "images/listbox_button_disabled_png.h"
- static VFrame* default_listbox_button[] =
- {
- new VFramePng(listbox_button_up_png),
- new VFramePng(listbox_button_hi_png),
- new VFramePng(listbox_button_dn_png),
- new VFramePng(listbox_button_disabled_png)
- };
- listbox_button = default_listbox_button;
+VFrame *BC_Resources::default_listbox_button[] = {
+ new VFramePng(listbox_button_up_png),
+ new VFramePng(listbox_button_hi_png),
+ new VFramePng(listbox_button_dn_png),
+ new VFramePng(listbox_button_disabled_png)
+};
#include "images/menu_popup_bg_png.h"
- static VFrame* default_listbox_bg = 0;
- listbox_bg = default_listbox_bg;
+VFrame *BC_Resources::default_listbox_bg = 0;
#include "images/listbox_expandchecked_png.h"
#include "images/listbox_expandcheckedhi_png.h"
#include "images/listbox_expanddn_png.h"
#include "images/listbox_expandup_png.h"
#include "images/listbox_expanduphi_png.h"
- static VFrame* default_listbox_expand[] =
- {
- new VFramePng(listbox_expandup_png),
- new VFramePng(listbox_expanduphi_png),
- new VFramePng(listbox_expandchecked_png),
- new VFramePng(listbox_expanddn_png),
- new VFramePng(listbox_expandcheckedhi_png),
- };
- listbox_expand = default_listbox_expand;
+VFrame *BC_Resources::default_listbox_expand[] = {
+ new VFramePng(listbox_expandup_png),
+ new VFramePng(listbox_expanduphi_png),
+ new VFramePng(listbox_expandchecked_png),
+ new VFramePng(listbox_expanddn_png),
+ new VFramePng(listbox_expandcheckedhi_png),
+};
#include "images/listbox_columnup_png.h"
#include "images/listbox_columnhi_png.h"
#include "images/listbox_columndn_png.h"
- static VFrame* default_listbox_column[] =
- {
- new VFramePng(listbox_columnup_png),
- new VFramePng(listbox_columnhi_png),
- new VFramePng(listbox_columndn_png)
- };
- listbox_column = default_listbox_column;
-
+VFrame *BC_Resources::default_listbox_column[] = {
+ new VFramePng(listbox_columnup_png),
+ new VFramePng(listbox_columnhi_png),
+ new VFramePng(listbox_columndn_png)
+};
#include "images/listbox_up_png.h"
-#include "images/listbox_dn_png.h"
- listbox_up = new VFramePng(listbox_up_png);
- listbox_dn = new VFramePng(listbox_dn_png);
- listbox_title_overlap = 0;
- listbox_title_margin = 0;
- listbox_title_color = BLACK;
- listbox_title_hotspot = 5;
+VFrame *BC_Resources::default_listbox_up = new VFramePng(listbox_up_png);
- listbox_border1 = DKGREY;
- listbox_border2_hi = RED;
- listbox_border2 = BLACK;
- listbox_border3_hi = RED;
- listbox_border3 = MEGREY;
- listbox_border4 = WHITE;
- listbox_selected = BLUE;
- listbox_highlighted = LTGREY;
- listbox_inactive = WHITE;
- listbox_text = BLACK;
+#include "images/listbox_dn_png.h"
+VFrame *BC_Resources::default_listbox_dn = new VFramePng(listbox_dn_png);
#include "images/pot_hi_png.h"
#include "images/pot_up_png.h"
#include "images/pot_dn_png.h"
- static VFrame *default_pot_images[] =
- {
- new VFramePng(pot_up_png),
- new VFramePng(pot_hi_png),
- new VFramePng(pot_dn_png)
- };
+VFrame *BC_Resources::default_pot_images[] = {
+ new VFramePng(pot_up_png),
+ new VFramePng(pot_hi_png),
+ new VFramePng(pot_dn_png)
+};
#include "images/progress_up_png.h"
#include "images/progress_hi_png.h"
- static VFrame* default_progress_images[] =
- {
- new VFramePng(progress_up_png),
- new VFramePng(progress_hi_png)
- };
-
- pan_data = 0;
- pan_text_color = YELLOW;
+VFrame *BC_Resources::default_progress_images[] = {
+ new VFramePng(progress_up_png),
+ new VFramePng(progress_hi_png)
+};
#include "images/7seg_small/0_png.h"
#include "images/7seg_small/1_png.h"
#include "images/7seg_small/f_png.h"
#include "images/7seg_small/space_png.h"
#include "images/7seg_small/dash_png.h"
- static VFrame* default_medium_7segment[] =
- {
- new VFramePng(_0_png),
- new VFramePng(_1_png),
- new VFramePng(_2_png),
- new VFramePng(_3_png),
- new VFramePng(_4_png),
- new VFramePng(_5_png),
- new VFramePng(_6_png),
- new VFramePng(_7_png),
- new VFramePng(_8_png),
- new VFramePng(_9_png),
- new VFramePng(colon_png),
- new VFramePng(period_png),
- new VFramePng(a_png),
- new VFramePng(b_png),
- new VFramePng(c_png),
- new VFramePng(d_png),
- new VFramePng(e_png),
- new VFramePng(f_png),
- new VFramePng(space_png),
- new VFramePng(dash_png)
- };
+VFrame *BC_Resources::default_medium_7segment[] = {
+ new VFramePng(_0_png),
+ new VFramePng(_1_png),
+ new VFramePng(_2_png),
+ new VFramePng(_3_png),
+ new VFramePng(_4_png),
+ new VFramePng(_5_png),
+ new VFramePng(_6_png),
+ new VFramePng(_7_png),
+ new VFramePng(_8_png),
+ new VFramePng(_9_png),
+ new VFramePng(colon_png),
+ new VFramePng(period_png),
+ new VFramePng(a_png),
+ new VFramePng(b_png),
+ new VFramePng(c_png),
+ new VFramePng(d_png),
+ new VFramePng(e_png),
+ new VFramePng(f_png),
+ new VFramePng(space_png),
+ new VFramePng(dash_png)
+};
+
+
+BC_Resources::BC_Resources()
+{
+ synchronous = 0;
+ vframe_shm = 0;
+ double default_scale = 1.0; // display_size/1000.;
+ char *env = getenv("BC_FONT_SCALE");
+ font_scale = env ? atof(env) : default_scale;
+ if( font_scale <= 0 ) font_scale = 1;
+ init_font_defs(font_scale);
+ env = getenv("BC_ICON_SCALE");
+ icon_scale = env ? atof(env) : default_scale;
+ if( icon_scale <= 0 ) icon_scale = 1;
+
+ id_lock = new Mutex("BC_Resources::id_lock");
+ create_window_lock = new Mutex("BC_Resources::create_window_lock", 1);
+ id = 0;
+ machine_cpus = get_machine_cpus();
+
+ for(int i = 0; i < FILEBOX_HISTORY_SIZE; i++)
+ filebox_history[i].path[0] = 0;
+
+#ifdef HAVE_XFT
+ XftInitFtLibrary();
+#endif
+
+ little_endian = (*(const u_int32_t*)"\01\0\0\0") & 1;
+ wide_encoding = little_endian ? "UTF32LE" : "UTF32BE";
+ use_xvideo = 1;
+
+ type_to_icon = default_type_to_icon;
+ bar_data = default_bar;
+ check = default_check_image;
+ listbox_button = default_listbox_button;
+ listbox_bg = default_listbox_bg;
+ listbox_expand = default_listbox_expand;
+ listbox_column = default_listbox_column;
+ listbox_up = default_listbox_up;
+ listbox_dn = default_listbox_dn;
+ listbox_title_overlap = 0;
+ listbox_title_margin = 0;
+ listbox_title_color = BLACK;
+ listbox_title_hotspot = 5;
+
+ listbox_border1 = DKGREY;
+ listbox_border2_hi = RED;
+ listbox_border2 = BLACK;
+ listbox_border3_hi = RED;
+ listbox_border3 = MEGREY;
+ listbox_border4 = WHITE;
+ listbox_selected = BLUE;
+ listbox_highlighted = LTGREY;
+ listbox_inactive = WHITE;
+ listbox_text = BLACK;
+
+ pan_data = 0;
+ pan_text_color = YELLOW;
generic_button_margin = 15;
draw_clock_background=1;
menu_up = MECYAN;
menu_shadow = DKCYAN;
-
-#include "images/menuitem_up_png.h"
-#include "images/menuitem_hi_png.h"
-#include "images/menuitem_dn_png.h"
-#include "images/menubar_up_png.h"
-#include "images/menubar_hi_png.h"
-#include "images/menubar_dn_png.h"
-#include "images/menubar_bg_png.h"
-
- static VFrame *default_menuitem_data[] =
- {
- new VFramePng(menuitem_up_png),
- new VFramePng(menuitem_hi_png),
- new VFramePng(menuitem_dn_png),
- };
- menu_item_bg = default_menuitem_data;
-
-
- static VFrame *default_menubar_data[] =
- {
- new VFramePng(menubar_up_png),
- new VFramePng(menubar_hi_png),
- new VFramePng(menubar_dn_png),
- };
menu_title_bg = default_menubar_data;
-
- menu_popup_bg = new VFramePng(menu_popup_bg_png);
-
- menu_bar_bg = new VFramePng(menubar_bg_png);
+ menu_popup_bg = default_menu_popup_bg;
+ menu_bar_bg = default_menu_bar_bg;
popupmenu_images = 0;
}
+static void del_vframes(VFrame **vframes, int n)
+{
+ while( --n >= 0 ) delete vframes[n];
+}
+
BC_Resources::~BC_Resources()
{
+ delete id_lock;
+ delete create_window_lock;
+ del_vframes(default_type_to_icon, 6);
+ delete default_bar;
+ del_vframes(default_cancel_images, 3);
+ del_vframes(default_ok_images, 3);
+ del_vframes(default_usethis_images, 3);
+#if 0
+ del_vframes(default_checkbox_images, 5);
+ del_vframes(default_radial_images, 5);
+ del_vframes(default_label_images, 5);
+#endif
+ del_vframes(default_menuitem_data, 3);
+ del_vframes(default_menubar_data, 3);
+ delete default_menu_popup_bg;
+ delete default_menu_bar_bg;
+ delete default_check_image;
+ del_vframes(default_filebox_text_images, 3);
+ del_vframes(default_filebox_icons_images, 3);
+ del_vframes(default_filebox_updir_images, 3);
+ del_vframes(default_filebox_newfolder_images, 3);
+ del_vframes(default_filebox_rename_images, 3);
+ del_vframes(default_filebox_delete_images, 3);
+ del_vframes(default_filebox_reload_images, 3);
+ del_vframes(default_listbox_button, 4);
+ delete default_listbox_bg;
+ del_vframes(default_listbox_expand, 5);
+ del_vframes(default_listbox_column, 3);
+ delete default_listbox_up;
+ delete default_listbox_dn;
+ del_vframes(default_pot_images, 3);
+ del_vframes(default_progress_images, 2);
+ del_vframes(default_medium_7segment, 20);
+ if( fontlist ) {
+ fontlist->remove_all_objects();
+ delete fontlist;
+ }
+ finit_font_defs();
}
int BC_Resources::initialize_display(BC_WindowBase *window)
static const char *large_font_xft2;
static const char *big_font_xft2;
void init_font_defs(double scale);
+ void finit_font_defs();
VFrame **medium_7segment;
static int find_font_by_char(FT_ULong char_code, char *path_new, const FT_Face oldface);
static void dump_fonts(FILE *fp = stdout);
+// default images
+ static VFrame *default_type_to_icon[];
+ static VFrame *default_bar;
+ static VFrame *default_cancel_images[];
+ static VFrame *default_ok_images[];
+ static VFrame *default_usethis_images[];
+#if 0
+ static VFrame *default_checkbox_images[];
+ static VFrame *default_radial_images[];
+ static VFrame *default_label_images[];
+#endif
+ static VFrame *default_menuitem_data[];
+ static VFrame *default_menubar_data[];
+ static VFrame *default_menu_popup_bg;
+ static VFrame *default_menu_bar_bg;
+ static VFrame *default_check_image;
+ static VFrame *default_filebox_text_images[];
+ static VFrame *default_filebox_icons_images[];
+ static VFrame *default_filebox_updir_images[];
+ static VFrame *default_filebox_newfolder_images[];
+ static VFrame *default_filebox_rename_images[];
+ static VFrame *default_filebox_delete_images[];
+ static VFrame *default_filebox_reload_images[];
+ static VFrame *default_listbox_button[];
+ static VFrame *default_listbox_bg;
+ static VFrame *default_listbox_expand[];
+ static VFrame *default_listbox_column[];
+ static VFrame *default_listbox_up;
+ static VFrame *default_listbox_dn;
+ static VFrame *default_pot_images[];
+ static VFrame *default_progress_images[];
+ static VFrame *default_medium_7segment[];
+
// Make VFrame use shm
int vframe_shm;
int use_vframe_shm() { return use_shm && vframe_shm ? 1 : 0; }
BC_Theme::~BC_Theme()
{
image_sets.remove_all_objects();
+ contents.remove_all();
}
void BC_Theme::dump()
const char *up_path,
const char *hi_path,
const char *dn_path,
- const char *title = 0);
+ const char *title);
VFrame** new_button4(const char *overlay_path,
const char *up_path,
const char *hi_path,
const char *dn_path,
const char *disabled_path,
- const char *title = 0);
+ const char *title);
VFrame** new_button(const char *overlay_path,
VFrame *up,
VFrame *hi,
VFrame *dn,
- const char *title = 0);
+ const char *title);
VFrame** new_toggle(const char *overlay_path,
const char *up_path,
const char *hi_path,
const char *checked_path,
const char *dn_path,
const char *checkedhi_path,
- const char *title = 0);
+ const char *title);
VFrame** new_toggle(const char *overlay_path,
VFrame *up,
VFrame *hi,
VFrame *checked,
VFrame *dn,
VFrame *checkedhi,
- const char *title = 0);
+ const char *title);
// The two main routines for creating images are new_image_set and new_image.
for( int i=sizeof(xfont)/sizeof(xfont[0]); --i>=0; )
XFreeFont(display, this->*xfont[i]);
-// bug in X causes XRenderExtensionInfo to be damaged if this is done here
-// left to be done in XCloseDisplay by Xlib.
-#if defined(HAVE_XFT) && 0
+// past bug in X caused XRenderExtensionInfo to be damaged
+// if this is done here. left to be done in XCloseDisplay by Xlib.
+// works in more modern systems, and needed for leak testing.
+#if defined(HAVE_XFT) && defined(VALGRIND)
static void *BC_WindowBase::*xft_font[] = {
&BC_WindowBase::smallfont_xft,
&BC_WindowBase::mediumfont_xft,
delete new_file;
}
}
+ closedir(dirstream);
return 0;
}
#include <string.h>
#include <ctype.h>
-float* DB::topower = 0;
float* DB::topower_base = 0;
int* Freq::freqtable = 0;
DB::DB(float infinitygain)
{
this->infinitygain = infinitygain;
- if(!topower) { // db to power table
- topower_base = new float[(MAXGAIN - INFINITYGAIN) * 10 + 1];
- topower = topower_base + -INFINITYGAIN * 10;
- for(int i = INFINITYGAIN * 10; i <= MAXGAIN * 10; i++) {
- topower[i] = pow(10, (float)i / 10 / 20);
-//printf("%f %f\n", (float)i/10, topower[i]);
- }
- topower[INFINITYGAIN * 10] = 0; // infinity gain
- }
- db = 0;
+ this->db = 0;
+ this->topower = topower_base + -INFINITYGAIN * 10;
}
+
float DB::fromdb_table()
{
return db = topower[(int)(db*10)];
Freq::Freq()
{
- if( !freqtable ) init_table();
freq = 0;
}
this->freq = oldfreq.freq;
}
-void Freq::init_table()
-{
- freqtable = new int[TOTALFREQS + 1];
-// starting frequency
- double freq1 = 27.5, freq2 = 55;
-// Some number divisable by three. This depends on the value of TOTALFREQS
- int scale = 105;
-
- freqtable[0] = 0;
- for(int i = 1, j = 0; i <= TOTALFREQS; i++, j++) {
- freqtable[i] = (int)(freq1 + (freq2 - freq1) / scale * j + 0.5);
-//printf("Freq::init_table %d\n", freqtable[i]);
- if(j >= scale) {
- freq1 = freq2;
- freq2 *= 2;
- j = 0;
- }
- }
-}
-
int Freq::fromfreq()
{
int i = 0;
- if( !freqtable ) init_table();
while( i<TOTALFREQS && freqtable[i]<freq ) ++i;
return i;
};
int Freq::fromfreq(int index)
{
int i = 0;
- if( !freqtable ) init_table();
while( i<TOTALFREQS && freqtable[i]<index ) ++i;
return i;
};
int Freq::tofreq(int index)
{
- if( !freqtable ) init_table();
if(index >= TOTALFREQS) index = TOTALFREQS - 1;
return freqtable[index];
}
int Freq::operator==(Freq &newfreq) { return freq == newfreq.freq; }
int Freq::operator==(int newfreq) { return freq == newfreq; }
+
+
+void Units::init()
+{
+ DB::topower_base = new float[(MAXGAIN - INFINITYGAIN) * 10 + 1];
+ float *topower = DB::topower_base + -INFINITYGAIN * 10;
+ for(int i = INFINITYGAIN * 10; i <= MAXGAIN * 10; i++)
+ topower[i] = pow(10, (float)i / 10 / 20);
+ topower[INFINITYGAIN * 10] = 0; // infinity gain
+
+ Freq::freqtable = new int[TOTALFREQS + 1];
+// starting frequency
+ double freq1 = 27.5, freq2 = 55;
+// Some number divisable by three. This depends on the value of TOTALFREQS
+ int scale = 105;
+
+ Freq::freqtable[0] = 0;
+ for(int i = 1, j = 0; i <= TOTALFREQS; i++, j++) {
+ Freq::freqtable[i] = (int)(freq1 + (freq2 - freq1) / scale * j + 0.5);
+ if(j < scale) continue;
+ freq1 = freq2; freq2 *= 2; j = 0;
+ }
+}
+void Units::finit()
+{
+ delete [] DB::topower_base; DB::topower_base = 0;
+ delete [] Freq::freqtable; Freq::freqtable = 0;
+}
+
// give text representation as time
char* Units::totext(char *text, double seconds, int time_format,
int sample_rate, float frame_rate, float frames_per_foot)
#define TIME_MS2 10
#define TIME_MS2_TEXT _("Minutes:Seconds")
+class Units;
+
class DB
{
+ friend class Units;
public:
DB(float infinitygain = INFINITYGAIN);
virtual ~DB() {};
inline int operator==(DB &newdb) { return db == newdb.db; };
inline int operator==(int newdb) { return db == newdb; };
- static float *topower, *topower_base;
+ float *topower;
float db;
float infinitygain;
private:
- static float *allocated;
+ static float *topower_base;
};
// Third octave frequency table
class Freq
{
+ friend class Units;
public:
Freq();
Freq(const Freq& oldfreq);
{
public:
Units() {};
+ static void init();
+ static void finit();
static int timeformat_totype(char *tcf);
pbuffer = 0;
}
+#ifdef LEAKER
+if( memory_type != VFrame::SHARED )
+ printf("==del %p from %p\n", data, __builtin_return_address(0));
+#endif
+
// Delete data
switch(memory_type)
{
if(!this->data)
printf("VFrame::allocate_data %dx%d: memory exhausted.\n", this->w, this->h);
+#ifdef LEAKER
+printf("==new %p from %p sz %d\n", this->data, __builtin_return_address(0), size);
+#endif
//printf("VFrame::allocate_data %d %p data=%p %d %d\n", __LINE__, this, this->data, this->w, this->h);
//if(size > 1000000) printf("VFrame::allocate_data %d\n", size);
void VFrame::rotate90()
{
// Allocate new frame
- int new_w = h, new_h = w, new_bytes_per_line = bytes_per_pixel * new_w;
- unsigned char *new_data = new unsigned char[calculate_data_size(new_w, new_h, new_bytes_per_line, color_model)];
- unsigned char **new_rows = new unsigned char*[new_h];
- for(int i = 0; i < new_h; i++)
- new_rows[i] = &new_data[new_bytes_per_line * i];
-
+ int new_w = h, new_h = w;
+ VFrame new_frame(new_w, new_h, color_model);
+ unsigned char **new_rows = new_frame.get_rows();
// Copy data
for(int in_y = 0, out_x = new_w - 1; in_y < h; in_y++, out_x--)
{
}
// Swap frames
- clear_objects(0);
+// swap memory
+ unsigned char *new_data = new_frame.data;
+ new_frame.data = data;
data = new_data;
+// swap rows
+ new_rows = new_frame.rows;
+ new_frame.rows = rows;
rows = new_rows;
- bytes_per_line = new_bytes_per_line;
- w = new_w;
- h = new_h;
+// swap shmid
+ int new_shmid = new_frame.shmid;
+ new_frame.shmid = shmid;
+ shmid = new_shmid;
+// swap bytes_per_line
+ int new_bpl = new_frame.bytes_per_line;
+ new_frame.bytes_per_line = bytes_per_line;
+ bytes_per_line = new_bpl;
+ new_frame.clear_objects(0);
+
+ w = new_frame.w;
+ h = new_frame.h;
}
void VFrame::rotate270()
{
// Allocate new frame
- int new_w = h, new_h = w, new_bytes_per_line = bytes_per_pixel * new_w;
- unsigned char *new_data = new unsigned char[calculate_data_size(new_w, new_h, new_bytes_per_line, color_model)];
- unsigned char **new_rows = new unsigned char*[new_h];
- for(int i = 0; i < new_h; i++)
- new_rows[i] = &new_data[new_bytes_per_line * i];
-
+ int new_w = h, new_h = w;
+ VFrame new_frame(new_w, new_h, color_model);
+ unsigned char **new_rows = new_frame.get_rows();
// Copy data
for(int in_y = 0, out_x = 0; in_y < h; in_y++, out_x++)
{
}
// Swap frames
- clear_objects(0);
+// swap memory
+ unsigned char *new_data = new_frame.data;
+ new_frame.data = data;
data = new_data;
+// swap rows
+ new_rows = new_frame.rows;
+ new_frame.rows = rows;
rows = new_rows;
- bytes_per_line = new_bytes_per_line;
- w = new_w;
- h = new_h;
+// swap shmid
+ int new_shmid = new_frame.shmid;
+ new_frame.shmid = shmid;
+ shmid = new_shmid;
+// swap bytes_per_line
+ int new_bpl = new_frame.bytes_per_line;
+ new_frame.bytes_per_line = bytes_per_line;
+ bytes_per_line = new_bpl;
+ new_frame.clear_objects(0);
+
+ w = new_frame.w;
+ h = new_frame.h;
}
void VFrame::flip_vert()
C41BoxButton::C41BoxButton(C41Effect *plugin, C41Window *window, int x, int y)
- : BC_GenericButton(x, y, _("Apply box"))
+ : BC_GenericButton(x, y, _("Apply default box"))
{
this->plugin = plugin;
this->window = window;
add_subwindow(gamma_b = new BC_Title(x + 80, y, "0.0000"));
y += 30;
- add_subwindow(new BC_Title(x, y, _("Coef 1:")));
+ add_subwindow(new BC_Title(x, y, _("Contrast:")));
add_subwindow(coef1 = new BC_Title(x + 80, y, "0.0000"));
y += 30;
- add_subwindow(new BC_Title(x, y, _("Coef 2:")));
+ add_subwindow(new BC_Title(x, y, _("Brightness:")));
add_subwindow(coef2 = new BC_Title(x + 80, y, "0.0000"));
y += 30;
&plugin->config.fix_gamma_b, x + 80, y));
y += 30;
- add_subwindow(new BC_Title(x, y, _("Coef 1:")));
+ add_subwindow(new BC_Title(x, y, _("Contrast:")));
add_subwindow(fix_coef1 = new C41TextBox(plugin,
&plugin->config.fix_coef1, x + 80, y));
y += 30;
- add_subwindow(new BC_Title(x, y, _("Coef 2:")));
+ add_subwindow(new BC_Title(x, y, _("Brightness:")));
add_subwindow(fix_coef2 = new C41TextBox(plugin,
&plugin->config.fix_coef2, x + 80, y));
y += 30;
}
if( config.show_box ) {
- float **rows = (float **)frame->get_rows();
- if( min_row < max_row - 1 ) {
- float *row1 = (float *)rows[min_row];
- float *row2 = (float *)rows[max_row - 1];
-
- for( int i = 0; i < frame_w; i++ ) {
- for( int j = 0; j < 3; j++ ) {
- row1[j] = pix_max - row1[j];
- row2[j] = pix_max - row2[j];
- }
- if( has_alpha ) {
- row1[3] = pix_max;
- row2[3] = pix_max;
+ EDLSession *session = get_edlsession();
+ int line_w = bmax(session->output_w,session->output_h) / 600 + 1;
+ for( int j=0; j<line_w; ++j ) {
+ float **rows = (float **)frame->get_rows();
+ if( min_row < max_row - 1 ) {
+ float *row1 = (float *)rows[min_row+j];
+ float *row2 = (float *)rows[max_row-j - 1];
+
+ for( int i = 0; i < frame_w; i++ ) {
+ for( int j = 0; j < 3; j++ ) {
+ row1[j] = pix_max - row1[j];
+ row2[j] = pix_max - row2[j];
+ }
+ if( has_alpha ) {
+ row1[3] = pix_max;
+ row2[3] = pix_max;
+ }
+ row1 += pix_len;
+ row2 += pix_len;
}
- row1 += pix_len;
- row2 += pix_len;
}
- }
- if( min_col < max_col - 1 ) {
- int pix1 = pix_len * min_col;
- int pix2 = pix_len * (max_col - 1);
-
- for( int i = 0; i < frame_h; i++ ) {
- float *row1 = rows[i] + pix1;
- float *row2 = rows[i] + pix2;
-
- for( int j = 0; j < 3; j++ ) {
- row1[j] = pix_max - row1[j];
- row2[j] = pix_max - row2[j];
- }
- if( has_alpha ) {
- row1[3] = pix_max;
- row2[3] = pix_max;
+ if( min_col < max_col - 1 ) {
+ int pix1 = pix_len * min_col+j;
+ int pix2 = pix_len * (max_col-j - 1);
+
+ for( int i = 0; i < frame_h; i++ ) {
+ float *row1 = rows[i] + pix1;
+ float *row2 = rows[i] + pix2;
+
+ for( int j = 0; j < 3; j++ ) {
+ row1[j] = pix_max - row1[j];
+ row2[j] = pix_max - row2[j];
+ }
+ if( has_alpha ) {
+ row1[3] = pix_max;
+ row2[3] = pix_max;
+ }
}
}
}
resources->filebox_icons_images = new_button("icons.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_icons");
resources->filebox_text_images = new_button("text.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_text");
resources->filebox_newfolder_images = new_button("folder.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_newfolder");
resources->filebox_rename_images = new_button("rename.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_rename");
resources->filebox_updir_images = new_button("updir.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_updir");
resources->filebox_delete_images = new_button("delete.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_delete");
resources->filebox_reload_images = new_button("reload.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_reload");
resources->filebox_descend_images = new_button("openfolder.png",
"filebox_bigbutton_up.png",
"filebox_bigbutton_hi.png",
- "filebox_bigbutton_dn.png");
+ "filebox_bigbutton_dn.png",
+ "filebox_descend");
resources->usethis_button_images =
resources->ok_images = new_button("ok.png",
"filebox_bigbutton_up.png",
"filebox_bigbutton_hi.png",
- "filebox_bigbutton_dn.png");
+ "filebox_bigbutton_dn.png",
+ "ok_button");
new_button("ok.png",
"new_bigbutton_up.png",
resources->cancel_images = new_button("cancel.png",
"filebox_bigbutton_up.png",
"filebox_bigbutton_hi.png",
- "filebox_bigbutton_dn.png");
+ "filebox_bigbutton_dn.png",
+ "cancel_button");
new_button("cancel.png",
"new_bigbutton_up.png",
"editpanel_up.png",
"editpanel_hi.png",
"editpanel_dn.png",
- "editpanel_hi.png");
+ "editpanel_hi.png",
+ "listbox_button");
resources->listbox_column = new_image_set(3,
"column_up.png",
"column_hi.png",
new_button("nextedit.png", editpanel_up, editpanel_hi, editpanel_dn, "nextedit");
new_button("prevedit.png", editpanel_up, editpanel_hi, editpanel_dn, "prevedit");
new_button("outpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "outbutton");
- over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn);
- overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn);
+ over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn, "overbutton");
+ overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn, "overwritebutton");
new_button("paste.png", editpanel_up, editpanel_hi, editpanel_dn, "paste");
new_button("redo.png", editpanel_up, editpanel_hi, editpanel_dn, "redo");
new_button("right_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "right_justify");
- splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn);
+ splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn, "slicebutton");
new_button("toclip.png", editpanel_up, editpanel_hi, editpanel_dn, "toclip");
new_button("goto.png", editpanel_up, editpanel_hi, editpanel_dn, "goto");
new_button("top_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "top_justify");
resources->ok_images = new_button("ok.png",
"generic_up.png",
"generic_hi.png",
- "generic_dn.png");
+ "generic_dn.png",
+ "ok_button");
resources->dirbox_margin = 50;
resources->filebox_margin = 101;
resources->file_color = 0x000000;
resources->directory_color = 0x0000ff;
- resources->cancel_images = new_button("cancel.png",
- "generic_up.png",
- "generic_hi.png",
- "generic_dn.png");
-
-
// Record windows
rgui_batch = new_image("recordgui_batch.png");
resources->filebox_icons_images = new_button("icons.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_icons");
resources->filebox_text_images = new_button("text.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_text");
resources->filebox_newfolder_images = new_button("folder.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_newfolder");
+
+ resources->filebox_rename_images = new_button("rename.png",
+ "fileboxbutton_up.png",
+ "fileboxbutton_hi.png",
+ "fileboxbutton_dn.png",
+ "filebox_rename");
resources->filebox_updir_images = new_button("updir.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_updir");
resources->filebox_delete_images = new_button("delete.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_delete");
resources->filebox_reload_images = new_button("reload.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_reload");
resources->filebox_descend_images = new_button("openfolder.png",
"generic_up.png",
"generic_hi.png",
- "generic_dn.png");
+ "generic_dn.png",
+ "filebox_descend");
resources->usethis_button_images =
resources->ok_images = new_button("ok.png",
"generic_up.png",
"generic_hi.png",
- "generic_dn.png");
+ "generic_dn.png",
+ "ok_button");
new_button("ok.png",
"generic_up.png",
resources->cancel_images = new_button("cancel.png",
"generic_up.png",
"generic_hi.png",
- "generic_dn.png");
+ "generic_dn.png",
+ "cancel_button");
new_button("cancel.png",
"generic_up.png",
new_button("middle_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "middle_justify");
new_button("nextlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "nextlabel");
new_button("outpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "outbutton");
- over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn);
- overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn);
+ over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn, "overbutton");
+ overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn, "overwritebutton");
new_button("paste.png", editpanel_up, editpanel_hi, editpanel_dn, "paste");
new_button("prevlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "prevlabel");
new_button("nextedit.png", editpanel_up, editpanel_hi, editpanel_dn, "nextedit");
new_button("prevedit.png", editpanel_up, editpanel_hi, editpanel_dn, "prevedit");
new_button("redo.png", editpanel_up, editpanel_hi, editpanel_dn, "redo");
new_button("right_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "right_justify");
- splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn);
+ splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn, "slicebutton");
new_button("toclip.png", editpanel_up, editpanel_hi, editpanel_dn, "toclip");
new_button("goto.png", editpanel_up, editpanel_hi, editpanel_dn, "goto");
new_button("top_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "top_justify");
resources->filebox_icons_images = new_button("icons.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_icons");
resources->filebox_text_images = new_button("text.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_text");
resources->filebox_newfolder_images = new_button("folder.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_newfolder");
resources->filebox_rename_images = new_button("rename.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_rename");
resources->filebox_updir_images = new_button("updir.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_updir");
resources->filebox_delete_images = new_button("delete.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_delete");
resources->filebox_reload_images = new_button("reload.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_reload");
resources->filebox_descend_images = new_button("openfolder.png",
"filebox_bigbutton_up.png",
"filebox_bigbutton_hi.png",
- "filebox_bigbutton_dn.png");
+ "filebox_bigbutton_dn.png",
+ "filebox_descend");
resources->usethis_button_images =
resources->ok_images = new_button("ok.png",
"filebox_bigbutton_up.png",
"filebox_bigbutton_hi.png",
- "filebox_bigbutton_dn.png");
+ "filebox_bigbutton_dn.png",
+ "ok_button");
new_button("ok.png",
"new_bigbutton_up.png",
resources->cancel_images = new_button("cancel.png",
"filebox_bigbutton_up.png",
"filebox_bigbutton_hi.png",
- "filebox_bigbutton_dn.png");
+ "filebox_bigbutton_dn.png",
+ "cancel_button");
new_button("cancel.png",
"new_bigbutton_up.png",
"editpanel_up.png",
"editpanel_hi.png",
"editpanel_dn.png",
- "editpanel_hi.png");
+ "editpanel_hi.png",
+ "listbox_button");
resources->listbox_column = new_image_set(3,
"column_up.png",
"column_hi.png",
new_button("nextedit.png", editpanel_up, editpanel_hi, editpanel_dn, "nextedit");
new_button("prevedit.png", editpanel_up, editpanel_hi, editpanel_dn, "prevedit");
new_button("outpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "outbutton");
- over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn);
- overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn);
+ over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn, "overbutton");
+ overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn, "overwritebutton");
new_button("paste.png", editpanel_up, editpanel_hi, editpanel_dn, "paste");
new_button("redo.png", editpanel_up, editpanel_hi, editpanel_dn, "redo");
new_button("right_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "right_justify");
- splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn);
+ splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn, "slicebutton");
new_button("toclip.png", editpanel_up, editpanel_hi, editpanel_dn, "toclip");
new_button("goto.png", editpanel_up, editpanel_hi, editpanel_dn, "goto");
new_button("top_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "top_justify");
resources->ok_images = new_button("ok.png",
"generic_up.png",
"generic_hi.png",
- "generic_dn.png");
+ "generic_dn.png",
+ "ok_button");
new_button("ok.png",
"generic_up.png",
resources->cancel_images = new_button("cancel.png",
"generic_up.png",
"generic_hi.png",
- "generic_dn.png");
+ "generic_dn.png",
+ "cancel_button");
new_button("cancel.png",
"generic_up.png",
new_button("nextlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "nextlabel");
new_button("outpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "outbutton");
// outdelete_data = new_button("clearoutpoint.png", editpanel_up, editpanel_hi, editpanel_dn); //Specific to BD
- over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn);
- overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn);
+ over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn, "overbutton");
+ overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn, "overwritebutton");
new_button("paste.png", editpanel_up, editpanel_hi, editpanel_dn, "paste");
new_button("prevlabel.png", editpanel_up, editpanel_hi, editpanel_dn, "prevlabel");
new_button("nextedit.png", editpanel_up, editpanel_hi, editpanel_dn, "nextedit");
new_button("prevedit.png", editpanel_up, editpanel_hi, editpanel_dn, "prevedit");
new_button("redo.png", editpanel_up, editpanel_hi, editpanel_dn, "redo");
new_button("right_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "right_justify");
- splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn);
+ splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn, "slicebutton");
new_button("toclip.png", editpanel_up, editpanel_hi, editpanel_dn, "toclip");
new_button("goto.png", editpanel_up, editpanel_hi, editpanel_dn, "goto");
new_button("top_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "top_justify");
"loadmode_nested");
-
resources->filebox_icons_images = new_button("icons.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_icons");
resources->filebox_text_images = new_button("text.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_text");
resources->filebox_newfolder_images = new_button("folder.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_newfolder");
resources->filebox_rename_images = new_button("rename.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_rename");
resources->filebox_updir_images = new_button("updir.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_updir");
resources->filebox_delete_images = new_button("delete.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_delete");
resources->filebox_reload_images = new_button("reload.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_reload");
resources->filebox_descend_images = new_button("openfolder.png",
"bigbutton_up.png",
"bigbutton_hi.png",
- "bigbutton_dn.png");
+ "bigbutton_dn.png",
+ "filebox_descend");
resources->usethis_button_images =
resources->ok_images = new_button("ok.png",
"bigbutton_up.png",
"bigbutton_hi.png",
- "bigbutton_dn.png");
+ "bigbutton_dn.png",
+ "ok_button");
new_button("ok.png",
"bigbutton_up.png",
resources->cancel_images = new_button("cancel.png",
"bigbutton_up.png",
"bigbutton_hi.png",
- "bigbutton_dn.png");
+ "bigbutton_dn.png",
+ "cancel_button");
new_button("cancel.png",
"bigbutton_up.png",
"editpanel_up.png",
"editpanel_hi.png",
"editpanel_dn.png",
- "editpanel_hi.png");
+ "editpanel_hi.png",
+ "listbox_button");
resources->listbox_column = new_image_set(3,
"column_up.png",
"column_hi.png",
new_button("nextedit.png", editpanel_up, editpanel_hi, editpanel_dn, "nextedit");
new_button("prevedit.png", editpanel_up, editpanel_hi, editpanel_dn, "prevedit");
new_button("outpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "outbutton");
- over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn);
- overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn);
+ over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn, "overbutton");
+ overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn, "overwritebutton");
new_button("paste.png", editpanel_up, editpanel_hi, editpanel_dn, "paste");
new_button("redo.png", editpanel_up, editpanel_hi, editpanel_dn, "redo");
new_button("right_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "right_justify");
- splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn);
+ splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn, "slicebutton");
new_button("toclip.png", editpanel_up, editpanel_hi, editpanel_dn, "toclip");
new_button("goto.png", editpanel_up, editpanel_hi, editpanel_dn, "goto");
new_button("top_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "top_justify");
resources->filebox_icons_images = new_button("icons.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_icons");
resources->filebox_text_images = new_button("text.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_text");
resources->filebox_newfolder_images = new_button("folder.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_newfolder");
resources->filebox_rename_images = new_button("rename.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_rename");
resources->filebox_updir_images = new_button("updir.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_updir");
resources->filebox_delete_images = new_button("delete.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_delete");
resources->filebox_reload_images = new_button("reload.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_reload");
resources->filebox_descend_images = new_button("openfolder.png",
"filebox_bigbutton_up.png",
"filebox_bigbutton_hi.png",
- "filebox_bigbutton_dn.png");
+ "filebox_bigbutton_dn.png",
+ "filebox_descend");
resources->usethis_button_images =
resources->ok_images = new_button("ok.png",
"filebox_bigbutton_up.png",
"filebox_bigbutton_hi.png",
- "filebox_bigbutton_dn.png");
+ "filebox_bigbutton_dn.png",
+ "ok_button");
new_button("ok.png",
"new_bigbutton_up.png",
resources->cancel_images = new_button("cancel.png",
"filebox_bigbutton_up.png",
"filebox_bigbutton_hi.png",
- "filebox_bigbutton_dn.png");
+ "filebox_bigbutton_dn.png",
+ "cancel_button");
new_button("cancel.png",
"new_bigbutton_up.png",
"editpanel_up.png",
"editpanel_hi.png",
"editpanel_dn.png",
- "editpanel_hi.png");
+ "editpanel_hi.png",
+ "listbox_button");
resources->listbox_column = new_image_set(3,
"column_up.png",
"column_hi.png",
new_button("nextedit.png", editpanel_up, editpanel_hi, editpanel_dn, "nextedit");
new_button("prevedit.png", editpanel_up, editpanel_hi, editpanel_dn, "prevedit");
new_button("outpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "outbutton");
- over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn);
- overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn);
+ over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn, "overbutton");
+ overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn, "overwritebutton");
new_button("paste.png", editpanel_up, editpanel_hi, editpanel_dn, "paste");
new_button("redo.png", editpanel_up, editpanel_hi, editpanel_dn, "redo");
new_button("right_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "right_justify");
- splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn);
+ splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn, "slicebutton");
new_button("toclip.png", editpanel_up, editpanel_hi, editpanel_dn, "toclip");
new_button("goto.png", editpanel_up, editpanel_hi, editpanel_dn, "goto");
new_button("top_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "top_justify");
resources->filebox_icons_images = new_button("icons.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_icons");
resources->filebox_text_images = new_button("text.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_text");
resources->filebox_newfolder_images = new_button("folder.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_newfolder");
resources->filebox_rename_images = new_button("rename.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_rename");
resources->filebox_updir_images = new_button("updir.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_updir");
resources->filebox_delete_images = new_button("delete.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_delete");
resources->filebox_reload_images = new_button("reload.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_reload");
resources->filebox_descend_images = new_button("openfolder.png",
"filebox_bigbutton_up.png",
"filebox_bigbutton_hi.png",
- "filebox_bigbutton_dn.png");
+ "filebox_bigbutton_dn.png",
+ "filebox_descend");
resources->usethis_button_images =
resources->ok_images = new_button("ok.png",
"filebox_bigbutton_up.png",
"filebox_bigbutton_hi.png",
- "filebox_bigbutton_dn.png");
+ "filebox_bigbutton_dn.png",
+ "ok_button");
new_button("ok.png",
"new_bigbutton_up.png",
resources->cancel_images = new_button("cancel.png",
"filebox_bigbutton_up.png",
"filebox_bigbutton_hi.png",
- "filebox_bigbutton_dn.png");
+ "filebox_bigbutton_dn.png",
+ "cancel_button");
new_button("cancel.png",
"new_bigbutton_up.png",
"editpanel_up.png",
"editpanel_hi.png",
"editpanel_dn.png",
- "editpanel_hi.png");
+ "editpanel_hi.png",
+ "listbox_button");
resources->listbox_column = new_image_set(3,
"column_up.png",
"column_hi.png",
new_button("nextedit.png", editpanel_up, editpanel_hi, editpanel_dn, "nextedit");
new_button("prevedit.png", editpanel_up, editpanel_hi, editpanel_dn, "prevedit");
new_button("outpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "outbutton");
- over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn);
- overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn);
+ over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn, "overbutton");
+ overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn, "overwritebutton");
new_button("paste.png", editpanel_up, editpanel_hi, editpanel_dn, "paste");
new_button("redo.png", editpanel_up, editpanel_hi, editpanel_dn, "redo");
new_button("right_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "right_justify");
- splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn);
+ splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn, "slicebutton");
new_button("toclip.png", editpanel_up, editpanel_hi, editpanel_dn, "toclip");
new_button("goto.png", editpanel_up, editpanel_hi, editpanel_dn, "goto");
new_button("top_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "top_justify");
"loadmode_nested");
-
resources->filebox_icons_images = new_button("icons.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_icons");
resources->filebox_text_images = new_button("text.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_text");
resources->filebox_newfolder_images = new_button("folder.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_newfolder");
resources->filebox_rename_images = new_button("rename.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_rename");
resources->filebox_updir_images = new_button("updir.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_updir");
resources->filebox_delete_images = new_button("delete.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_delete");
resources->filebox_reload_images = new_button("reload.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_reload");
resources->filebox_descend_images = new_button("openfolder.png",
"filebox_bigbutton_up.png",
"filebox_bigbutton_hi.png",
- "filebox_bigbutton_dn.png");
+ "filebox_bigbutton_dn.png",
+ "filebox_descend");
resources->usethis_button_images =
resources->ok_images = new_button("ok.png",
"filebox_bigbutton_up.png",
"filebox_bigbutton_hi.png",
- "filebox_bigbutton_dn.png");
+ "filebox_bigbutton_dn.png",
+ "ok_button");
new_button("ok.png",
"new_bigbutton_up.png",
resources->cancel_images = new_button("cancel.png",
"filebox_bigbutton_up.png",
"filebox_bigbutton_hi.png",
- "filebox_bigbutton_dn.png");
+ "filebox_bigbutton_dn.png",
+ "cancel_button");
new_button("cancel.png",
"new_bigbutton_up.png",
"editpanel_up.png",
"editpanel_hi.png",
"editpanel_dn.png",
- "editpanel_hi.png");
+ "editpanel_hi.png",
+ "listbox_button");
resources->listbox_column = new_image_set(3,
"column_up.png",
"column_hi.png",
new_button("nextedit.png", editpanel_up, editpanel_hi, editpanel_dn, "nextedit");
new_button("prevedit.png", editpanel_up, editpanel_hi, editpanel_dn, "prevedit");
new_button("outpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "outbutton");
- over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn);
- overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn);
+ over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn, "overbutton");
+ overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn, "overwritebutton");
new_button("paste.png", editpanel_up, editpanel_hi, editpanel_dn, "paste");
new_button("redo.png", editpanel_up, editpanel_hi, editpanel_dn, "redo");
new_button("right_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "right_justify");
- splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn);
+ splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn, "slicebutton");
new_button("toclip.png", editpanel_up, editpanel_hi, editpanel_dn, "toclip");
new_button("goto.png", editpanel_up, editpanel_hi, editpanel_dn, "goto");
new_button("top_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "top_justify");
resources->filebox_icons_images = new_button("icons.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_icons");
resources->filebox_text_images = new_button("text.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_text");
resources->filebox_newfolder_images = new_button("folder.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_newfolder");
resources->filebox_rename_images = new_button("rename.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_rename");
resources->filebox_updir_images = new_button("updir.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_updir");
resources->filebox_delete_images = new_button("delete.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_delete");
resources->filebox_reload_images = new_button("reload.png",
"fileboxbutton_up.png",
"fileboxbutton_hi.png",
- "fileboxbutton_dn.png");
+ "fileboxbutton_dn.png",
+ "filebox_reload");
resources->filebox_descend_images = new_button("openfolder.png",
"filebox_bigbutton_up.png",
"filebox_bigbutton_hi.png",
- "filebox_bigbutton_dn.png");
+ "filebox_bigbutton_dn.png",
+ "filebox_descend");
resources->usethis_button_images =
resources->ok_images = new_button("ok.png",
"filebox_bigbutton_up.png",
"filebox_bigbutton_hi.png",
- "filebox_bigbutton_dn.png");
+ "filebox_bigbutton_dn.png",
+ "ok_button");
new_button("ok.png",
"new_bigbutton_up.png",
resources->cancel_images = new_button("cancel.png",
"filebox_bigbutton_up.png",
"filebox_bigbutton_hi.png",
- "filebox_bigbutton_dn.png");
+ "filebox_bigbutton_dn.png",
+ "cancel_button");
new_button("cancel.png",
"new_bigbutton_up.png",
"editpanel_up.png",
"editpanel_hi.png",
"editpanel_dn.png",
- "editpanel_hi.png");
+ "editpanel_hi.png",
+ "listbox_button");
resources->listbox_column = new_image_set(3,
"column_up.png",
"column_hi.png",
new_button("nextedit.png", editpanel_up, editpanel_hi, editpanel_dn, "nextedit");
new_button("prevedit.png", editpanel_up, editpanel_hi, editpanel_dn, "prevedit");
new_button("outpoint.png", editpanel_up, editpanel_hi, editpanel_dn, "outbutton");
- over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn);
- overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn);
+ over_button = new_button("over.png", editpanel_up, editpanel_hi, editpanel_dn,"overbutton");
+ overwrite_data = new_button("overwrite.png", editpanel_up, editpanel_hi, editpanel_dn,"overwritebutton");
new_button("paste.png", editpanel_up, editpanel_hi, editpanel_dn, "paste");
new_button("redo.png", editpanel_up, editpanel_hi, editpanel_dn, "redo");
new_button("right_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "right_justify");
- splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn);
+ splice_data = new_button("splice.png", editpanel_up, editpanel_hi, editpanel_dn,"splicebutton");
new_button("toclip.png", editpanel_up, editpanel_hi, editpanel_dn, "toclip");
new_button("goto.png", editpanel_up, editpanel_hi, editpanel_dn, "goto");
new_button("top_justify.png", editpanel_up, editpanel_hi, editpanel_dn, "top_justify");