summaryrefslogtreecommitdiff
path: root/images
diff options
context:
space:
mode:
Diffstat (limited to 'images')
-rw-r--r--images/arrow_down.bmpbin0 -> 150 bytes
-rw-r--r--images/arrow_left.bmpbin0 -> 138 bytes
-rw-r--r--images/arrow_right.bmpbin0 -> 138 bytes
-rw-r--r--images/arrow_up.bmpbin0 -> 150 bytes
-rw-r--r--images/bevel.bmpbin0 -> 1710 bytes
-rw-r--r--images/bookmark_16.bmpbin0 -> 822 bytes
-rw-r--r--images/btn_cancel_16.bmpbin0 -> 822 bytes
-rw-r--r--images/btn_close_16.bmpbin0 -> 822 bytes
-rw-r--r--images/btn_ok_16.bmpbin0 -> 822 bytes
-rw-r--r--images/checkboxes.bmpbin0 -> 2602 bytes
-rw-r--r--images/choice_no_16.bmpbin0 -> 822 bytes
-rw-r--r--images/choice_yes_16.bmpbin0 -> 822 bytes
-rw-r--r--images/constructor_16.bmpbin822 -> 0 bytes
-rw-r--r--images/destructor_16.bmpbin822 -> 0 bytes
-rw-r--r--images/dialog_confirmation_32.bmpbin0 -> 3126 bytes
-rw-r--r--images/dialog_error_32.bmpbin0 -> 3126 bytes
-rw-r--r--images/dialog_information_32.bmpbin0 -> 3126 bytes
-rw-r--r--images/dialog_warning_32.bmpbin0 -> 3126 bytes
-rw-r--r--images/document.bmpbin0 -> 1062 bytes
-rw-r--r--images/edit.bmpbin0 -> 822 bytes
-rw-r--r--images/edit_copy_16.bmpbin0 -> 822 bytes
-rw-r--r--images/edit_cut_16.bmpbin0 -> 822 bytes
-rw-r--r--images/edit_delete_16.bmpbin0 -> 822 bytes
-rw-r--r--images/edit_paste_16.bmpbin0 -> 822 bytes
-rw-r--r--images/ellipse.bmpbin0 -> 182 bytes
-rw-r--r--images/executable_16.bmpbin0 -> 822 bytes
-rw-r--r--images/filegrid/1_readme.txt11
-rw-r--r--images/filegrid/page_white.bmpbin0 -> 822 bytes
-rw-r--r--images/filegrid/page_white.pngbin0 -> 294 bytes
-rw-r--r--images/filegrid/page_white_acrobat.pngbin0 -> 591 bytes
-rw-r--r--images/filegrid/page_white_actionscript.pngbin0 -> 664 bytes
-rw-r--r--images/filegrid/page_white_add.pngbin0 -> 512 bytes
-rw-r--r--images/filegrid/page_white_c.pngbin0 -> 587 bytes
-rw-r--r--images/filegrid/page_white_camera.pngbin0 -> 656 bytes
-rw-r--r--images/filegrid/page_white_cd.pngbin0 -> 666 bytes
-rw-r--r--images/filegrid/page_white_code.pngbin0 -> 603 bytes
-rw-r--r--images/filegrid/page_white_code_red.pngbin0 -> 587 bytes
-rw-r--r--images/filegrid/page_white_coldfusion.pngbin0 -> 592 bytes
-rw-r--r--images/filegrid/page_white_compressed.pngbin0 -> 724 bytes
-rw-r--r--images/filegrid/page_white_copy.pngbin0 -> 309 bytes
-rw-r--r--images/filegrid/page_white_cplusplus.pngbin0 -> 621 bytes
-rw-r--r--images/filegrid/page_white_csharp.pngbin0 -> 700 bytes
-rw-r--r--images/filegrid/page_white_cup.pngbin0 -> 639 bytes
-rw-r--r--images/filegrid/page_white_database.pngbin0 -> 579 bytes
-rw-r--r--images/filegrid/page_white_delete.pngbin0 -> 536 bytes
-rw-r--r--images/filegrid/page_white_dvd.pngbin0 -> 638 bytes
-rw-r--r--images/filegrid/page_white_edit.pngbin0 -> 618 bytes
-rw-r--r--images/filegrid/page_white_error.pngbin0 -> 623 bytes
-rw-r--r--images/filegrid/page_white_excel.pngbin0 -> 663 bytes
-rw-r--r--images/filegrid/page_white_find.pngbin0 -> 676 bytes
-rw-r--r--images/filegrid/page_white_flash.pngbin0 -> 582 bytes
-rw-r--r--images/filegrid/page_white_freehand.pngbin0 -> 639 bytes
-rw-r--r--images/filegrid/page_white_gear.pngbin0 -> 402 bytes
-rw-r--r--images/filegrid/page_white_get.pngbin0 -> 516 bytes
-rw-r--r--images/filegrid/page_white_go.pngbin0 -> 612 bytes
-rw-r--r--images/filegrid/page_white_h.pngbin0 -> 603 bytes
-rw-r--r--images/filegrid/page_white_horizontal.pngbin0 -> 296 bytes
-rw-r--r--images/filegrid/page_white_key.pngbin0 -> 616 bytes
-rw-r--r--images/filegrid/page_white_lightning.pngbin0 -> 669 bytes
-rw-r--r--images/filegrid/page_white_link.pngbin0 -> 614 bytes
-rw-r--r--images/filegrid/page_white_magnify.pngbin0 -> 554 bytes
-rw-r--r--images/filegrid/page_white_medal.pngbin0 -> 706 bytes
-rw-r--r--images/filegrid/page_white_office.pngbin0 -> 779 bytes
-rw-r--r--images/filegrid/page_white_paint.pngbin0 -> 688 bytes
-rw-r--r--images/filegrid/page_white_paintbrush.pngbin0 -> 618 bytes
-rw-r--r--images/filegrid/page_white_paste.pngbin0 -> 620 bytes
-rw-r--r--images/filegrid/page_white_php.pngbin0 -> 538 bytes
-rw-r--r--images/filegrid/page_white_picture.pngbin0 -> 650 bytes
-rw-r--r--images/filegrid/page_white_powerpoint.pngbin0 -> 588 bytes
-rw-r--r--images/filegrid/page_white_put.pngbin0 -> 523 bytes
-rw-r--r--images/filegrid/page_white_ruby.pngbin0 -> 626 bytes
-rw-r--r--images/filegrid/page_white_stack.pngbin0 -> 317 bytes
-rw-r--r--images/filegrid/page_white_star.pngbin0 -> 565 bytes
-rw-r--r--images/filegrid/page_white_swoosh.pngbin0 -> 634 bytes
-rw-r--r--images/filegrid/page_white_text.pngbin0 -> 342 bytes
-rw-r--r--images/filegrid/page_white_text_width.pngbin0 -> 315 bytes
-rw-r--r--images/filegrid/page_white_tux.pngbin0 -> 668 bytes
-rw-r--r--images/filegrid/page_white_vector.pngbin0 -> 644 bytes
-rw-r--r--images/filegrid/page_white_visualstudio.pngbin0 -> 702 bytes
-rw-r--r--images/filegrid/page_white_width.pngbin0 -> 309 bytes
-rw-r--r--images/filegrid/page_white_word.pngbin0 -> 651 bytes
-rw-r--r--images/filegrid/page_white_world.pngbin0 -> 734 bytes
-rw-r--r--images/filegrid/page_white_wrench.pngbin0 -> 613 bytes
-rw-r--r--images/filegrid/page_white_zip.pngbin0 -> 386 bytes
-rw-r--r--images/folder_16.bmpbin0 -> 822 bytes
-rw-r--r--images/folder_home_16.bmpbin0 -> 822 bytes
-rw-r--r--images/folder_new_16.bmpbin0 -> 822 bytes
-rw-r--r--images/folder_open_16.bmpbin0 -> 822 bytes
-rw-r--r--images/folder_open_file_16.bmpbin0 -> 822 bytes
-rw-r--r--images/folder_up_16.bmpbin0 -> 822 bytes
-rw-r--r--images/font_16.bmpbin0 -> 822 bytes
-rw-r--r--images/function_16.bmpbin822 -> 0 bytes
-rw-r--r--images/gears_16.bmpbin822 -> 0 bytes
-rw-r--r--images/gutter_vertical.bmpbin438 -> 0 bytes
-rw-r--r--images/help_16.bmpbin0 -> 822 bytes
-rw-r--r--images/hidden.bmpbin0 -> 822 bytes
-rw-r--r--images/link.bmpbin0 -> 450 bytes
-rw-r--r--images/list_add_16.bmpbin0 -> 822 bytes
-rw-r--r--images/list_remove_16.bmpbin0 -> 822 bytes
-rw-r--r--images/menu_check_16.bmpbin0 -> 822 bytes
-rw-r--r--images/menu_exit_16.bmpbin0 -> 822 bytes
-rw-r--r--images/menu_preferences_16.bmpbin0 -> 822 bytes
-rw-r--r--images/menu_quit_16.bmpbin0 -> 822 bytes
-rw-r--r--images/menu_save_16.bmpbin0 -> 822 bytes
-rw-r--r--images/menu_save_all_16.bmpbin0 -> 822 bytes
-rw-r--r--images/menu_saveas_16.bmpbin0 -> 822 bytes
-rw-r--r--images/radiobuttons.bmpbin0 -> 2214 bytes
-rw-r--r--images/refresh_16.bmpbin0 -> 822 bytes
-rw-r--r--images/search_16.bmpbin0 -> 822 bytes
-rwxr-xr-ximages/stdimg_update.sh3
-rwxr-xr-ximages/stdimg_updatew.bat3
-rw-r--r--images/themes/luna/arrows.bmpbin0 -> 694 bytes
-rw-r--r--images/themes/luna/button.bmpbin0 -> 4438 bytes
-rw-r--r--images/themes/luna/checkbox.bmpbin0 -> 3106 bytes
-rw-r--r--images/themes/luna/combobox.bmpbin0 -> 2842 bytes
-rw-r--r--images/themes/luna/edittext.bmpbin0 -> 454 bytes
-rw-r--r--images/themes/luna/groupbox.bmpbin0 -> 1222 bytes
-rw-r--r--images/themes/luna/header.bmpbin0 -> 8470 bytes
-rw-r--r--images/themes/luna/progressbar.bmpbin0 -> 3094 bytes
-rw-r--r--images/themes/luna/radiobutton.bmpbin0 -> 2430 bytes
-rw-r--r--images/themes/luna/scrollbar.bmpbin0 -> 23926 bytes
-rw-r--r--images/themes/luna/tabbody.bmpbin0 -> 81078 bytes
-rw-r--r--images/themes/luna/tabs.bmpbin0 -> 27958 bytes
-rw-r--r--images/themes/luna/toolbarbutton.bmpbin0 -> 14326 bytes
-rw-r--r--images/themes/luna/toolbarsep.bmpbin0 -> 4470 bytes
-rw-r--r--images/themes/luna/trackbar.bmpbin0 -> 16114 bytes
-rw-r--r--images/themes/silver/arrows.bmpbin0 -> 2230 bytes
-rw-r--r--images/themes/silver/button.bmpbin0 -> 10134 bytes
-rw-r--r--images/themes/silver/checkbox.bmpbin0 -> 3106 bytes
-rw-r--r--images/themes/silver/checkedmenu.bmpbin0 -> 306 bytes
-rw-r--r--images/themes/silver/checkedmenu.pngbin0 -> 133 bytes
-rw-r--r--images/themes/silver/combobox.bmpbin0 -> 5346 bytes
-rw-r--r--images/themes/silver/edittext.bmpbin0 -> 454 bytes
-rw-r--r--images/themes/silver/groupbox.bmpbin0 -> 1222 bytes
-rw-r--r--images/themes/silver/header.bmpbin0 -> 22230 bytes
-rw-r--r--images/themes/silver/progressbar.bmpbin0 -> 3094 bytes
-rw-r--r--images/themes/silver/radiobutton.bmpbin0 -> 4110 bytes
-rw-r--r--images/themes/silver/scrollbar.bmpbin0 -> 68598 bytes
-rw-r--r--images/themes/silver/tabbody.bmpbin0 -> 240054 bytes
-rw-r--r--images/themes/silver/tabs.bmpbin0 -> 80694 bytes
-rw-r--r--images/themes/silver/toolbarbutton.bmpbin0 -> 14326 bytes
-rw-r--r--images/themes/silver/toolbarsep.bmpbin0 -> 4470 bytes
-rw-r--r--images/themes/silver/trackbar.bmpbin0 -> 45078 bytes
-rw-r--r--images/themes/vista/button.bmpbin0 -> 62210 bytes
-rw-r--r--images/updatestdimgs.pas223
145 files changed, 240 insertions, 0 deletions
diff --git a/images/arrow_down.bmp b/images/arrow_down.bmp
new file mode 100644
index 00000000..9745bd9a
--- /dev/null
+++ b/images/arrow_down.bmp
Binary files differ
diff --git a/images/arrow_left.bmp b/images/arrow_left.bmp
new file mode 100644
index 00000000..1a2a9a9d
--- /dev/null
+++ b/images/arrow_left.bmp
Binary files differ
diff --git a/images/arrow_right.bmp b/images/arrow_right.bmp
new file mode 100644
index 00000000..fa9be65b
--- /dev/null
+++ b/images/arrow_right.bmp
Binary files differ
diff --git a/images/arrow_up.bmp b/images/arrow_up.bmp
new file mode 100644
index 00000000..3f6282b2
--- /dev/null
+++ b/images/arrow_up.bmp
Binary files differ
diff --git a/images/bevel.bmp b/images/bevel.bmp
new file mode 100644
index 00000000..758cae75
--- /dev/null
+++ b/images/bevel.bmp
Binary files differ
diff --git a/images/bookmark_16.bmp b/images/bookmark_16.bmp
new file mode 100644
index 00000000..44456955
--- /dev/null
+++ b/images/bookmark_16.bmp
Binary files differ
diff --git a/images/btn_cancel_16.bmp b/images/btn_cancel_16.bmp
new file mode 100644
index 00000000..5a92a713
--- /dev/null
+++ b/images/btn_cancel_16.bmp
Binary files differ
diff --git a/images/btn_close_16.bmp b/images/btn_close_16.bmp
new file mode 100644
index 00000000..e3e355c3
--- /dev/null
+++ b/images/btn_close_16.bmp
Binary files differ
diff --git a/images/btn_ok_16.bmp b/images/btn_ok_16.bmp
new file mode 100644
index 00000000..b91d982e
--- /dev/null
+++ b/images/btn_ok_16.bmp
Binary files differ
diff --git a/images/checkboxes.bmp b/images/checkboxes.bmp
new file mode 100644
index 00000000..f7d5f44d
--- /dev/null
+++ b/images/checkboxes.bmp
Binary files differ
diff --git a/images/choice_no_16.bmp b/images/choice_no_16.bmp
new file mode 100644
index 00000000..6d964f3c
--- /dev/null
+++ b/images/choice_no_16.bmp
Binary files differ
diff --git a/images/choice_yes_16.bmp b/images/choice_yes_16.bmp
new file mode 100644
index 00000000..10595f88
--- /dev/null
+++ b/images/choice_yes_16.bmp
Binary files differ
diff --git a/images/constructor_16.bmp b/images/constructor_16.bmp
deleted file mode 100644
index 992fe262..00000000
--- a/images/constructor_16.bmp
+++ /dev/null
Binary files differ
diff --git a/images/destructor_16.bmp b/images/destructor_16.bmp
deleted file mode 100644
index 0f0d0c2b..00000000
--- a/images/destructor_16.bmp
+++ /dev/null
Binary files differ
diff --git a/images/dialog_confirmation_32.bmp b/images/dialog_confirmation_32.bmp
new file mode 100644
index 00000000..7cac692a
--- /dev/null
+++ b/images/dialog_confirmation_32.bmp
Binary files differ
diff --git a/images/dialog_error_32.bmp b/images/dialog_error_32.bmp
new file mode 100644
index 00000000..c540509d
--- /dev/null
+++ b/images/dialog_error_32.bmp
Binary files differ
diff --git a/images/dialog_information_32.bmp b/images/dialog_information_32.bmp
new file mode 100644
index 00000000..1e36b1d4
--- /dev/null
+++ b/images/dialog_information_32.bmp
Binary files differ
diff --git a/images/dialog_warning_32.bmp b/images/dialog_warning_32.bmp
new file mode 100644
index 00000000..f643d0bc
--- /dev/null
+++ b/images/dialog_warning_32.bmp
Binary files differ
diff --git a/images/document.bmp b/images/document.bmp
new file mode 100644
index 00000000..eb3925ba
--- /dev/null
+++ b/images/document.bmp
Binary files differ
diff --git a/images/edit.bmp b/images/edit.bmp
new file mode 100644
index 00000000..ddfed2b2
--- /dev/null
+++ b/images/edit.bmp
Binary files differ
diff --git a/images/edit_copy_16.bmp b/images/edit_copy_16.bmp
new file mode 100644
index 00000000..532a071f
--- /dev/null
+++ b/images/edit_copy_16.bmp
Binary files differ
diff --git a/images/edit_cut_16.bmp b/images/edit_cut_16.bmp
new file mode 100644
index 00000000..69829380
--- /dev/null
+++ b/images/edit_cut_16.bmp
Binary files differ
diff --git a/images/edit_delete_16.bmp b/images/edit_delete_16.bmp
new file mode 100644
index 00000000..d7a93e8e
--- /dev/null
+++ b/images/edit_delete_16.bmp
Binary files differ
diff --git a/images/edit_paste_16.bmp b/images/edit_paste_16.bmp
new file mode 100644
index 00000000..98ce7cff
--- /dev/null
+++ b/images/edit_paste_16.bmp
Binary files differ
diff --git a/images/ellipse.bmp b/images/ellipse.bmp
new file mode 100644
index 00000000..06fd71fe
--- /dev/null
+++ b/images/ellipse.bmp
Binary files differ
diff --git a/images/executable_16.bmp b/images/executable_16.bmp
new file mode 100644
index 00000000..70bf7a05
--- /dev/null
+++ b/images/executable_16.bmp
Binary files differ
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
new file mode 100644
index 00000000..8168ec7e
--- /dev/null
+++ b/images/filegrid/page_white.bmp
Binary files differ
diff --git a/images/filegrid/page_white.png b/images/filegrid/page_white.png
new file mode 100644
index 00000000..8b8b1ca0
--- /dev/null
+++ b/images/filegrid/page_white.png
Binary files differ
diff --git a/images/filegrid/page_white_acrobat.png b/images/filegrid/page_white_acrobat.png
new file mode 100644
index 00000000..8f8095e4
--- /dev/null
+++ b/images/filegrid/page_white_acrobat.png
Binary files differ
diff --git a/images/filegrid/page_white_actionscript.png b/images/filegrid/page_white_actionscript.png
new file mode 100644
index 00000000..159b2407
--- /dev/null
+++ b/images/filegrid/page_white_actionscript.png
Binary files differ
diff --git a/images/filegrid/page_white_add.png b/images/filegrid/page_white_add.png
new file mode 100644
index 00000000..aa23dde3
--- /dev/null
+++ b/images/filegrid/page_white_add.png
Binary files differ
diff --git a/images/filegrid/page_white_c.png b/images/filegrid/page_white_c.png
new file mode 100644
index 00000000..34a05ccc
--- /dev/null
+++ b/images/filegrid/page_white_c.png
Binary files differ
diff --git a/images/filegrid/page_white_camera.png b/images/filegrid/page_white_camera.png
new file mode 100644
index 00000000..f501a593
--- /dev/null
+++ b/images/filegrid/page_white_camera.png
Binary files differ
diff --git a/images/filegrid/page_white_cd.png b/images/filegrid/page_white_cd.png
new file mode 100644
index 00000000..848bdaf3
--- /dev/null
+++ b/images/filegrid/page_white_cd.png
Binary files differ
diff --git a/images/filegrid/page_white_code.png b/images/filegrid/page_white_code.png
new file mode 100644
index 00000000..0c76bd12
--- /dev/null
+++ b/images/filegrid/page_white_code.png
Binary files differ
diff --git a/images/filegrid/page_white_code_red.png b/images/filegrid/page_white_code_red.png
new file mode 100644
index 00000000..87a69145
--- /dev/null
+++ b/images/filegrid/page_white_code_red.png
Binary files differ
diff --git a/images/filegrid/page_white_coldfusion.png b/images/filegrid/page_white_coldfusion.png
new file mode 100644
index 00000000..c66011fb
--- /dev/null
+++ b/images/filegrid/page_white_coldfusion.png
Binary files differ
diff --git a/images/filegrid/page_white_compressed.png b/images/filegrid/page_white_compressed.png
new file mode 100644
index 00000000..2b6b1007
--- /dev/null
+++ b/images/filegrid/page_white_compressed.png
Binary files differ
diff --git a/images/filegrid/page_white_copy.png b/images/filegrid/page_white_copy.png
new file mode 100644
index 00000000..a9f31a27
--- /dev/null
+++ b/images/filegrid/page_white_copy.png
Binary files differ
diff --git a/images/filegrid/page_white_cplusplus.png b/images/filegrid/page_white_cplusplus.png
new file mode 100644
index 00000000..a87cf847
--- /dev/null
+++ b/images/filegrid/page_white_cplusplus.png
Binary files differ
diff --git a/images/filegrid/page_white_csharp.png b/images/filegrid/page_white_csharp.png
new file mode 100644
index 00000000..ffb8fc93
--- /dev/null
+++ b/images/filegrid/page_white_csharp.png
Binary files differ
diff --git a/images/filegrid/page_white_cup.png b/images/filegrid/page_white_cup.png
new file mode 100644
index 00000000..0a7d6f4a
--- /dev/null
+++ b/images/filegrid/page_white_cup.png
Binary files differ
diff --git a/images/filegrid/page_white_database.png b/images/filegrid/page_white_database.png
new file mode 100644
index 00000000..bddba1f9
--- /dev/null
+++ b/images/filegrid/page_white_database.png
Binary files differ
diff --git a/images/filegrid/page_white_delete.png b/images/filegrid/page_white_delete.png
new file mode 100644
index 00000000..af1ecaf2
--- /dev/null
+++ b/images/filegrid/page_white_delete.png
Binary files differ
diff --git a/images/filegrid/page_white_dvd.png b/images/filegrid/page_white_dvd.png
new file mode 100644
index 00000000..4cc537af
--- /dev/null
+++ b/images/filegrid/page_white_dvd.png
Binary files differ
diff --git a/images/filegrid/page_white_edit.png b/images/filegrid/page_white_edit.png
new file mode 100644
index 00000000..b93e7760
--- /dev/null
+++ b/images/filegrid/page_white_edit.png
Binary files differ
diff --git a/images/filegrid/page_white_error.png b/images/filegrid/page_white_error.png
new file mode 100644
index 00000000..9fc5a0a1
--- /dev/null
+++ b/images/filegrid/page_white_error.png
Binary files differ
diff --git a/images/filegrid/page_white_excel.png b/images/filegrid/page_white_excel.png
new file mode 100644
index 00000000..b977d7e5
--- /dev/null
+++ b/images/filegrid/page_white_excel.png
Binary files differ
diff --git a/images/filegrid/page_white_find.png b/images/filegrid/page_white_find.png
new file mode 100644
index 00000000..58184363
--- /dev/null
+++ b/images/filegrid/page_white_find.png
Binary files differ
diff --git a/images/filegrid/page_white_flash.png b/images/filegrid/page_white_flash.png
new file mode 100644
index 00000000..5769120b
--- /dev/null
+++ b/images/filegrid/page_white_flash.png
Binary files differ
diff --git a/images/filegrid/page_white_freehand.png b/images/filegrid/page_white_freehand.png
new file mode 100644
index 00000000..8d719df5
--- /dev/null
+++ b/images/filegrid/page_white_freehand.png
Binary files differ
diff --git a/images/filegrid/page_white_gear.png b/images/filegrid/page_white_gear.png
new file mode 100644
index 00000000..106f5aa3
--- /dev/null
+++ b/images/filegrid/page_white_gear.png
Binary files differ
diff --git a/images/filegrid/page_white_get.png b/images/filegrid/page_white_get.png
new file mode 100644
index 00000000..e4a1ecba
--- /dev/null
+++ b/images/filegrid/page_white_get.png
Binary files differ
diff --git a/images/filegrid/page_white_go.png b/images/filegrid/page_white_go.png
new file mode 100644
index 00000000..7e62a924
--- /dev/null
+++ b/images/filegrid/page_white_go.png
Binary files differ
diff --git a/images/filegrid/page_white_h.png b/images/filegrid/page_white_h.png
new file mode 100644
index 00000000..e902abb0
--- /dev/null
+++ b/images/filegrid/page_white_h.png
Binary files differ
diff --git a/images/filegrid/page_white_horizontal.png b/images/filegrid/page_white_horizontal.png
new file mode 100644
index 00000000..1d2d0a49
--- /dev/null
+++ b/images/filegrid/page_white_horizontal.png
Binary files differ
diff --git a/images/filegrid/page_white_key.png b/images/filegrid/page_white_key.png
new file mode 100644
index 00000000..d6164845
--- /dev/null
+++ b/images/filegrid/page_white_key.png
Binary files differ
diff --git a/images/filegrid/page_white_lightning.png b/images/filegrid/page_white_lightning.png
new file mode 100644
index 00000000..7215d1e8
--- /dev/null
+++ b/images/filegrid/page_white_lightning.png
Binary files differ
diff --git a/images/filegrid/page_white_link.png b/images/filegrid/page_white_link.png
new file mode 100644
index 00000000..bf7bd1c9
--- /dev/null
+++ b/images/filegrid/page_white_link.png
Binary files differ
diff --git a/images/filegrid/page_white_magnify.png b/images/filegrid/page_white_magnify.png
new file mode 100644
index 00000000..f6b74cc4
--- /dev/null
+++ b/images/filegrid/page_white_magnify.png
Binary files differ
diff --git a/images/filegrid/page_white_medal.png b/images/filegrid/page_white_medal.png
new file mode 100644
index 00000000..d3fffb6d
--- /dev/null
+++ b/images/filegrid/page_white_medal.png
Binary files differ
diff --git a/images/filegrid/page_white_office.png b/images/filegrid/page_white_office.png
new file mode 100644
index 00000000..a65bcb3e
--- /dev/null
+++ b/images/filegrid/page_white_office.png
Binary files differ
diff --git a/images/filegrid/page_white_paint.png b/images/filegrid/page_white_paint.png
new file mode 100644
index 00000000..23a37b89
--- /dev/null
+++ b/images/filegrid/page_white_paint.png
Binary files differ
diff --git a/images/filegrid/page_white_paintbrush.png b/images/filegrid/page_white_paintbrush.png
new file mode 100644
index 00000000..f907e44b
--- /dev/null
+++ b/images/filegrid/page_white_paintbrush.png
Binary files differ
diff --git a/images/filegrid/page_white_paste.png b/images/filegrid/page_white_paste.png
new file mode 100644
index 00000000..5b2cbb3f
--- /dev/null
+++ b/images/filegrid/page_white_paste.png
Binary files differ
diff --git a/images/filegrid/page_white_php.png b/images/filegrid/page_white_php.png
new file mode 100644
index 00000000..7868a259
--- /dev/null
+++ b/images/filegrid/page_white_php.png
Binary files differ
diff --git a/images/filegrid/page_white_picture.png b/images/filegrid/page_white_picture.png
new file mode 100644
index 00000000..134b6693
--- /dev/null
+++ b/images/filegrid/page_white_picture.png
Binary files differ
diff --git a/images/filegrid/page_white_powerpoint.png b/images/filegrid/page_white_powerpoint.png
new file mode 100644
index 00000000..c4eff038
--- /dev/null
+++ b/images/filegrid/page_white_powerpoint.png
Binary files differ
diff --git a/images/filegrid/page_white_put.png b/images/filegrid/page_white_put.png
new file mode 100644
index 00000000..884ffd6f
--- /dev/null
+++ b/images/filegrid/page_white_put.png
Binary files differ
diff --git a/images/filegrid/page_white_ruby.png b/images/filegrid/page_white_ruby.png
new file mode 100644
index 00000000..f59b7c43
--- /dev/null
+++ b/images/filegrid/page_white_ruby.png
Binary files differ
diff --git a/images/filegrid/page_white_stack.png b/images/filegrid/page_white_stack.png
new file mode 100644
index 00000000..44084add
--- /dev/null
+++ b/images/filegrid/page_white_stack.png
Binary files differ
diff --git a/images/filegrid/page_white_star.png b/images/filegrid/page_white_star.png
new file mode 100644
index 00000000..3a1441c9
--- /dev/null
+++ b/images/filegrid/page_white_star.png
Binary files differ
diff --git a/images/filegrid/page_white_swoosh.png b/images/filegrid/page_white_swoosh.png
new file mode 100644
index 00000000..e7708292
--- /dev/null
+++ b/images/filegrid/page_white_swoosh.png
Binary files differ
diff --git a/images/filegrid/page_white_text.png b/images/filegrid/page_white_text.png
new file mode 100644
index 00000000..813f712f
--- /dev/null
+++ b/images/filegrid/page_white_text.png
Binary files differ
diff --git a/images/filegrid/page_white_text_width.png b/images/filegrid/page_white_text_width.png
new file mode 100644
index 00000000..d9cf1325
--- /dev/null
+++ b/images/filegrid/page_white_text_width.png
Binary files differ
diff --git a/images/filegrid/page_white_tux.png b/images/filegrid/page_white_tux.png
new file mode 100644
index 00000000..52699bfe
--- /dev/null
+++ b/images/filegrid/page_white_tux.png
Binary files differ
diff --git a/images/filegrid/page_white_vector.png b/images/filegrid/page_white_vector.png
new file mode 100644
index 00000000..4a05955b
--- /dev/null
+++ b/images/filegrid/page_white_vector.png
Binary files differ
diff --git a/images/filegrid/page_white_visualstudio.png b/images/filegrid/page_white_visualstudio.png
new file mode 100644
index 00000000..a0a433df
--- /dev/null
+++ b/images/filegrid/page_white_visualstudio.png
Binary files differ
diff --git a/images/filegrid/page_white_width.png b/images/filegrid/page_white_width.png
new file mode 100644
index 00000000..1eb88094
--- /dev/null
+++ b/images/filegrid/page_white_width.png
Binary files differ
diff --git a/images/filegrid/page_white_word.png b/images/filegrid/page_white_word.png
new file mode 100644
index 00000000..ae8ecbf4
--- /dev/null
+++ b/images/filegrid/page_white_word.png
Binary files differ
diff --git a/images/filegrid/page_white_world.png b/images/filegrid/page_white_world.png
new file mode 100644
index 00000000..6ed2490e
--- /dev/null
+++ b/images/filegrid/page_white_world.png
Binary files differ
diff --git a/images/filegrid/page_white_wrench.png b/images/filegrid/page_white_wrench.png
new file mode 100644
index 00000000..fecadd08
--- /dev/null
+++ b/images/filegrid/page_white_wrench.png
Binary files differ
diff --git a/images/filegrid/page_white_zip.png b/images/filegrid/page_white_zip.png
new file mode 100644
index 00000000..fd4bbccd
--- /dev/null
+++ b/images/filegrid/page_white_zip.png
Binary files differ
diff --git a/images/folder_16.bmp b/images/folder_16.bmp
new file mode 100644
index 00000000..5e49bf7c
--- /dev/null
+++ b/images/folder_16.bmp
Binary files differ
diff --git a/images/folder_home_16.bmp b/images/folder_home_16.bmp
new file mode 100644
index 00000000..8e00195d
--- /dev/null
+++ b/images/folder_home_16.bmp
Binary files differ
diff --git a/images/folder_new_16.bmp b/images/folder_new_16.bmp
new file mode 100644
index 00000000..a846a032
--- /dev/null
+++ b/images/folder_new_16.bmp
Binary files differ
diff --git a/images/folder_open_16.bmp b/images/folder_open_16.bmp
new file mode 100644
index 00000000..b4cca24c
--- /dev/null
+++ b/images/folder_open_16.bmp
Binary files differ
diff --git a/images/folder_open_file_16.bmp b/images/folder_open_file_16.bmp
new file mode 100644
index 00000000..c4405ca7
--- /dev/null
+++ b/images/folder_open_file_16.bmp
Binary files differ
diff --git a/images/folder_up_16.bmp b/images/folder_up_16.bmp
new file mode 100644
index 00000000..1edf959f
--- /dev/null
+++ b/images/folder_up_16.bmp
Binary files differ
diff --git a/images/font_16.bmp b/images/font_16.bmp
new file mode 100644
index 00000000..3a7bcb25
--- /dev/null
+++ b/images/font_16.bmp
Binary files differ
diff --git a/images/function_16.bmp b/images/function_16.bmp
deleted file mode 100644
index 8929a90b..00000000
--- a/images/function_16.bmp
+++ /dev/null
Binary files differ
diff --git a/images/gears_16.bmp b/images/gears_16.bmp
deleted file mode 100644
index c9633504..00000000
--- a/images/gears_16.bmp
+++ /dev/null
Binary files differ
diff --git a/images/gutter_vertical.bmp b/images/gutter_vertical.bmp
deleted file mode 100644
index 882e2f34..00000000
--- a/images/gutter_vertical.bmp
+++ /dev/null
Binary files differ
diff --git a/images/help_16.bmp b/images/help_16.bmp
new file mode 100644
index 00000000..1c4fdcd6
--- /dev/null
+++ b/images/help_16.bmp
Binary files differ
diff --git a/images/hidden.bmp b/images/hidden.bmp
new file mode 100644
index 00000000..c5fe782c
--- /dev/null
+++ b/images/hidden.bmp
Binary files differ
diff --git a/images/link.bmp b/images/link.bmp
new file mode 100644
index 00000000..8331e9bd
--- /dev/null
+++ b/images/link.bmp
Binary files differ
diff --git a/images/list_add_16.bmp b/images/list_add_16.bmp
new file mode 100644
index 00000000..974167a7
--- /dev/null
+++ b/images/list_add_16.bmp
Binary files differ
diff --git a/images/list_remove_16.bmp b/images/list_remove_16.bmp
new file mode 100644
index 00000000..b2e7a4ad
--- /dev/null
+++ b/images/list_remove_16.bmp
Binary files differ
diff --git a/images/menu_check_16.bmp b/images/menu_check_16.bmp
new file mode 100644
index 00000000..7fec8e3c
--- /dev/null
+++ b/images/menu_check_16.bmp
Binary files differ
diff --git a/images/menu_exit_16.bmp b/images/menu_exit_16.bmp
new file mode 100644
index 00000000..de9d4b2e
--- /dev/null
+++ b/images/menu_exit_16.bmp
Binary files differ
diff --git a/images/menu_preferences_16.bmp b/images/menu_preferences_16.bmp
new file mode 100644
index 00000000..1360fb22
--- /dev/null
+++ b/images/menu_preferences_16.bmp
Binary files differ
diff --git a/images/menu_quit_16.bmp b/images/menu_quit_16.bmp
new file mode 100644
index 00000000..100a5b21
--- /dev/null
+++ b/images/menu_quit_16.bmp
Binary files differ
diff --git a/images/menu_save_16.bmp b/images/menu_save_16.bmp
new file mode 100644
index 00000000..9e58b661
--- /dev/null
+++ b/images/menu_save_16.bmp
Binary files differ
diff --git a/images/menu_save_all_16.bmp b/images/menu_save_all_16.bmp
new file mode 100644
index 00000000..62ed2104
--- /dev/null
+++ b/images/menu_save_all_16.bmp
Binary files differ
diff --git a/images/menu_saveas_16.bmp b/images/menu_saveas_16.bmp
new file mode 100644
index 00000000..fb89079f
--- /dev/null
+++ b/images/menu_saveas_16.bmp
Binary files differ
diff --git a/images/radiobuttons.bmp b/images/radiobuttons.bmp
new file mode 100644
index 00000000..6523aa61
--- /dev/null
+++ b/images/radiobuttons.bmp
Binary files differ
diff --git a/images/refresh_16.bmp b/images/refresh_16.bmp
new file mode 100644
index 00000000..b9530812
--- /dev/null
+++ b/images/refresh_16.bmp
Binary files differ
diff --git a/images/search_16.bmp b/images/search_16.bmp
new file mode 100644
index 00000000..2b0d4302
--- /dev/null
+++ b/images/search_16.bmp
Binary files differ
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
new file mode 100644
index 00000000..758442fa
--- /dev/null
+++ b/images/themes/luna/arrows.bmp
Binary files differ
diff --git a/images/themes/luna/button.bmp b/images/themes/luna/button.bmp
new file mode 100644
index 00000000..8ae427cf
--- /dev/null
+++ b/images/themes/luna/button.bmp
Binary files differ
diff --git a/images/themes/luna/checkbox.bmp b/images/themes/luna/checkbox.bmp
new file mode 100644
index 00000000..dca4a692
--- /dev/null
+++ b/images/themes/luna/checkbox.bmp
Binary files differ
diff --git a/images/themes/luna/combobox.bmp b/images/themes/luna/combobox.bmp
new file mode 100644
index 00000000..9b59abcc
--- /dev/null
+++ b/images/themes/luna/combobox.bmp
Binary files differ
diff --git a/images/themes/luna/edittext.bmp b/images/themes/luna/edittext.bmp
new file mode 100644
index 00000000..efa8981e
--- /dev/null
+++ b/images/themes/luna/edittext.bmp
Binary files differ
diff --git a/images/themes/luna/groupbox.bmp b/images/themes/luna/groupbox.bmp
new file mode 100644
index 00000000..60975283
--- /dev/null
+++ b/images/themes/luna/groupbox.bmp
Binary files differ
diff --git a/images/themes/luna/header.bmp b/images/themes/luna/header.bmp
new file mode 100644
index 00000000..d613a632
--- /dev/null
+++ b/images/themes/luna/header.bmp
Binary files differ
diff --git a/images/themes/luna/progressbar.bmp b/images/themes/luna/progressbar.bmp
new file mode 100644
index 00000000..7de5143e
--- /dev/null
+++ b/images/themes/luna/progressbar.bmp
Binary files differ
diff --git a/images/themes/luna/radiobutton.bmp b/images/themes/luna/radiobutton.bmp
new file mode 100644
index 00000000..c66df229
--- /dev/null
+++ b/images/themes/luna/radiobutton.bmp
Binary files differ
diff --git a/images/themes/luna/scrollbar.bmp b/images/themes/luna/scrollbar.bmp
new file mode 100644
index 00000000..11786b71
--- /dev/null
+++ b/images/themes/luna/scrollbar.bmp
Binary files differ
diff --git a/images/themes/luna/tabbody.bmp b/images/themes/luna/tabbody.bmp
new file mode 100644
index 00000000..65d5890c
--- /dev/null
+++ b/images/themes/luna/tabbody.bmp
Binary files differ
diff --git a/images/themes/luna/tabs.bmp b/images/themes/luna/tabs.bmp
new file mode 100644
index 00000000..ecb563d2
--- /dev/null
+++ b/images/themes/luna/tabs.bmp
Binary files differ
diff --git a/images/themes/luna/toolbarbutton.bmp b/images/themes/luna/toolbarbutton.bmp
new file mode 100644
index 00000000..d507fc19
--- /dev/null
+++ b/images/themes/luna/toolbarbutton.bmp
Binary files differ
diff --git a/images/themes/luna/toolbarsep.bmp b/images/themes/luna/toolbarsep.bmp
new file mode 100644
index 00000000..50cc567a
--- /dev/null
+++ b/images/themes/luna/toolbarsep.bmp
Binary files differ
diff --git a/images/themes/luna/trackbar.bmp b/images/themes/luna/trackbar.bmp
new file mode 100644
index 00000000..1b47eb0f
--- /dev/null
+++ b/images/themes/luna/trackbar.bmp
Binary files differ
diff --git a/images/themes/silver/arrows.bmp b/images/themes/silver/arrows.bmp
new file mode 100644
index 00000000..897199a8
--- /dev/null
+++ b/images/themes/silver/arrows.bmp
Binary files differ
diff --git a/images/themes/silver/button.bmp b/images/themes/silver/button.bmp
new file mode 100644
index 00000000..cca0f695
--- /dev/null
+++ b/images/themes/silver/button.bmp
Binary files differ
diff --git a/images/themes/silver/checkbox.bmp b/images/themes/silver/checkbox.bmp
new file mode 100644
index 00000000..dca4a692
--- /dev/null
+++ b/images/themes/silver/checkbox.bmp
Binary files differ
diff --git a/images/themes/silver/checkedmenu.bmp b/images/themes/silver/checkedmenu.bmp
new file mode 100644
index 00000000..3152efc3
--- /dev/null
+++ b/images/themes/silver/checkedmenu.bmp
Binary files differ
diff --git a/images/themes/silver/checkedmenu.png b/images/themes/silver/checkedmenu.png
new file mode 100644
index 00000000..a06e1182
--- /dev/null
+++ b/images/themes/silver/checkedmenu.png
Binary files differ
diff --git a/images/themes/silver/combobox.bmp b/images/themes/silver/combobox.bmp
new file mode 100644
index 00000000..35ab06bd
--- /dev/null
+++ b/images/themes/silver/combobox.bmp
Binary files differ
diff --git a/images/themes/silver/edittext.bmp b/images/themes/silver/edittext.bmp
new file mode 100644
index 00000000..efa8981e
--- /dev/null
+++ b/images/themes/silver/edittext.bmp
Binary files differ
diff --git a/images/themes/silver/groupbox.bmp b/images/themes/silver/groupbox.bmp
new file mode 100644
index 00000000..60975283
--- /dev/null
+++ b/images/themes/silver/groupbox.bmp
Binary files differ
diff --git a/images/themes/silver/header.bmp b/images/themes/silver/header.bmp
new file mode 100644
index 00000000..68337a81
--- /dev/null
+++ b/images/themes/silver/header.bmp
Binary files differ
diff --git a/images/themes/silver/progressbar.bmp b/images/themes/silver/progressbar.bmp
new file mode 100644
index 00000000..7de5143e
--- /dev/null
+++ b/images/themes/silver/progressbar.bmp
Binary files differ
diff --git a/images/themes/silver/radiobutton.bmp b/images/themes/silver/radiobutton.bmp
new file mode 100644
index 00000000..966ef7c4
--- /dev/null
+++ b/images/themes/silver/radiobutton.bmp
Binary files differ
diff --git a/images/themes/silver/scrollbar.bmp b/images/themes/silver/scrollbar.bmp
new file mode 100644
index 00000000..1bac337e
--- /dev/null
+++ b/images/themes/silver/scrollbar.bmp
Binary files differ
diff --git a/images/themes/silver/tabbody.bmp b/images/themes/silver/tabbody.bmp
new file mode 100644
index 00000000..6d57593b
--- /dev/null
+++ b/images/themes/silver/tabbody.bmp
Binary files differ
diff --git a/images/themes/silver/tabs.bmp b/images/themes/silver/tabs.bmp
new file mode 100644
index 00000000..c9351a13
--- /dev/null
+++ b/images/themes/silver/tabs.bmp
Binary files differ
diff --git a/images/themes/silver/toolbarbutton.bmp b/images/themes/silver/toolbarbutton.bmp
new file mode 100644
index 00000000..d507fc19
--- /dev/null
+++ b/images/themes/silver/toolbarbutton.bmp
Binary files differ
diff --git a/images/themes/silver/toolbarsep.bmp b/images/themes/silver/toolbarsep.bmp
new file mode 100644
index 00000000..50cc567a
--- /dev/null
+++ b/images/themes/silver/toolbarsep.bmp
Binary files differ
diff --git a/images/themes/silver/trackbar.bmp b/images/themes/silver/trackbar.bmp
new file mode 100644
index 00000000..b7c3018e
--- /dev/null
+++ b/images/themes/silver/trackbar.bmp
Binary files differ
diff --git a/images/themes/vista/button.bmp b/images/themes/vista/button.bmp
new file mode 100644
index 00000000..5093c350
--- /dev/null
+++ b/images/themes/vista/button.bmp
Binary files differ
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.
+
+