diff options
Diffstat (limited to 'images')
145 files changed, 240 insertions, 0 deletions
diff --git a/images/arrow_down.bmp b/images/arrow_down.bmp Binary files differnew file mode 100644 index 00000000..9745bd9a --- /dev/null +++ b/images/arrow_down.bmp diff --git a/images/arrow_left.bmp b/images/arrow_left.bmp Binary files differnew file mode 100644 index 00000000..1a2a9a9d --- /dev/null +++ b/images/arrow_left.bmp diff --git a/images/arrow_right.bmp b/images/arrow_right.bmp Binary files differnew file mode 100644 index 00000000..fa9be65b --- /dev/null +++ b/images/arrow_right.bmp diff --git a/images/arrow_up.bmp b/images/arrow_up.bmp Binary files differnew file mode 100644 index 00000000..3f6282b2 --- /dev/null +++ b/images/arrow_up.bmp diff --git a/images/bevel.bmp b/images/bevel.bmp Binary files differnew file mode 100644 index 00000000..758cae75 --- /dev/null +++ b/images/bevel.bmp diff --git a/images/bookmark_16.bmp b/images/bookmark_16.bmp Binary files differnew file mode 100644 index 00000000..44456955 --- /dev/null +++ b/images/bookmark_16.bmp diff --git a/images/btn_cancel_16.bmp b/images/btn_cancel_16.bmp Binary files differnew file mode 100644 index 00000000..5a92a713 --- /dev/null +++ b/images/btn_cancel_16.bmp diff --git a/images/btn_close_16.bmp b/images/btn_close_16.bmp Binary files differnew file mode 100644 index 00000000..e3e355c3 --- /dev/null +++ b/images/btn_close_16.bmp diff --git a/images/btn_ok_16.bmp b/images/btn_ok_16.bmp Binary files differnew file mode 100644 index 00000000..b91d982e --- /dev/null +++ b/images/btn_ok_16.bmp diff --git a/images/checkboxes.bmp b/images/checkboxes.bmp Binary files differnew file mode 100644 index 00000000..f7d5f44d --- /dev/null +++ b/images/checkboxes.bmp diff --git a/images/choice_no_16.bmp b/images/choice_no_16.bmp Binary files differnew file mode 100644 index 00000000..6d964f3c --- /dev/null +++ b/images/choice_no_16.bmp diff --git a/images/choice_yes_16.bmp b/images/choice_yes_16.bmp Binary files differnew file mode 100644 index 00000000..10595f88 --- /dev/null +++ b/images/choice_yes_16.bmp diff --git a/images/constructor_16.bmp b/images/constructor_16.bmp Binary files differdeleted file mode 100644 index 992fe262..00000000 --- a/images/constructor_16.bmp +++ /dev/null diff --git a/images/destructor_16.bmp b/images/destructor_16.bmp Binary files differdeleted file mode 100644 index 0f0d0c2b..00000000 --- a/images/destructor_16.bmp +++ /dev/null diff --git a/images/dialog_confirmation_32.bmp b/images/dialog_confirmation_32.bmp Binary files differnew file mode 100644 index 00000000..7cac692a --- /dev/null +++ b/images/dialog_confirmation_32.bmp diff --git a/images/dialog_error_32.bmp b/images/dialog_error_32.bmp Binary files differnew file mode 100644 index 00000000..c540509d --- /dev/null +++ b/images/dialog_error_32.bmp diff --git a/images/dialog_information_32.bmp b/images/dialog_information_32.bmp Binary files differnew file mode 100644 index 00000000..1e36b1d4 --- /dev/null +++ b/images/dialog_information_32.bmp diff --git a/images/dialog_warning_32.bmp b/images/dialog_warning_32.bmp Binary files differnew file mode 100644 index 00000000..f643d0bc --- /dev/null +++ b/images/dialog_warning_32.bmp diff --git a/images/document.bmp b/images/document.bmp Binary files differnew file mode 100644 index 00000000..eb3925ba --- /dev/null +++ b/images/document.bmp diff --git a/images/edit.bmp b/images/edit.bmp Binary files differnew file mode 100644 index 00000000..ddfed2b2 --- /dev/null +++ b/images/edit.bmp diff --git a/images/edit_copy_16.bmp b/images/edit_copy_16.bmp Binary files differnew file mode 100644 index 00000000..532a071f --- /dev/null +++ b/images/edit_copy_16.bmp diff --git a/images/edit_cut_16.bmp b/images/edit_cut_16.bmp Binary files differnew file mode 100644 index 00000000..69829380 --- /dev/null +++ b/images/edit_cut_16.bmp diff --git a/images/edit_delete_16.bmp b/images/edit_delete_16.bmp Binary files differnew file mode 100644 index 00000000..d7a93e8e --- /dev/null +++ b/images/edit_delete_16.bmp diff --git a/images/edit_paste_16.bmp b/images/edit_paste_16.bmp Binary files differnew file mode 100644 index 00000000..98ce7cff --- /dev/null +++ b/images/edit_paste_16.bmp diff --git a/images/ellipse.bmp b/images/ellipse.bmp Binary files differnew file mode 100644 index 00000000..06fd71fe --- /dev/null +++ b/images/ellipse.bmp diff --git a/images/executable_16.bmp b/images/executable_16.bmp Binary files differnew file mode 100644 index 00000000..70bf7a05 --- /dev/null +++ b/images/executable_16.bmp diff --git a/images/filegrid/1_readme.txt b/images/filegrid/1_readme.txt new file mode 100644 index 00000000..0635bd85 --- /dev/null +++ b/images/filegrid/1_readme.txt @@ -0,0 +1,11 @@ + +These images are for future use. I would like to expand the +filegrid class to support image types instead of the standard +single icon for all files. + +At the momement fpGUI doesn't support PNG images. So they might +need to be converted to BMP before we can use them. Alternatively +PNG image support must be added to fpGUI. + +Graeme. + diff --git a/images/filegrid/page_white.bmp b/images/filegrid/page_white.bmp Binary files differnew file mode 100644 index 00000000..8168ec7e --- /dev/null +++ b/images/filegrid/page_white.bmp diff --git a/images/filegrid/page_white.png b/images/filegrid/page_white.png Binary files differnew file mode 100644 index 00000000..8b8b1ca0 --- /dev/null +++ b/images/filegrid/page_white.png diff --git a/images/filegrid/page_white_acrobat.png b/images/filegrid/page_white_acrobat.png Binary files differnew file mode 100644 index 00000000..8f8095e4 --- /dev/null +++ b/images/filegrid/page_white_acrobat.png diff --git a/images/filegrid/page_white_actionscript.png b/images/filegrid/page_white_actionscript.png Binary files differnew file mode 100644 index 00000000..159b2407 --- /dev/null +++ b/images/filegrid/page_white_actionscript.png diff --git a/images/filegrid/page_white_add.png b/images/filegrid/page_white_add.png Binary files differnew file mode 100644 index 00000000..aa23dde3 --- /dev/null +++ b/images/filegrid/page_white_add.png diff --git a/images/filegrid/page_white_c.png b/images/filegrid/page_white_c.png Binary files differnew file mode 100644 index 00000000..34a05ccc --- /dev/null +++ b/images/filegrid/page_white_c.png diff --git a/images/filegrid/page_white_camera.png b/images/filegrid/page_white_camera.png Binary files differnew file mode 100644 index 00000000..f501a593 --- /dev/null +++ b/images/filegrid/page_white_camera.png diff --git a/images/filegrid/page_white_cd.png b/images/filegrid/page_white_cd.png Binary files differnew file mode 100644 index 00000000..848bdaf3 --- /dev/null +++ b/images/filegrid/page_white_cd.png diff --git a/images/filegrid/page_white_code.png b/images/filegrid/page_white_code.png Binary files differnew file mode 100644 index 00000000..0c76bd12 --- /dev/null +++ b/images/filegrid/page_white_code.png diff --git a/images/filegrid/page_white_code_red.png b/images/filegrid/page_white_code_red.png Binary files differnew file mode 100644 index 00000000..87a69145 --- /dev/null +++ b/images/filegrid/page_white_code_red.png diff --git a/images/filegrid/page_white_coldfusion.png b/images/filegrid/page_white_coldfusion.png Binary files differnew file mode 100644 index 00000000..c66011fb --- /dev/null +++ b/images/filegrid/page_white_coldfusion.png diff --git a/images/filegrid/page_white_compressed.png b/images/filegrid/page_white_compressed.png Binary files differnew file mode 100644 index 00000000..2b6b1007 --- /dev/null +++ b/images/filegrid/page_white_compressed.png diff --git a/images/filegrid/page_white_copy.png b/images/filegrid/page_white_copy.png Binary files differnew file mode 100644 index 00000000..a9f31a27 --- /dev/null +++ b/images/filegrid/page_white_copy.png diff --git a/images/filegrid/page_white_cplusplus.png b/images/filegrid/page_white_cplusplus.png Binary files differnew file mode 100644 index 00000000..a87cf847 --- /dev/null +++ b/images/filegrid/page_white_cplusplus.png diff --git a/images/filegrid/page_white_csharp.png b/images/filegrid/page_white_csharp.png Binary files differnew file mode 100644 index 00000000..ffb8fc93 --- /dev/null +++ b/images/filegrid/page_white_csharp.png diff --git a/images/filegrid/page_white_cup.png b/images/filegrid/page_white_cup.png Binary files differnew file mode 100644 index 00000000..0a7d6f4a --- /dev/null +++ b/images/filegrid/page_white_cup.png diff --git a/images/filegrid/page_white_database.png b/images/filegrid/page_white_database.png Binary files differnew file mode 100644 index 00000000..bddba1f9 --- /dev/null +++ b/images/filegrid/page_white_database.png diff --git a/images/filegrid/page_white_delete.png b/images/filegrid/page_white_delete.png Binary files differnew file mode 100644 index 00000000..af1ecaf2 --- /dev/null +++ b/images/filegrid/page_white_delete.png diff --git a/images/filegrid/page_white_dvd.png b/images/filegrid/page_white_dvd.png Binary files differnew file mode 100644 index 00000000..4cc537af --- /dev/null +++ b/images/filegrid/page_white_dvd.png diff --git a/images/filegrid/page_white_edit.png b/images/filegrid/page_white_edit.png Binary files differnew file mode 100644 index 00000000..b93e7760 --- /dev/null +++ b/images/filegrid/page_white_edit.png diff --git a/images/filegrid/page_white_error.png b/images/filegrid/page_white_error.png Binary files differnew file mode 100644 index 00000000..9fc5a0a1 --- /dev/null +++ b/images/filegrid/page_white_error.png diff --git a/images/filegrid/page_white_excel.png b/images/filegrid/page_white_excel.png Binary files differnew file mode 100644 index 00000000..b977d7e5 --- /dev/null +++ b/images/filegrid/page_white_excel.png diff --git a/images/filegrid/page_white_find.png b/images/filegrid/page_white_find.png Binary files differnew file mode 100644 index 00000000..58184363 --- /dev/null +++ b/images/filegrid/page_white_find.png diff --git a/images/filegrid/page_white_flash.png b/images/filegrid/page_white_flash.png Binary files differnew file mode 100644 index 00000000..5769120b --- /dev/null +++ b/images/filegrid/page_white_flash.png diff --git a/images/filegrid/page_white_freehand.png b/images/filegrid/page_white_freehand.png Binary files differnew file mode 100644 index 00000000..8d719df5 --- /dev/null +++ b/images/filegrid/page_white_freehand.png diff --git a/images/filegrid/page_white_gear.png b/images/filegrid/page_white_gear.png Binary files differnew file mode 100644 index 00000000..106f5aa3 --- /dev/null +++ b/images/filegrid/page_white_gear.png diff --git a/images/filegrid/page_white_get.png b/images/filegrid/page_white_get.png Binary files differnew file mode 100644 index 00000000..e4a1ecba --- /dev/null +++ b/images/filegrid/page_white_get.png diff --git a/images/filegrid/page_white_go.png b/images/filegrid/page_white_go.png Binary files differnew file mode 100644 index 00000000..7e62a924 --- /dev/null +++ b/images/filegrid/page_white_go.png diff --git a/images/filegrid/page_white_h.png b/images/filegrid/page_white_h.png Binary files differnew file mode 100644 index 00000000..e902abb0 --- /dev/null +++ b/images/filegrid/page_white_h.png diff --git a/images/filegrid/page_white_horizontal.png b/images/filegrid/page_white_horizontal.png Binary files differnew file mode 100644 index 00000000..1d2d0a49 --- /dev/null +++ b/images/filegrid/page_white_horizontal.png diff --git a/images/filegrid/page_white_key.png b/images/filegrid/page_white_key.png Binary files differnew file mode 100644 index 00000000..d6164845 --- /dev/null +++ b/images/filegrid/page_white_key.png diff --git a/images/filegrid/page_white_lightning.png b/images/filegrid/page_white_lightning.png Binary files differnew file mode 100644 index 00000000..7215d1e8 --- /dev/null +++ b/images/filegrid/page_white_lightning.png diff --git a/images/filegrid/page_white_link.png b/images/filegrid/page_white_link.png Binary files differnew file mode 100644 index 00000000..bf7bd1c9 --- /dev/null +++ b/images/filegrid/page_white_link.png diff --git a/images/filegrid/page_white_magnify.png b/images/filegrid/page_white_magnify.png Binary files differnew file mode 100644 index 00000000..f6b74cc4 --- /dev/null +++ b/images/filegrid/page_white_magnify.png diff --git a/images/filegrid/page_white_medal.png b/images/filegrid/page_white_medal.png Binary files differnew file mode 100644 index 00000000..d3fffb6d --- /dev/null +++ b/images/filegrid/page_white_medal.png diff --git a/images/filegrid/page_white_office.png b/images/filegrid/page_white_office.png Binary files differnew file mode 100644 index 00000000..a65bcb3e --- /dev/null +++ b/images/filegrid/page_white_office.png diff --git a/images/filegrid/page_white_paint.png b/images/filegrid/page_white_paint.png Binary files differnew file mode 100644 index 00000000..23a37b89 --- /dev/null +++ b/images/filegrid/page_white_paint.png diff --git a/images/filegrid/page_white_paintbrush.png b/images/filegrid/page_white_paintbrush.png Binary files differnew file mode 100644 index 00000000..f907e44b --- /dev/null +++ b/images/filegrid/page_white_paintbrush.png diff --git a/images/filegrid/page_white_paste.png b/images/filegrid/page_white_paste.png Binary files differnew file mode 100644 index 00000000..5b2cbb3f --- /dev/null +++ b/images/filegrid/page_white_paste.png diff --git a/images/filegrid/page_white_php.png b/images/filegrid/page_white_php.png Binary files differnew file mode 100644 index 00000000..7868a259 --- /dev/null +++ b/images/filegrid/page_white_php.png diff --git a/images/filegrid/page_white_picture.png b/images/filegrid/page_white_picture.png Binary files differnew file mode 100644 index 00000000..134b6693 --- /dev/null +++ b/images/filegrid/page_white_picture.png diff --git a/images/filegrid/page_white_powerpoint.png b/images/filegrid/page_white_powerpoint.png Binary files differnew file mode 100644 index 00000000..c4eff038 --- /dev/null +++ b/images/filegrid/page_white_powerpoint.png diff --git a/images/filegrid/page_white_put.png b/images/filegrid/page_white_put.png Binary files differnew file mode 100644 index 00000000..884ffd6f --- /dev/null +++ b/images/filegrid/page_white_put.png diff --git a/images/filegrid/page_white_ruby.png b/images/filegrid/page_white_ruby.png Binary files differnew file mode 100644 index 00000000..f59b7c43 --- /dev/null +++ b/images/filegrid/page_white_ruby.png diff --git a/images/filegrid/page_white_stack.png b/images/filegrid/page_white_stack.png Binary files differnew file mode 100644 index 00000000..44084add --- /dev/null +++ b/images/filegrid/page_white_stack.png diff --git a/images/filegrid/page_white_star.png b/images/filegrid/page_white_star.png Binary files differnew file mode 100644 index 00000000..3a1441c9 --- /dev/null +++ b/images/filegrid/page_white_star.png diff --git a/images/filegrid/page_white_swoosh.png b/images/filegrid/page_white_swoosh.png Binary files differnew file mode 100644 index 00000000..e7708292 --- /dev/null +++ b/images/filegrid/page_white_swoosh.png diff --git a/images/filegrid/page_white_text.png b/images/filegrid/page_white_text.png Binary files differnew file mode 100644 index 00000000..813f712f --- /dev/null +++ b/images/filegrid/page_white_text.png diff --git a/images/filegrid/page_white_text_width.png b/images/filegrid/page_white_text_width.png Binary files differnew file mode 100644 index 00000000..d9cf1325 --- /dev/null +++ b/images/filegrid/page_white_text_width.png diff --git a/images/filegrid/page_white_tux.png b/images/filegrid/page_white_tux.png Binary files differnew file mode 100644 index 00000000..52699bfe --- /dev/null +++ b/images/filegrid/page_white_tux.png diff --git a/images/filegrid/page_white_vector.png b/images/filegrid/page_white_vector.png Binary files differnew file mode 100644 index 00000000..4a05955b --- /dev/null +++ b/images/filegrid/page_white_vector.png diff --git a/images/filegrid/page_white_visualstudio.png b/images/filegrid/page_white_visualstudio.png Binary files differnew file mode 100644 index 00000000..a0a433df --- /dev/null +++ b/images/filegrid/page_white_visualstudio.png diff --git a/images/filegrid/page_white_width.png b/images/filegrid/page_white_width.png Binary files differnew file mode 100644 index 00000000..1eb88094 --- /dev/null +++ b/images/filegrid/page_white_width.png diff --git a/images/filegrid/page_white_word.png b/images/filegrid/page_white_word.png Binary files differnew file mode 100644 index 00000000..ae8ecbf4 --- /dev/null +++ b/images/filegrid/page_white_word.png diff --git a/images/filegrid/page_white_world.png b/images/filegrid/page_white_world.png Binary files differnew file mode 100644 index 00000000..6ed2490e --- /dev/null +++ b/images/filegrid/page_white_world.png diff --git a/images/filegrid/page_white_wrench.png b/images/filegrid/page_white_wrench.png Binary files differnew file mode 100644 index 00000000..fecadd08 --- /dev/null +++ b/images/filegrid/page_white_wrench.png diff --git a/images/filegrid/page_white_zip.png b/images/filegrid/page_white_zip.png Binary files differnew file mode 100644 index 00000000..fd4bbccd --- /dev/null +++ b/images/filegrid/page_white_zip.png diff --git a/images/folder_16.bmp b/images/folder_16.bmp Binary files differnew file mode 100644 index 00000000..5e49bf7c --- /dev/null +++ b/images/folder_16.bmp diff --git a/images/folder_home_16.bmp b/images/folder_home_16.bmp Binary files differnew file mode 100644 index 00000000..8e00195d --- /dev/null +++ b/images/folder_home_16.bmp diff --git a/images/folder_new_16.bmp b/images/folder_new_16.bmp Binary files differnew file mode 100644 index 00000000..a846a032 --- /dev/null +++ b/images/folder_new_16.bmp diff --git a/images/folder_open_16.bmp b/images/folder_open_16.bmp Binary files differnew file mode 100644 index 00000000..b4cca24c --- /dev/null +++ b/images/folder_open_16.bmp diff --git a/images/folder_open_file_16.bmp b/images/folder_open_file_16.bmp Binary files differnew file mode 100644 index 00000000..c4405ca7 --- /dev/null +++ b/images/folder_open_file_16.bmp diff --git a/images/folder_up_16.bmp b/images/folder_up_16.bmp Binary files differnew file mode 100644 index 00000000..1edf959f --- /dev/null +++ b/images/folder_up_16.bmp diff --git a/images/font_16.bmp b/images/font_16.bmp Binary files differnew file mode 100644 index 00000000..3a7bcb25 --- /dev/null +++ b/images/font_16.bmp diff --git a/images/function_16.bmp b/images/function_16.bmp Binary files differdeleted file mode 100644 index 8929a90b..00000000 --- a/images/function_16.bmp +++ /dev/null diff --git a/images/gears_16.bmp b/images/gears_16.bmp Binary files differdeleted file mode 100644 index c9633504..00000000 --- a/images/gears_16.bmp +++ /dev/null diff --git a/images/gutter_vertical.bmp b/images/gutter_vertical.bmp Binary files differdeleted file mode 100644 index 882e2f34..00000000 --- a/images/gutter_vertical.bmp +++ /dev/null diff --git a/images/help_16.bmp b/images/help_16.bmp Binary files differnew file mode 100644 index 00000000..1c4fdcd6 --- /dev/null +++ b/images/help_16.bmp diff --git a/images/hidden.bmp b/images/hidden.bmp Binary files differnew file mode 100644 index 00000000..c5fe782c --- /dev/null +++ b/images/hidden.bmp diff --git a/images/link.bmp b/images/link.bmp Binary files differnew file mode 100644 index 00000000..8331e9bd --- /dev/null +++ b/images/link.bmp diff --git a/images/list_add_16.bmp b/images/list_add_16.bmp Binary files differnew file mode 100644 index 00000000..974167a7 --- /dev/null +++ b/images/list_add_16.bmp diff --git a/images/list_remove_16.bmp b/images/list_remove_16.bmp Binary files differnew file mode 100644 index 00000000..b2e7a4ad --- /dev/null +++ b/images/list_remove_16.bmp diff --git a/images/menu_check_16.bmp b/images/menu_check_16.bmp Binary files differnew file mode 100644 index 00000000..7fec8e3c --- /dev/null +++ b/images/menu_check_16.bmp diff --git a/images/menu_exit_16.bmp b/images/menu_exit_16.bmp Binary files differnew file mode 100644 index 00000000..de9d4b2e --- /dev/null +++ b/images/menu_exit_16.bmp diff --git a/images/menu_preferences_16.bmp b/images/menu_preferences_16.bmp Binary files differnew file mode 100644 index 00000000..1360fb22 --- /dev/null +++ b/images/menu_preferences_16.bmp diff --git a/images/menu_quit_16.bmp b/images/menu_quit_16.bmp Binary files differnew file mode 100644 index 00000000..100a5b21 --- /dev/null +++ b/images/menu_quit_16.bmp diff --git a/images/menu_save_16.bmp b/images/menu_save_16.bmp Binary files differnew file mode 100644 index 00000000..9e58b661 --- /dev/null +++ b/images/menu_save_16.bmp diff --git a/images/menu_save_all_16.bmp b/images/menu_save_all_16.bmp Binary files differnew file mode 100644 index 00000000..62ed2104 --- /dev/null +++ b/images/menu_save_all_16.bmp diff --git a/images/menu_saveas_16.bmp b/images/menu_saveas_16.bmp Binary files differnew file mode 100644 index 00000000..fb89079f --- /dev/null +++ b/images/menu_saveas_16.bmp diff --git a/images/radiobuttons.bmp b/images/radiobuttons.bmp Binary files differnew file mode 100644 index 00000000..6523aa61 --- /dev/null +++ b/images/radiobuttons.bmp diff --git a/images/refresh_16.bmp b/images/refresh_16.bmp Binary files differnew file mode 100644 index 00000000..b9530812 --- /dev/null +++ b/images/refresh_16.bmp diff --git a/images/search_16.bmp b/images/search_16.bmp Binary files differnew file mode 100644 index 00000000..2b0d4302 --- /dev/null +++ b/images/search_16.bmp diff --git a/images/stdimg_update.sh b/images/stdimg_update.sh new file mode 100755 index 00000000..0feec995 --- /dev/null +++ b/images/stdimg_update.sh @@ -0,0 +1,3 @@ +#!/bin/sh +chmod +x updatestdimgs +./updatestdimgs -p stdimg > ../src/corelib/stdimages.inc diff --git a/images/stdimg_updatew.bat b/images/stdimg_updatew.bat new file mode 100755 index 00000000..aee458b9 --- /dev/null +++ b/images/stdimg_updatew.bat @@ -0,0 +1,3 @@ +if not exist updatestdimgs.exe fpc -O2 -Xs -XX -Sh -FUunits -oupdatestdimgs.exe updatestdimgs.pas +if exist updatestdimgs.exe updatestdimgs.exe --prefix=stdimg > ../src/corelib/stdimages.inc +pause diff --git a/images/themes/luna/arrows.bmp b/images/themes/luna/arrows.bmp Binary files differnew file mode 100644 index 00000000..758442fa --- /dev/null +++ b/images/themes/luna/arrows.bmp diff --git a/images/themes/luna/button.bmp b/images/themes/luna/button.bmp Binary files differnew file mode 100644 index 00000000..8ae427cf --- /dev/null +++ b/images/themes/luna/button.bmp diff --git a/images/themes/luna/checkbox.bmp b/images/themes/luna/checkbox.bmp Binary files differnew file mode 100644 index 00000000..dca4a692 --- /dev/null +++ b/images/themes/luna/checkbox.bmp diff --git a/images/themes/luna/combobox.bmp b/images/themes/luna/combobox.bmp Binary files differnew file mode 100644 index 00000000..9b59abcc --- /dev/null +++ b/images/themes/luna/combobox.bmp diff --git a/images/themes/luna/edittext.bmp b/images/themes/luna/edittext.bmp Binary files differnew file mode 100644 index 00000000..efa8981e --- /dev/null +++ b/images/themes/luna/edittext.bmp diff --git a/images/themes/luna/groupbox.bmp b/images/themes/luna/groupbox.bmp Binary files differnew file mode 100644 index 00000000..60975283 --- /dev/null +++ b/images/themes/luna/groupbox.bmp diff --git a/images/themes/luna/header.bmp b/images/themes/luna/header.bmp Binary files differnew file mode 100644 index 00000000..d613a632 --- /dev/null +++ b/images/themes/luna/header.bmp diff --git a/images/themes/luna/progressbar.bmp b/images/themes/luna/progressbar.bmp Binary files differnew file mode 100644 index 00000000..7de5143e --- /dev/null +++ b/images/themes/luna/progressbar.bmp diff --git a/images/themes/luna/radiobutton.bmp b/images/themes/luna/radiobutton.bmp Binary files differnew file mode 100644 index 00000000..c66df229 --- /dev/null +++ b/images/themes/luna/radiobutton.bmp diff --git a/images/themes/luna/scrollbar.bmp b/images/themes/luna/scrollbar.bmp Binary files differnew file mode 100644 index 00000000..11786b71 --- /dev/null +++ b/images/themes/luna/scrollbar.bmp diff --git a/images/themes/luna/tabbody.bmp b/images/themes/luna/tabbody.bmp Binary files differnew file mode 100644 index 00000000..65d5890c --- /dev/null +++ b/images/themes/luna/tabbody.bmp diff --git a/images/themes/luna/tabs.bmp b/images/themes/luna/tabs.bmp Binary files differnew file mode 100644 index 00000000..ecb563d2 --- /dev/null +++ b/images/themes/luna/tabs.bmp diff --git a/images/themes/luna/toolbarbutton.bmp b/images/themes/luna/toolbarbutton.bmp Binary files differnew file mode 100644 index 00000000..d507fc19 --- /dev/null +++ b/images/themes/luna/toolbarbutton.bmp diff --git a/images/themes/luna/toolbarsep.bmp b/images/themes/luna/toolbarsep.bmp Binary files differnew file mode 100644 index 00000000..50cc567a --- /dev/null +++ b/images/themes/luna/toolbarsep.bmp diff --git a/images/themes/luna/trackbar.bmp b/images/themes/luna/trackbar.bmp Binary files differnew file mode 100644 index 00000000..1b47eb0f --- /dev/null +++ b/images/themes/luna/trackbar.bmp diff --git a/images/themes/silver/arrows.bmp b/images/themes/silver/arrows.bmp Binary files differnew file mode 100644 index 00000000..897199a8 --- /dev/null +++ b/images/themes/silver/arrows.bmp diff --git a/images/themes/silver/button.bmp b/images/themes/silver/button.bmp Binary files differnew file mode 100644 index 00000000..cca0f695 --- /dev/null +++ b/images/themes/silver/button.bmp diff --git a/images/themes/silver/checkbox.bmp b/images/themes/silver/checkbox.bmp Binary files differnew file mode 100644 index 00000000..dca4a692 --- /dev/null +++ b/images/themes/silver/checkbox.bmp diff --git a/images/themes/silver/checkedmenu.bmp b/images/themes/silver/checkedmenu.bmp Binary files differnew file mode 100644 index 00000000..3152efc3 --- /dev/null +++ b/images/themes/silver/checkedmenu.bmp diff --git a/images/themes/silver/checkedmenu.png b/images/themes/silver/checkedmenu.png Binary files differnew file mode 100644 index 00000000..a06e1182 --- /dev/null +++ b/images/themes/silver/checkedmenu.png diff --git a/images/themes/silver/combobox.bmp b/images/themes/silver/combobox.bmp Binary files differnew file mode 100644 index 00000000..35ab06bd --- /dev/null +++ b/images/themes/silver/combobox.bmp diff --git a/images/themes/silver/edittext.bmp b/images/themes/silver/edittext.bmp Binary files differnew file mode 100644 index 00000000..efa8981e --- /dev/null +++ b/images/themes/silver/edittext.bmp diff --git a/images/themes/silver/groupbox.bmp b/images/themes/silver/groupbox.bmp Binary files differnew file mode 100644 index 00000000..60975283 --- /dev/null +++ b/images/themes/silver/groupbox.bmp diff --git a/images/themes/silver/header.bmp b/images/themes/silver/header.bmp Binary files differnew file mode 100644 index 00000000..68337a81 --- /dev/null +++ b/images/themes/silver/header.bmp diff --git a/images/themes/silver/progressbar.bmp b/images/themes/silver/progressbar.bmp Binary files differnew file mode 100644 index 00000000..7de5143e --- /dev/null +++ b/images/themes/silver/progressbar.bmp diff --git a/images/themes/silver/radiobutton.bmp b/images/themes/silver/radiobutton.bmp Binary files differnew file mode 100644 index 00000000..966ef7c4 --- /dev/null +++ b/images/themes/silver/radiobutton.bmp diff --git a/images/themes/silver/scrollbar.bmp b/images/themes/silver/scrollbar.bmp Binary files differnew file mode 100644 index 00000000..1bac337e --- /dev/null +++ b/images/themes/silver/scrollbar.bmp diff --git a/images/themes/silver/tabbody.bmp b/images/themes/silver/tabbody.bmp Binary files differnew file mode 100644 index 00000000..6d57593b --- /dev/null +++ b/images/themes/silver/tabbody.bmp diff --git a/images/themes/silver/tabs.bmp b/images/themes/silver/tabs.bmp Binary files differnew file mode 100644 index 00000000..c9351a13 --- /dev/null +++ b/images/themes/silver/tabs.bmp diff --git a/images/themes/silver/toolbarbutton.bmp b/images/themes/silver/toolbarbutton.bmp Binary files differnew file mode 100644 index 00000000..d507fc19 --- /dev/null +++ b/images/themes/silver/toolbarbutton.bmp diff --git a/images/themes/silver/toolbarsep.bmp b/images/themes/silver/toolbarsep.bmp Binary files differnew file mode 100644 index 00000000..50cc567a --- /dev/null +++ b/images/themes/silver/toolbarsep.bmp diff --git a/images/themes/silver/trackbar.bmp b/images/themes/silver/trackbar.bmp Binary files differnew file mode 100644 index 00000000..b7c3018e --- /dev/null +++ b/images/themes/silver/trackbar.bmp diff --git a/images/themes/vista/button.bmp b/images/themes/vista/button.bmp Binary files differnew file mode 100644 index 00000000..5093c350 --- /dev/null +++ b/images/themes/vista/button.bmp diff --git a/images/updatestdimgs.pas b/images/updatestdimgs.pas new file mode 100644 index 00000000..339ef1c9 --- /dev/null +++ b/images/updatestdimgs.pas @@ -0,0 +1,223 @@ +{ + This program searches for *.bmp files in the current directory and + outputs to stdout the bmp files found as byte array constants. + + Here are a few usage examples: + + 1) + ./updatestdimgs > ../src/corelib/stdimages.inc + + This takes whatever .bmp file are in the current directory. Creates + byte array constants and outputs them to an include file. + + + 2) + ./updatestdimgs -v -u myimages -m 0,0 -p myapp > /tmp/myimages.pas + + This takes all .bmp images in current directory. (-v) Produces + verbose output at images are processed. (-u) generate a complete + unit for the images including registration code. (-m) if the images + have a transparency mask, what pixel should be used by default as + the transparency color. (-p) Use the "myapp" as the prefix to all + image constants. And lastly take all the stdout output and pipe it + into a file called myimages.pas + + PS: + -o for the output file parameter still has some bugs, so I would + suggest you use piping (.... > outfile.inc) instead. + + + 3) + ./updatestdimgs -v -i themes/silver/ > /tmp/mysilvertheme.inc + + This takes all .bmp files in the themes/silver/ directory and generates + byte array constants using the default "usr" prefix and outputs to + stdout. We then pipe the output to mysilvertheme.inc file. + +} +program updatestdimgs; + +{$IFDEF FPC} + {$mode delphi}{$H+} +{$ELSE} + {$APPTYPE CONSOLE} +{$ENDIF} + +uses + SysUtils, + CustApp; + +const +{$ifdef unix} + bin2obj = 'bin2obj'; +{$else} + bin2obj = 'bin2obj.exe'; +{$endif} + +type + TConvertApp = class(TCustomApplication) + private + FBeVerbose: Boolean; + FBinary: string; + FOutputFile: string; + FInputDir: string; + FPrefix: string; + FUnitName: string; + FUnitCode: string; + FMaskSamplePos: string; + public + procedure Usage; + procedure Verbose(Msg: string; Args: array of const); + procedure ConvertImage(FN: string); + procedure ConvertImages; + function ProcessCommandLine: Boolean; + procedure DoRun; override; + property BeVerbose: Boolean read FBeVerbose; + property InputDir: string read FInputDir; + property OutputFile: string read FOutputFile; + property Prefix: string read FPrefix; + end; + + + procedure TConvertApp.Usage; + begin + Writeln('Usage : ', ExtractFileName(ParamStr(0))); + Writeln(' -h --help This help screen'); + Writeln(' -i --inputdir=NNN Search files in dir NNN'); + Writeln(' -o --output=NNN Write output in file NNN'); + Writeln(' -p --prefix=NNN Prefix constant names with NNN'); + Writeln(' -u --unit=NNN Create a complete unit named NNN'); + Writeln(' -m --mask=X,Y When using -u switch, set the position '); + Writeln(' of the pixel containing transparent color'); + Writeln(' -v --verbose Be verbose'); + end; + + procedure TConvertApp.Verbose(Msg: string; Args: array of const); + begin + if BeVerbose then + Writeln(StdErr, Format(Msg, Args)); + end; + + procedure TConvertApp.ConvertImage(FN: string); + var + S: string; + iname: string; + begin + Verbose('Converting image : %s', [FN]); + iname := ChangeFileExt(FN, ''); + S := FPrefix + '_' + iname; + if (FOutputFile <> '') then + ExecuteProcess(FBinary, ['-o', FOutputFile, '-c', S, FN]) + else + ExecuteProcess(FBinary, ['-c', S, FN]); + + if FUnitName <> '' then + FUnitCode := FUnitCode + + ' fpgImages.AddMaskedBMP(' +LineEnding+ + ' '''+FPrefix+'.'+iname+''',' +LineEnding+ + ' @'+S+',' +LineEnding+ + ' sizeof('+S+'), '+FMaskSamplePos+');' +LineEnding+LineEnding; + end; + + function TConvertApp.ProcessCommandLine: Boolean; + const + Longopts: array[1..7] of string = ( + 'help', 'verbose', 'inputdir:', 'output:', 'prefix:', 'unit:', 'mask:'); + var + S: string; + begin + S := CheckOptions('hvi:o:p:u:m:', Longopts); + Result := (S = '') and not HasOption('h', 'help'); + if not Result then + begin + if (S <> '') then + Writeln(StdErr, 'Error in options: ', S); + Usage; + Exit; + end; + FBeVerbose := HasOption('v', 'verbose'); + if HasOption('i', 'inputdir') then + FInputDir := GetOptionValue('i', 'inputdir'); + if HasOption('o', 'output') then + FOutputFile := GetOptionValue('o', 'output'); + if HasOption('p', 'prefix') then + FPrefix := GetOptionValue('p', 'prefix') + else + FPrefix := 'usr'; + + if HasOption('u', 'unit') then + if FOutputFile <> '' then + FUnitName := ChangeFileExt(FOutputFile, '') + else + FUnitName := GetOptionValue('u', 'unit'); + + if HasOption('m', 'mask') then + FMaskSamplePos := GetOptionValue('m', 'mask') + else + FMaskSamplePos := '0,0'; + end; + + procedure TConvertApp.DoRun; + begin + StopOnException := True; + if ProcessCommandLine then + ConvertImages; + Terminate; + end; + + procedure TConvertApp.ConvertImages; + var + Info: TSearchRec; + f: TextFile; + begin + if (FBinary = '') then + FBinary := FileSearch(bin2obj, GetEnvironmentVariable('PATH')); + if (FInputDir <> '') then + FInputDir := IncludeTrailingPathDelimiter(FInputDir); + + if FUnitName <> '' then + begin + FUnitCode := 'unit '+ FUnitName +';' +LineEnding+LineEnding+ + '{$mode objfpc}{$H+}' +LineEnding+LineEnding+ + 'interface' +LineEnding+LineEnding+ + 'uses' +LineEnding+ + ' fpg_main;' +LineEnding+LineEnding+ + 'procedure InitializeCustomImages;'+LineEnding+LineEnding+ + 'implementation'; + AssignFile(f, FOutputFile); + Rewrite(f); + WriteLn(f, FUnitCode); + CloseFile(f); + FUnitCode := LineEnding+ + 'procedure InitializeCustomImages;'+LineEnding+ + 'begin' +LineEnding; + end; + + if FindFirst(FInputDir + '*.bmp', faAnyFile, Info) = 0 then + try + repeat + ConvertImage(FInputDir + Info.Name); + until FindNext(Info) <> 0; + finally + FindClose(Info); + end; + + if FUnitName <> '' then + begin + FUnitCode := FUnitCode + 'end;'+LineEnding+LineEnding+'end.'; + Append(f); + WriteLn(f, FUnitCode); + CloseFile(f); + end; + end; + +begin + with TConvertApp.Create(nil) do + try + Run + finally + Free; + end; +end. + + |