*** empty log message ***
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
BIN
utils/dialoged/src/aiai.ico
Normal file
After Width: | Height: | Size: 766 B |
BIN
utils/dialoged/src/bitmaps/alignb.bmp
Normal file
After Width: | Height: | Size: 238 B |
9
utils/dialoged/src/bitmaps/alignb.xbm
Normal file
@@ -0,0 +1,9 @@
|
||||
#define alignb_width 24
|
||||
#define alignb_height 24
|
||||
static char alignb_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0xf8, 0x07, 0x00, 0x08, 0x04, 0x00, 0x08, 0x04, 0x00, 0x08, 0x04,
|
||||
0x00, 0x08, 0x04, 0x00, 0x08, 0x04, 0xf0, 0x09, 0x04, 0x10, 0x09, 0x04,
|
||||
0x10, 0x09, 0x04, 0x10, 0x09, 0x04, 0x10, 0x09, 0x04, 0xf0, 0xf9, 0x07,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
BIN
utils/dialoged/src/bitmaps/alignl.bmp
Normal file
After Width: | Height: | Size: 238 B |
9
utils/dialoged/src/bitmaps/alignl.xbm
Normal file
@@ -0,0 +1,9 @@
|
||||
#define alignl_width 24
|
||||
#define alignl_height 24
|
||||
static char alignl_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xc0, 0x0f, 0x00, 0x40, 0x08, 0x00, 0x40, 0x08, 0x00, 0x40, 0x08, 0x00,
|
||||
0xc0, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0x01,
|
||||
0x40, 0x00, 0x01, 0x40, 0x00, 0x01, 0x40, 0x00, 0x01, 0x40, 0x00, 0x01,
|
||||
0xc0, 0xff, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
BIN
utils/dialoged/src/bitmaps/alignr.bmp
Normal file
After Width: | Height: | Size: 238 B |
9
utils/dialoged/src/bitmaps/alignr.xbm
Normal file
@@ -0,0 +1,9 @@
|
||||
#define alignr_width 24
|
||||
#define alignr_height 24
|
||||
static char alignr_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0xf8, 0x01, 0x00, 0x08, 0x01, 0x00, 0x08, 0x01, 0x00, 0x08, 0x01,
|
||||
0x00, 0xf8, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0x01,
|
||||
0x40, 0x00, 0x01, 0x40, 0x00, 0x01, 0x40, 0x00, 0x01, 0x40, 0x00, 0x01,
|
||||
0xc0, 0xff, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
BIN
utils/dialoged/src/bitmaps/alignt.bmp
Normal file
After Width: | Height: | Size: 238 B |
9
utils/dialoged/src/bitmaps/alignt.xbm
Normal file
@@ -0,0 +1,9 @@
|
||||
#define alignt_width 24
|
||||
#define alignt_height 24
|
||||
static char alignt_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xf0, 0xf9, 0x07, 0x10, 0x09, 0x04, 0x10, 0x09, 0x04, 0x10, 0x09, 0x04,
|
||||
0x10, 0x09, 0x04, 0xf0, 0x09, 0x04, 0x00, 0x08, 0x04, 0x00, 0x08, 0x04,
|
||||
0x00, 0x08, 0x04, 0x00, 0x08, 0x04, 0x00, 0x08, 0x04, 0x00, 0xf8, 0x07,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
BIN
utils/dialoged/src/bitmaps/arrow.bmp
Normal file
After Width: | Height: | Size: 382 B |
13
utils/dialoged/src/bitmaps/arrow.xbm
Normal file
@@ -0,0 +1,13 @@
|
||||
#define arrow_width 28
|
||||
#define arrow_height 28
|
||||
static char arrow_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00,
|
||||
0x00, 0x0c, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00,
|
||||
0x00, 0x7c, 0x00, 0x00, 0x00, 0xfc, 0x00, 0x00, 0x00, 0xfc, 0x01, 0x00,
|
||||
0x00, 0xfc, 0x03, 0x00, 0x00, 0x7c, 0x00, 0x00, 0x00, 0x6c, 0x00, 0x00,
|
||||
0x00, 0xc4, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x80, 0x01, 0x00,
|
||||
0x00, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00};
|
BIN
utils/dialoged/src/bitmaps/bmpbuttn.bmp
Normal file
After Width: | Height: | Size: 382 B |
11
utils/dialoged/src/bitmaps/bmpbuttn.xbm
Normal file
@@ -0,0 +1,11 @@
|
||||
#define bmpbuttn_width 28
|
||||
#define bmpbuttn_height 28
|
||||
static char bmpbuttn_bits[] = {
|
||||
0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,
|
||||
0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,
|
||||
0x00,0xf0,0x80,0xff,0x0f,0xf0,0x40,0x00,0x10,0xf0,0x40,0x84,0x31,0xf0,0x40,
|
||||
0x44,0x32,0xf0,0x40,0x45,0x32,0xf0,0x40,0x8d,0x31,0xf0,0x40,0x09,0x30,0xf0,
|
||||
0x40,0xfb,0x3f,0xf0,0x40,0x04,0x30,0xf0,0x40,0xc4,0x30,0xf0,0x80,0xff,0x3f,
|
||||
0xf0,0x00,0xff,0x1f,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,
|
||||
0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,
|
||||
0x00,0x00,0xf0,0x00,0x00,0x00,0xf0};
|
BIN
utils/dialoged/src/bitmaps/button.bmp
Normal file
After Width: | Height: | Size: 382 B |
13
utils/dialoged/src/bitmaps/button.xbm
Normal file
@@ -0,0 +1,13 @@
|
||||
#define button_width 28
|
||||
#define button_height 28
|
||||
static char button_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xff, 0x0f, 0x00,
|
||||
0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x30, 0x00, 0x40, 0x00, 0x30, 0x00,
|
||||
0x40, 0x00, 0x30, 0x00, 0x40, 0x00, 0x30, 0x00, 0x40, 0x00, 0x30, 0x00,
|
||||
0x40, 0x00, 0x30, 0x00, 0x40, 0x00, 0x30, 0x00, 0x40, 0x00, 0x30, 0x00,
|
||||
0x80, 0xff, 0x3f, 0x00, 0x00, 0xff, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00};
|
13
utils/dialoged/src/bitmaps/canvas.xbm
Normal file
@@ -0,0 +1,13 @@
|
||||
#define canvas_width 28
|
||||
#define canvas_height 28
|
||||
static char canvas_bits[] = {
|
||||
0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xc0, 0xff, 0x1f, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00,
|
||||
0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00,
|
||||
0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00,
|
||||
0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00,
|
||||
0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00, 0xc0, 0xff, 0x1f, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00};
|
BIN
utils/dialoged/src/bitmaps/check.bmp
Normal file
After Width: | Height: | Size: 382 B |
13
utils/dialoged/src/bitmaps/check.xbm
Normal file
@@ -0,0 +1,13 @@
|
||||
#define check_width 28
|
||||
#define check_height 28
|
||||
static char check_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x80, 0xff, 0x0f, 0x00, 0x80, 0x01, 0x0c, 0x00,
|
||||
0x80, 0x02, 0x0a, 0x00, 0x80, 0x04, 0x09, 0x00, 0x80, 0x88, 0x08, 0x00,
|
||||
0x80, 0x50, 0x08, 0x00, 0x80, 0x20, 0x08, 0x00, 0x80, 0x50, 0x08, 0x00,
|
||||
0x80, 0x88, 0x08, 0x00, 0x80, 0x04, 0x09, 0x00, 0x80, 0x02, 0x0a, 0x00,
|
||||
0x80, 0x01, 0x0c, 0x00, 0x80, 0xff, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00};
|
BIN
utils/dialoged/src/bitmaps/choice.bmp
Normal file
After Width: | Height: | Size: 382 B |
13
utils/dialoged/src/bitmaps/choice.xbm
Normal file
@@ -0,0 +1,13 @@
|
||||
#define choice_width 28
|
||||
#define choice_height 28
|
||||
static char choice_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xff, 0xff, 0x00,
|
||||
0x10, 0x00, 0xc6, 0x00, 0x10, 0x00, 0xee, 0x00, 0x10, 0x00, 0xfe, 0x00,
|
||||
0xf0, 0xff, 0xff, 0x00, 0x20, 0x00, 0x82, 0x00, 0x20, 0x00, 0x92, 0x00,
|
||||
0xa0, 0x3f, 0xba, 0x00, 0x20, 0x00, 0x82, 0x00, 0x20, 0x00, 0x82, 0x00,
|
||||
0xa0, 0xff, 0xfe, 0x00, 0x20, 0x00, 0x82, 0x00, 0x20, 0x00, 0x82, 0x00,
|
||||
0xa0, 0x7f, 0xba, 0x00, 0x20, 0x00, 0x92, 0x00, 0x20, 0x00, 0x82, 0x00,
|
||||
0xe0, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00};
|
BIN
utils/dialoged/src/bitmaps/copysize.bmp
Normal file
After Width: | Height: | Size: 238 B |
8
utils/dialoged/src/bitmaps/copysize.xbm
Normal file
@@ -0,0 +1,8 @@
|
||||
#define copysize_width 24
|
||||
#define copysize_height 24
|
||||
static char copysize_bits[] = {
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0xf0,0xbf,0x03,0x10,0x20,0x02,0x10,0x20,0x02,0x10,0xa0,0x0f,0x10,0x20,0x07,
|
||||
0xf0,0x3f,0x02,0x00,0x00,0x00,0x00,0x55,0x05,0x00,0x00,0x00,0x00,0xf9,0x05,
|
||||
0x00,0x08,0x01,0x00,0xf9,0x05,0x00,0x00,0x00,0x00,0x55,0x05,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
|
9
utils/dialoged/src/bitmaps/cpp.xbm
Normal file
@@ -0,0 +1,9 @@
|
||||
#define cpp_width 24
|
||||
#define cpp_height 24
|
||||
static char cpp_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x03, 0x00, 0x30, 0x34, 0x06,
|
||||
0x18, 0x30, 0x06, 0x18, 0x78, 0x0f, 0x18, 0x78, 0x0f, 0x18, 0x30, 0x06,
|
||||
0x30, 0x34, 0x06, 0xe0, 0x03, 0x00, 0x00, 0x40, 0x00, 0x00, 0xc0, 0x00,
|
||||
0x00, 0xff, 0x01, 0x00, 0xc0, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
BIN
utils/dialoged/src/bitmaps/cross.bmp
Normal file
After Width: | Height: | Size: 198 B |
BIN
utils/dialoged/src/bitmaps/dialog.bmp
Normal file
After Width: | Height: | Size: 566 B |
13
utils/dialoged/src/bitmaps/dialog.xbm
Normal file
@@ -0,0 +1,13 @@
|
||||
#define dialog_width 28
|
||||
#define dialog_height 28
|
||||
static char dialog_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xf0, 0xff, 0x7f, 0x00, 0xf0, 0xff, 0x7f, 0x00, 0xf0, 0xff, 0x7f, 0x00,
|
||||
0x10, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x90, 0xff, 0x4f, 0x00,
|
||||
0x90, 0x00, 0x48, 0x00, 0x90, 0x00, 0x48, 0x00, 0x90, 0x00, 0x48, 0x00,
|
||||
0x90, 0xff, 0x4f, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00,
|
||||
0x10, 0x00, 0x40, 0x00, 0xd0, 0xdf, 0x5f, 0x00, 0x50, 0x50, 0x50, 0x00,
|
||||
0x50, 0x50, 0x50, 0x00, 0xd0, 0xdf, 0x5f, 0x00, 0x10, 0x00, 0x40, 0x00,
|
||||
0xf0, 0xff, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00};
|
13
utils/dialoged/src/bitmaps/frame.xbm
Normal file
@@ -0,0 +1,13 @@
|
||||
#define frame_width 28
|
||||
#define frame_height 28
|
||||
static char frame_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xf0, 0xff, 0x7f, 0x00, 0xf0, 0xff, 0x7f, 0x00, 0x10, 0x00, 0x40, 0x00,
|
||||
0xd0, 0x36, 0x40, 0x00, 0xf0, 0xff, 0x7f, 0x00, 0x10, 0x00, 0x40, 0x00,
|
||||
0x10, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00,
|
||||
0x10, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00,
|
||||
0x10, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00,
|
||||
0x10, 0x00, 0x40, 0x00, 0xf0, 0xff, 0x7f, 0x00, 0x10, 0x00, 0x40, 0x00,
|
||||
0x10, 0x00, 0x40, 0x00, 0xf0, 0xff, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00};
|
BIN
utils/dialoged/src/bitmaps/gauge.bmp
Normal file
After Width: | Height: | Size: 382 B |
11
utils/dialoged/src/bitmaps/gauge.xbm
Normal file
@@ -0,0 +1,11 @@
|
||||
#define gauge_width 28
|
||||
#define gauge_height 28
|
||||
static char gauge_bits[] = {
|
||||
0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,
|
||||
0xf0,0x00,0xff,0x07,0xf0,0x00,0x01,0x04,0xf0,0x00,0x01,0x04,0xf0,0x00,0x01,
|
||||
0x04,0xf0,0x00,0x01,0x04,0xf0,0x00,0x01,0x04,0xf0,0x00,0x01,0x04,0xf0,0x00,
|
||||
0xff,0x07,0xf0,0x00,0xff,0x07,0xf0,0x00,0xff,0x07,0xf0,0x00,0xff,0x07,0xf0,
|
||||
0x00,0xff,0x07,0xf0,0x00,0xff,0x07,0xf0,0x00,0xff,0x07,0xf0,0x00,0xff,0x07,
|
||||
0xf0,0x00,0xff,0x07,0xf0,0x00,0xff,0x07,0xf0,0x00,0xff,0x07,0xf0,0x00,0xff,
|
||||
0x07,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,
|
||||
0x00,0x00,0xf0,0x00,0x00,0x00,0xf0};
|
BIN
utils/dialoged/src/bitmaps/group.bmp
Normal file
After Width: | Height: | Size: 382 B |
13
utils/dialoged/src/bitmaps/group.xbm
Normal file
@@ -0,0 +1,13 @@
|
||||
#define group_width 28
|
||||
#define group_height 28
|
||||
static char group_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x80, 0xaa, 0x03, 0x00, 0x00, 0x29, 0x01, 0x00,
|
||||
0x30, 0x91, 0x78, 0x00, 0x90, 0x92, 0x43, 0x00, 0x10, 0x00, 0x40, 0x00,
|
||||
0x10, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00,
|
||||
0x10, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00,
|
||||
0x10, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00,
|
||||
0x10, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00,
|
||||
0x10, 0x00, 0x40, 0x00, 0xf0, 0xff, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00};
|
BIN
utils/dialoged/src/bitmaps/help.bmp
Normal file
After Width: | Height: | Size: 238 B |
9
utils/dialoged/src/bitmaps/help.xbm
Normal file
@@ -0,0 +1,9 @@
|
||||
#define help_width 24
|
||||
#define help_height 24
|
||||
static char help_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x10, 0xe0, 0x07, 0x30, 0x30, 0x0f, 0x70, 0x38, 0x0e, 0xf0, 0x38, 0x0e,
|
||||
0xf0, 0x39, 0x0f, 0xf0, 0x03, 0x07, 0xf0, 0x87, 0x01, 0xf0, 0xcf, 0x01,
|
||||
0xf0, 0xc1, 0x01, 0xb0, 0x01, 0x00, 0x10, 0xc3, 0x01, 0x00, 0xc3, 0x01,
|
||||
0x00, 0x06, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
BIN
utils/dialoged/src/bitmaps/horiz.bmp
Normal file
After Width: | Height: | Size: 238 B |
9
utils/dialoged/src/bitmaps/horiz.xbm
Normal file
@@ -0,0 +1,9 @@
|
||||
#define horiz_width 24
|
||||
#define horiz_height 24
|
||||
static char horiz_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x3e, 0x00, 0x00, 0x22, 0x00, 0x00, 0x22, 0x00, 0x00, 0x22, 0x00,
|
||||
0x00, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0x01,
|
||||
0x40, 0x00, 0x01, 0x40, 0x00, 0x01, 0x40, 0x00, 0x01, 0x40, 0x00, 0x01,
|
||||
0xc0, 0xff, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
BIN
utils/dialoged/src/bitmaps/listbox.bmp
Normal file
After Width: | Height: | Size: 382 B |
13
utils/dialoged/src/bitmaps/listbox.xbm
Normal file
@@ -0,0 +1,13 @@
|
||||
#define listbox_width 28
|
||||
#define listbox_height 28
|
||||
static char listbox_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xff, 0x7f, 0x00,
|
||||
0x10, 0x00, 0x41, 0x00, 0x10, 0x00, 0x49, 0x00, 0xd0, 0x1f, 0x5d, 0x00,
|
||||
0x10, 0x00, 0x41, 0x00, 0x10, 0x00, 0x41, 0x00, 0xd0, 0x7f, 0x7f, 0x00,
|
||||
0x10, 0x00, 0x41, 0x00, 0x10, 0x00, 0x41, 0x00, 0xd0, 0x3f, 0x5d, 0x00,
|
||||
0x10, 0x00, 0x49, 0x00, 0x10, 0x00, 0x41, 0x00, 0xf0, 0xff, 0x7f, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00};
|
BIN
utils/dialoged/src/bitmaps/load.bmp
Normal file
After Width: | Height: | Size: 238 B |
9
utils/dialoged/src/bitmaps/load.xbm
Normal file
@@ -0,0 +1,9 @@
|
||||
#define load_width 24
|
||||
#define load_height 24
|
||||
static char load_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0xe0, 0x00, 0x00, 0x10, 0x05, 0x00, 0x00, 0x06, 0xe0, 0x00, 0x07,
|
||||
0x10, 0x7f, 0x00, 0x10, 0x40, 0x00, 0x10, 0x40, 0x00, 0x10, 0xfe, 0x0f,
|
||||
0x10, 0x01, 0x04, 0x90, 0x00, 0x02, 0x50, 0x00, 0x01, 0x30, 0x80, 0x00,
|
||||
0xf0, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
BIN
utils/dialoged/src/bitmaps/message.bmp
Normal file
After Width: | Height: | Size: 382 B |
13
utils/dialoged/src/bitmaps/message.xbm
Normal file
@@ -0,0 +1,13 @@
|
||||
#define message_width 28
|
||||
#define message_height 28
|
||||
static char message_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x20, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00,
|
||||
0x00, 0xe8, 0x00, 0x00, 0x00, 0xe8, 0x00, 0x00, 0x00, 0xc4, 0x01, 0x00,
|
||||
0x00, 0xc4, 0x01, 0x00, 0x00, 0x82, 0x03, 0x00, 0x00, 0xfe, 0x03, 0x00,
|
||||
0x00, 0x01, 0x07, 0x00, 0x00, 0x01, 0x07, 0x00, 0x80, 0x00, 0x0e, 0x00,
|
||||
0xc0, 0x00, 0x1e, 0x00, 0xe0, 0x01, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00};
|
BIN
utils/dialoged/src/bitmaps/mtext.bmp
Normal file
After Width: | Height: | Size: 382 B |
13
utils/dialoged/src/bitmaps/mtext.xbm
Normal file
@@ -0,0 +1,13 @@
|
||||
#define mtext_width 28
|
||||
#define mtext_height 28
|
||||
static char mtext_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xf0, 0xff, 0xff, 0x00, 0x10, 0x10, 0x90, 0x00, 0x10, 0x13, 0x90, 0x00,
|
||||
0x10, 0xf2, 0xf0, 0x00, 0x90, 0x93, 0xf0, 0x00, 0x90, 0x92, 0xf0, 0x00,
|
||||
0x90, 0xfb, 0xf0, 0x00, 0x10, 0x00, 0xf0, 0x00, 0x10, 0x80, 0xf0, 0x00,
|
||||
0x10, 0x80, 0xf0, 0x00, 0x90, 0xf3, 0xf0, 0x00, 0x90, 0x90, 0xf0, 0x00,
|
||||
0x90, 0x90, 0xf0, 0x00, 0x90, 0xf3, 0x91, 0x00, 0x10, 0x00, 0x90, 0x00,
|
||||
0xf0, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00};
|
BIN
utils/dialoged/src/bitmaps/new.bmp
Normal file
After Width: | Height: | Size: 238 B |
8
utils/dialoged/src/bitmaps/new.xbm
Normal file
@@ -0,0 +1,8 @@
|
||||
#define new_width 24
|
||||
#define new_height 24
|
||||
static char new_bits[] = {
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x80,0x7f,0x00,0x80,0xc0,0x00,0x80,0x40,0x01,0x80,0xc0,0x03,0x80,0x00,0x02,
|
||||
0x80,0x00,0x02,0x80,0x00,0x02,0x80,0x00,0x02,0x80,0x00,0x02,0x80,0x00,0x02,
|
||||
0x80,0x00,0x02,0x80,0x00,0x02,0x80,0xff,0x03,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
|
BIN
utils/dialoged/src/bitmaps/open.bmp
Normal file
After Width: | Height: | Size: 238 B |
13
utils/dialoged/src/bitmaps/panel.xbm
Normal file
@@ -0,0 +1,13 @@
|
||||
#define panel_width 28
|
||||
#define panel_height 28
|
||||
static char panel_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xc0, 0xff, 0x1f, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00,
|
||||
0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00,
|
||||
0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00,
|
||||
0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00,
|
||||
0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00, 0xc0, 0xff, 0x1f, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00};
|
BIN
utils/dialoged/src/bitmaps/picture.bmp
Normal file
After Width: | Height: | Size: 382 B |
11
utils/dialoged/src/bitmaps/picture.xbm
Normal file
@@ -0,0 +1,11 @@
|
||||
#define picture_width 28
|
||||
#define picture_height 28
|
||||
static char picture_bits[] = {
|
||||
0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,
|
||||
0xf0,0x00,0x00,0x00,0xf0,0xf0,0xff,0x7f,0xf0,0x10,0x00,0x40,0xf0,0x10,0x02,
|
||||
0x47,0xf0,0x10,0x85,0x48,0xf0,0x90,0x85,0x48,0xf0,0x50,0x85,0x48,0xf0,0x50,
|
||||
0x0d,0x47,0xf0,0x50,0x15,0x40,0xf0,0x90,0x14,0x40,0xf0,0xf0,0xf4,0x7f,0xf0,
|
||||
0x10,0x09,0x40,0xf0,0x10,0x65,0x46,0xf0,0x10,0x95,0x40,0xf0,0x90,0xf7,0x59,
|
||||
0xf0,0xd0,0x01,0x40,0xf0,0xf0,0xff,0x7f,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,
|
||||
0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,
|
||||
0x00,0x00,0xf0,0x00,0x00,0x00,0xf0};
|
BIN
utils/dialoged/src/bitmaps/radio.bmp
Normal file
After Width: | Height: | Size: 382 B |
13
utils/dialoged/src/bitmaps/radio.xbm
Normal file
@@ -0,0 +1,13 @@
|
||||
#define radio_width 28
|
||||
#define radio_height 28
|
||||
static char radio_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0xf8, 0x00, 0x00, 0x00, 0x06, 0x03, 0x00, 0x00, 0x01, 0x04, 0x00,
|
||||
0x80, 0x00, 0x08, 0x00, 0x80, 0x70, 0x08, 0x00, 0x40, 0xf8, 0x10, 0x00,
|
||||
0x40, 0xfc, 0x11, 0x00, 0x40, 0xfc, 0x11, 0x00, 0x40, 0xfc, 0x11, 0x00,
|
||||
0x40, 0xf8, 0x10, 0x00, 0x80, 0x70, 0x08, 0x00, 0x80, 0x00, 0x08, 0x00,
|
||||
0x00, 0x01, 0x04, 0x00, 0x00, 0x06, 0x03, 0x00, 0x00, 0xf8, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00};
|
9
utils/dialoged/src/bitmaps/report.xbm
Normal file
@@ -0,0 +1,9 @@
|
||||
#define report_width 24
|
||||
#define report_height 24
|
||||
static char report_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xff, 0x03,
|
||||
0x10, 0x00, 0x02, 0x90, 0x77, 0x02, 0x90, 0x7d, 0x02, 0x10, 0x00, 0x02,
|
||||
0x10, 0x37, 0x02, 0x10, 0x00, 0x02, 0x10, 0x00, 0x02, 0xd0, 0x03, 0x02,
|
||||
0x10, 0x00, 0x02, 0xd0, 0xbc, 0x02, 0x10, 0x00, 0x02, 0xd0, 0xbb, 0x02,
|
||||
0x10, 0x00, 0x02, 0xf0, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
BIN
utils/dialoged/src/bitmaps/save.bmp
Normal file
After Width: | Height: | Size: 238 B |
9
utils/dialoged/src/bitmaps/save.xbm
Normal file
@@ -0,0 +1,9 @@
|
||||
#define save_width 24
|
||||
#define save_height 24
|
||||
static char save_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xe0, 0xff, 0x07, 0xa0, 0x00, 0x05, 0xa0, 0x00, 0x07, 0xa0, 0x00, 0x05,
|
||||
0xa0, 0x00, 0x05, 0xa0, 0x00, 0x05, 0xa0, 0x00, 0x05, 0x20, 0xff, 0x04,
|
||||
0x20, 0x00, 0x04, 0x20, 0xff, 0x05, 0x20, 0x3f, 0x05, 0x20, 0x3f, 0x05,
|
||||
0x20, 0x3f, 0x05, 0xc0, 0xff, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
BIN
utils/dialoged/src/bitmaps/scroll.bmp
Normal file
After Width: | Height: | Size: 382 B |
11
utils/dialoged/src/bitmaps/scroll.xbm
Normal file
@@ -0,0 +1,11 @@
|
||||
#define scroll_width 28
|
||||
#define scroll_height 28
|
||||
static char scroll_bits[] = {
|
||||
0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,
|
||||
0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,
|
||||
0x00,0xf0,0xf8,0xff,0xff,0xf0,0x08,0x20,0x80,0xf0,0x08,0x20,0x80,0xf0,0x08,
|
||||
0x21,0x84,0xf0,0x88,0x27,0x8f,0xf0,0xc8,0x27,0x9f,0xf0,0x88,0x27,0x8f,0xf0,
|
||||
0x08,0x21,0x84,0xf0,0x08,0x20,0x80,0xf0,0x08,0x20,0x80,0xf0,0xf8,0xff,0xff,
|
||||
0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,
|
||||
0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,
|
||||
0x00,0x00,0xf0,0x00,0x00,0x00,0xf0};
|
BIN
utils/dialoged/src/bitmaps/slider.bmp
Normal file
After Width: | Height: | Size: 382 B |
11
utils/dialoged/src/bitmaps/slider.xbm
Normal file
@@ -0,0 +1,11 @@
|
||||
#define slider_width 28
|
||||
#define slider_height 28
|
||||
static char slider_bits[] = {
|
||||
0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,
|
||||
0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,
|
||||
0x00,0xf0,0x18,0x00,0xec,0xf0,0x10,0x00,0xa8,0xf0,0x10,0x00,0xa8,0xf0,0x38,
|
||||
0x00,0xfc,0xf0,0x00,0x00,0x00,0xf0,0xf8,0xff,0xff,0xf0,0x08,0x00,0x80,0xf0,
|
||||
0x08,0x03,0x80,0xf0,0x08,0x03,0x80,0xf0,0x08,0x00,0x80,0xf0,0xf8,0xff,0xff,
|
||||
0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,
|
||||
0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,0x00,0x00,0xf0,0x00,
|
||||
0x00,0x00,0xf0,0x00,0x00,0x00,0xf0};
|
BIN
utils/dialoged/src/bitmaps/text.bmp
Normal file
After Width: | Height: | Size: 382 B |
13
utils/dialoged/src/bitmaps/text.xbm
Normal file
@@ -0,0 +1,13 @@
|
||||
#define text_width 28
|
||||
#define text_height 28
|
||||
static char text_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xf0, 0xff, 0xff, 0x00, 0x10, 0x00, 0x80, 0x00, 0x10, 0x00, 0xa0, 0x00,
|
||||
0x10, 0x60, 0xa0, 0x00, 0x10, 0x60, 0xa0, 0x00, 0x10, 0x60, 0xa0, 0x00,
|
||||
0x90, 0xe7, 0xa3, 0x00, 0xd0, 0x6c, 0xa6, 0x00, 0x10, 0x6f, 0xa6, 0x00,
|
||||
0x90, 0x6d, 0xa6, 0x00, 0xd0, 0x6c, 0xa6, 0x00, 0xd0, 0x6c, 0xa6, 0x00,
|
||||
0x90, 0xef, 0xa3, 0x00, 0x10, 0x00, 0xa0, 0x00, 0x10, 0x00, 0x80, 0x00,
|
||||
0xf0, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00};
|
13
utils/dialoged/src/bitmaps/textsw.xbm
Normal file
@@ -0,0 +1,13 @@
|
||||
#define textsw_width 28
|
||||
#define textsw_height 28
|
||||
static char textsw_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xc0, 0xff, 0x1f, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00,
|
||||
0x40, 0x9f, 0x11, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00,
|
||||
0x40, 0x7f, 0x13, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00,
|
||||
0x40, 0xeb, 0x13, 0x00, 0x40, 0x00, 0x10, 0x00, 0x40, 0x00, 0x10, 0x00,
|
||||
0x40, 0xdf, 0x11, 0x00, 0x40, 0x00, 0x10, 0x00, 0xc0, 0xff, 0x1f, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00};
|
BIN
utils/dialoged/src/bitmaps/tick.bmp
Normal file
After Width: | Height: | Size: 198 B |
BIN
utils/dialoged/src/bitmaps/toback.bmp
Normal file
After Width: | Height: | Size: 238 B |
8
utils/dialoged/src/bitmaps/toback.xbm
Normal file
@@ -0,0 +1,8 @@
|
||||
#define toback_width 24
|
||||
#define toback_height 24
|
||||
static char toback_bits[] = {
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x0f,0x00,
|
||||
0x20,0x08,0x00,0x20,0xf8,0x01,0x20,0xf8,0x01,0x20,0xf8,0x01,0x20,0xf8,0x01,
|
||||
0xe0,0xff,0x01,0x00,0xff,0x0f,0x00,0x3f,0x08,0x00,0x3f,0x08,0x00,0x3f,0x08,
|
||||
0x00,0x20,0x08,0x00,0x20,0x08,0x00,0xe0,0x0f,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
|
BIN
utils/dialoged/src/bitmaps/tofront.bmp
Normal file
After Width: | Height: | Size: 238 B |
8
utils/dialoged/src/bitmaps/tofront.xbm
Normal file
@@ -0,0 +1,8 @@
|
||||
#define tofront_width 24
|
||||
#define tofront_height 24
|
||||
static char tofront_bits[] = {
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xe0,0x0f,0x00,
|
||||
0x20,0x08,0x00,0x20,0xff,0x01,0x20,0xff,0x01,0x20,0xff,0x01,0x20,0xff,0x01,
|
||||
0xe0,0xff,0x01,0x00,0xff,0x0f,0x00,0xff,0x09,0x00,0xff,0x09,0x00,0xff,0x09,
|
||||
0x00,0x20,0x08,0x00,0x20,0x08,0x00,0xe0,0x0f,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
|
9
utils/dialoged/src/bitmaps/tree.xbm
Normal file
@@ -0,0 +1,9 @@
|
||||
#define tree_width 24
|
||||
#define tree_height 24
|
||||
static char tree_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x02, 0x00, 0x00, 0x01, 0x07,
|
||||
0xc0, 0xff, 0x00, 0x20, 0x01, 0x07, 0x10, 0x02, 0x00, 0x08, 0x3c, 0x00,
|
||||
0x04, 0x00, 0x00, 0x18, 0x00, 0x00, 0x60, 0x1c, 0x00, 0x80, 0x83, 0x03,
|
||||
0x00, 0x7c, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
46
utils/dialoged/src/bitmaps/treeicn.xbm
Normal file
@@ -0,0 +1,46 @@
|
||||
#define treeicn_width 64
|
||||
#define treeicn_height 64
|
||||
static char treeicn_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x7f, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0xff, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
|
||||
0xff, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x0f, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0xe0, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70,
|
||||
0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x70, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x1c, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f,
|
||||
0xc0, 0x01, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x07, 0x80, 0x7f, 0x00, 0x00,
|
||||
0x00, 0x00, 0xf0, 0x07, 0x00, 0x7f, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x0f,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x1c, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0xc0, 0x0f, 0x38, 0x00, 0xff, 0x00, 0x00, 0x00, 0xf0, 0x03, 0x70,
|
||||
0x80, 0xff, 0x00, 0x00, 0x00, 0xfc, 0x00, 0xe0, 0xc0, 0x00, 0x00, 0x00,
|
||||
0x00, 0x3f, 0x00, 0xc0, 0xe1, 0x00, 0x00, 0x00, 0xfc, 0x0f, 0x00, 0x80,
|
||||
0xf3, 0xff, 0x00, 0x00, 0xfc, 0x03, 0x00, 0x00, 0xbf, 0xff, 0x00, 0x00,
|
||||
0xfc, 0x01, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x00, 0xfc, 0x03, 0x00, 0x00,
|
||||
0x1c, 0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0xfc, 0xff, 0x00, 0x00,
|
||||
0x00, 0x07, 0x00, 0x00, 0xfc, 0xff, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00,
|
||||
0x38, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00,
|
||||
0x00, 0x1c, 0xff, 0x03, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x9c, 0xff, 0x03,
|
||||
0xc0, 0x01, 0x00, 0x00, 0x00, 0xf8, 0x00, 0x00, 0x80, 0x3f, 0x00, 0x00,
|
||||
0x00, 0xf8, 0x00, 0x00, 0x00, 0x3f, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0xe0, 0xff, 0x03, 0xff, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x80,
|
||||
0xff, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00,
|
||||
0x00, 0xc0, 0x01, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0x70,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0xfe, 0x1f, 0xfc, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c,
|
||||
0xfe, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x07, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0xf0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0,
|
||||
0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfe, 0x03, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0xfc, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
BIN
utils/dialoged/src/bitmaps/vert.bmp
Normal file
After Width: | Height: | Size: 238 B |
9
utils/dialoged/src/bitmaps/vert.xbm
Normal file
@@ -0,0 +1,9 @@
|
||||
#define vert_width 24
|
||||
#define vert_height 24
|
||||
static char vert_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0xf8, 0x07, 0x00, 0x08, 0x04, 0x00, 0x08, 0x04, 0xf0, 0x09, 0x04,
|
||||
0x10, 0x09, 0x04, 0x10, 0x09, 0x04, 0x10, 0x09, 0x04, 0x10, 0x09, 0x04,
|
||||
0xf0, 0x09, 0x04, 0x00, 0x08, 0x04, 0x00, 0x08, 0x04, 0x00, 0xf8, 0x07,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
46
utils/dialoged/src/bitmaps/wxbuild.xbm
Normal file
@@ -0,0 +1,46 @@
|
||||
#define wxbuild_width 64
|
||||
#define wxbuild_height 64
|
||||
static char wxbuild_bits[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x03, 0x33, 0x0c, 0xf0, 0xff, 0xff, 0xff, 0x3f,
|
||||
0x03, 0x33, 0x0c, 0xf0, 0xff, 0xff, 0xff, 0x3f, 0x33, 0xc3, 0x03, 0x30,
|
||||
0x00, 0x00, 0x00, 0x30, 0x33, 0xc3, 0x03, 0x30, 0x00, 0x00, 0x00, 0x30,
|
||||
0x33, 0xc3, 0x03, 0x30, 0x3f, 0xcf, 0xcc, 0x33, 0x33, 0xc3, 0x03, 0x30,
|
||||
0x3f, 0xcf, 0xcc, 0x33, 0xcc, 0x30, 0x0c, 0x30, 0x00, 0x00, 0x00, 0x30,
|
||||
0xcc, 0x30, 0x0c, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30,
|
||||
0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30,
|
||||
0x00, 0xc0, 0xff, 0xff, 0xff, 0xf3, 0x33, 0x33, 0x00, 0xc0, 0xff, 0xff,
|
||||
0xff, 0xf3, 0x33, 0x33, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x03, 0x00, 0x30,
|
||||
0x00, 0xc0, 0x00, 0x00, 0x00, 0x03, 0x00, 0x30, 0x00, 0xc0, 0x00, 0x00,
|
||||
0x00, 0x03, 0x00, 0x30, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x03, 0x00, 0x30,
|
||||
0x00, 0xc0, 0xfc, 0xf3, 0x0f, 0x33, 0xfc, 0x30, 0x00, 0xc0, 0xfc, 0xf3,
|
||||
0x0f, 0x33, 0xfc, 0x30, 0x00, 0xc0, 0x0c, 0x33, 0x0c, 0xf3, 0x00, 0x30,
|
||||
0x00, 0xc0, 0x0c, 0x33, 0x0c, 0xf3, 0x00, 0x30, 0x00, 0xc0, 0xfc, 0xf3,
|
||||
0x0f, 0xf3, 0x03, 0x30, 0x00, 0xc0, 0xfc, 0xf3, 0x0f, 0xf3, 0x03, 0x30,
|
||||
0x00, 0xc0, 0x00, 0x00, 0x00, 0xf3, 0x0f, 0x30, 0x00, 0xc0, 0x00, 0x00,
|
||||
0x00, 0xf3, 0x0f, 0x30, 0x00, 0xc0, 0x00, 0x00, 0x00, 0xf3, 0x3f, 0x30,
|
||||
0x00, 0xc0, 0x00, 0x00, 0x00, 0xf3, 0x3f, 0x30, 0xff, 0xff, 0x00, 0x00,
|
||||
0x00, 0xf3, 0xff, 0x30, 0xff, 0xff, 0x00, 0x00, 0x00, 0xf3, 0xff, 0x30,
|
||||
0xff, 0xff, 0x00, 0x00, 0x00, 0xf3, 0xff, 0x33, 0xff, 0xff, 0x00, 0x00,
|
||||
0x00, 0xf3, 0xff, 0x33, 0x03, 0xc3, 0x00, 0x00, 0x00, 0xf3, 0xff, 0x3f,
|
||||
0x03, 0xc3, 0x00, 0x00, 0x00, 0xf3, 0xff, 0x3f, 0x03, 0xc3, 0x00, 0x00,
|
||||
0x00, 0xf3, 0x3f, 0x30, 0x03, 0xc3, 0x00, 0x00, 0x00, 0xf3, 0x3f, 0x30,
|
||||
0xff, 0xff, 0x00, 0x00, 0x00, 0xf3, 0x3c, 0x30, 0xff, 0xff, 0x00, 0x00,
|
||||
0x00, 0xf3, 0x3c, 0x30, 0x03, 0xc0, 0xff, 0xff, 0xff, 0x33, 0xf0, 0x30,
|
||||
0x03, 0xc0, 0xff, 0xff, 0xff, 0x33, 0xf0, 0x30, 0x03, 0x00, 0x00, 0x33,
|
||||
0x00, 0x00, 0xf0, 0x30, 0x03, 0x00, 0x00, 0x33, 0x00, 0x00, 0xf0, 0x30,
|
||||
0x03, 0x00, 0x00, 0xf3, 0xfc, 0x00, 0xc0, 0x33, 0x03, 0x00, 0x00, 0xf3,
|
||||
0xfc, 0x00, 0xc0, 0x33, 0x03, 0xc0, 0x0c, 0x33, 0x00, 0x00, 0xc0, 0x33,
|
||||
0x03, 0xc0, 0x0c, 0x33, 0x00, 0x00, 0xc0, 0x33, 0xf3, 0xf3, 0x3f, 0x33,
|
||||
0xfc, 0xcc, 0x0f, 0x30, 0xf3, 0xf3, 0x3f, 0x33, 0xfc, 0xcc, 0x0f, 0x30,
|
||||
0x33, 0xc0, 0x0c, 0x33, 0x00, 0x00, 0x00, 0x30, 0x33, 0xc0, 0x0c, 0x33,
|
||||
0x00, 0x00, 0x00, 0x30, 0x33, 0x00, 0x00, 0xf3, 0xff, 0xff, 0xff, 0x3f,
|
||||
0x33, 0x00, 0x00, 0xf3, 0xff, 0xff, 0xff, 0x3f, 0x33, 0x00, 0x00, 0x03,
|
||||
0x00, 0x00, 0x00, 0x00, 0x33, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00,
|
||||
0xf3, 0x03, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0xf3, 0x03, 0x00, 0x03,
|
||||
0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00,
|
||||
0x03, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0x03,
|
||||
0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
|
12
utils/dialoged/src/bitmaps/wxwin.xbm
Normal file
@@ -0,0 +1,12 @@
|
||||
#define wxwin_width 32
|
||||
#define wxwin_height 32
|
||||
static char wxwin_bits[] = {
|
||||
0x00,0x80,0x01,0x00,0x81,0x8f,0x1d,0xc0,0xc5,0x9a,0x25,0xa0,0x54,0x92,0x49,
|
||||
0x50,0x51,0x92,0x91,0x28,0xc5,0x9f,0x21,0x15,0xd4,0x9a,0x41,0x0a,0xd1,0x92,
|
||||
0x81,0x04,0x45,0x92,0x41,0x09,0x54,0x93,0xa1,0x12,0x51,0x9f,0x51,0x24,0xc5,
|
||||
0x99,0x29,0x48,0x54,0x80,0x15,0x90,0x10,0x80,0x0d,0xe0,0x00,0x80,0x01,0x00,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00,0x80,0x01,0x00,0x00,0x83,0x01,
|
||||
0x00,0x80,0x81,0x01,0x08,0x80,0x80,0x01,0x18,0x38,0x87,0x31,0x30,0xfc,0x8f,
|
||||
0x31,0x20,0xfc,0x83,0x01,0x20,0xfc,0x83,0x81,0x23,0xfc,0x83,0x01,0x20,0xfc,
|
||||
0x8f,0x01,0x20,0xfc,0x8f,0x31,0x30,0xf8,0x8f,0x31,0x18,0x70,0x87,0x01,0x08,
|
||||
0x00,0x80,0x01,0x00,0x00,0x80,0x01,0x00};
|
53
utils/dialoged/src/dialoged.cpp
Normal file
@@ -0,0 +1,53 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: dialoged.cpp
|
||||
// Purpose: Main Dialog Editor implementation file
|
||||
// Author: Julian Smart
|
||||
// Modified by:
|
||||
// Created: 04/01/98
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) Julian Smart
|
||||
// Licence: wxWindows license
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma implementation "dialoged.h"
|
||||
#endif
|
||||
|
||||
// For compilers that support precompilation, includes "wx/wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/wx.h"
|
||||
#endif
|
||||
|
||||
#include "dialoged.h"
|
||||
|
||||
// A macro needed for some compilers (AIX) that need 'main' to be defined
|
||||
// in the application itself.
|
||||
IMPLEMENT_WXWIN_MAIN
|
||||
|
||||
IMPLEMENT_APP(MyApp)
|
||||
|
||||
MyApp::MyApp(void)
|
||||
{
|
||||
}
|
||||
|
||||
wxResourceManager theResourceManager;
|
||||
|
||||
bool MyApp::OnInit(void)
|
||||
{
|
||||
theResourceManager.Initialize();
|
||||
theResourceManager.ShowResourceEditor(TRUE);
|
||||
|
||||
if (argc > 1)
|
||||
theResourceManager.Load(argv[1]);
|
||||
|
||||
SetTopWindow(theResourceManager.GetEditorFrame());
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
8
utils/dialoged/src/dialoged.def
Normal file
@@ -0,0 +1,8 @@
|
||||
NAME DialogEd
|
||||
DESCRIPTION 'wxWindows Dialog Editor'
|
||||
EXETYPE WINDOWS
|
||||
STUB 'WINSTUB.EXE'
|
||||
CODE PRELOAD MOVEABLE DISCARDABLE
|
||||
DATA PRELOAD MOVEABLE MULTIPLE
|
||||
HEAPSIZE 1024
|
||||
STACKSIZE 8192
|
36
utils/dialoged/src/dialoged.h
Normal file
@@ -0,0 +1,36 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: dialoged.h
|
||||
// Purpose: Dialog Editor application header file
|
||||
// Author: Julian Smart
|
||||
// Modified by:
|
||||
// Created: 04/01/98
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) Julian Smart
|
||||
// Licence: wxWindows license
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma interface "dialoged.h"
|
||||
#endif
|
||||
|
||||
#ifndef dialogedh
|
||||
#define dialogedh
|
||||
|
||||
#include "proplist.h"
|
||||
#include "reseditr.h"
|
||||
|
||||
class MyChild;
|
||||
|
||||
// Define a new application
|
||||
class MyApp: public wxApp
|
||||
{
|
||||
public:
|
||||
MyApp(void);
|
||||
bool OnInit(void);
|
||||
};
|
||||
|
||||
DECLARE_APP(MyApp)
|
||||
|
||||
extern wxFrame *GetMainFrame(void);
|
||||
|
||||
#endif
|
BIN
utils/dialoged/src/dialoged.ico
Normal file
After Width: | Height: | Size: 766 B |
41
utils/dialoged/src/dialoged.rc
Normal file
@@ -0,0 +1,41 @@
|
||||
aaa ICON "dialoged.ico"
|
||||
DIALOGEDICON ICON "dialoged.ico"
|
||||
|
||||
aiai_icn ICON "aiai.ico"
|
||||
#include "wx/msw/wx.rc"
|
||||
|
||||
DIALOGBOXTOOL BITMAP "bitmaps/dialog.bmp"
|
||||
MESSAGETOOL BITMAP "bitmaps/message.bmp"
|
||||
BUTTONTOOL BITMAP "bitmaps/button.bmp"
|
||||
CHECKBOXTOOL BITMAP "bitmaps/check.bmp"
|
||||
RADIOBOXTOOL BITMAP "bitmaps/radio.bmp"
|
||||
LISTBOXTOOL BITMAP "bitmaps/listbox.bmp"
|
||||
CHOICETOOL BITMAP "bitmaps/choice.bmp"
|
||||
TEXTTOOL BITMAP "bitmaps/text.bmp"
|
||||
MULTITEXTTOOL BITMAP "bitmaps/mtext.bmp"
|
||||
SLIDERTOOL BITMAP "bitmaps/slider.bmp"
|
||||
ARROWTOOL BITMAP "bitmaps/arrow.bmp"
|
||||
GROUPTOOL BITMAP "bitmaps/group.bmp"
|
||||
GAUGETOOL BITMAP "bitmaps/gauge.bmp"
|
||||
PICTURETOOL BITMAP "bitmaps/picture.bmp"
|
||||
BMPBUTTONTOOL BITMAP "bitmaps/bmpbuttn.bmp"
|
||||
SCROLLBARTOOL BITMAP "bitmaps/scroll.bmp"
|
||||
|
||||
NEWTOOL BITMAP "bitmaps/new.bmp"
|
||||
LOADTOOL BITMAP "bitmaps/load.bmp"
|
||||
SAVETOOL BITMAP "bitmaps/save.bmp"
|
||||
VERTTOOL BITMAP "bitmaps/vert.bmp"
|
||||
ALIGNTTOOL BITMAP "bitmaps/alignt.bmp"
|
||||
ALIGNBTOOL BITMAP "bitmaps/alignb.bmp"
|
||||
ALIGNLTOOL BITMAP "bitmaps/alignl.bmp"
|
||||
ALIGNRTOOL BITMAP "bitmaps/alignr.bmp"
|
||||
HORIZTOOL BITMAP "bitmaps/horiz.bmp"
|
||||
HELPTOOL BITMAP "bitmaps/help.bmp"
|
||||
COPYSIZETOOL BITMAP "bitmaps/copysize.bmp"
|
||||
TOFRONTTOOL BITMAP "bitmaps/tofront.bmp"
|
||||
TOBACKTOOL BITMAP "bitmaps/toback.bmp"
|
||||
|
||||
WXWINBMP BITMAP "bitmaps/wxwin.bmp"
|
||||
|
||||
tick_bmp BITMAP "bitmaps/tick.bmp"
|
||||
cross_bmp BITMAP "bitmaps/cross.bmp"
|
1029
utils/dialoged/src/dlghndlr.cpp
Normal file
123
utils/dialoged/src/dlghndlr.h
Normal file
@@ -0,0 +1,123 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: dlghndlr.h
|
||||
// Purpose: Dialog handler
|
||||
// Author: Julian Smart
|
||||
// Modified by:
|
||||
// Created: 04/01/98
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) Julian Smart
|
||||
// Licence: wxWindows license
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _DLGHNDLR_H_
|
||||
#define _DLGHNDLR_H_
|
||||
|
||||
#define wxDRAG_MODE_NONE 0
|
||||
#define wxDRAG_MODE_START_LEFT 1
|
||||
#define wxDRAG_MODE_CONTINUE_LEFT 2
|
||||
#define wxDRAG_MODE_START_RIGHT 3
|
||||
#define wxDRAG_MODE_CONTINUE_RIGHT 4
|
||||
#define wxDRAG_TYPE_NONE 0
|
||||
#define wxDRAG_TYPE_ITEM 100
|
||||
|
||||
#define wxKEY_SHIFT 1
|
||||
#define wxKEY_CTRL 2
|
||||
|
||||
class wxResourceEditorDialogHandler: public wxEvtHandler
|
||||
{
|
||||
DECLARE_CLASS(wxResourceEditorDialogHandler)
|
||||
public:
|
||||
wxResourceManager *resourceManager;
|
||||
wxPanel *handlerDialog;
|
||||
wxItemResource *handlerResource;
|
||||
wxEvtHandler *handlerOldHandler;
|
||||
|
||||
wxControl *dragItem;
|
||||
int dragMode;
|
||||
int dragType;
|
||||
int dragTolerance;
|
||||
bool checkTolerance;
|
||||
int firstDragX;
|
||||
int firstDragY;
|
||||
int oldDragX;
|
||||
int oldDragY;
|
||||
|
||||
wxResourceEditorDialogHandler(wxPanel *dialog, wxItemResource *resource, wxEvtHandler *oldHandler,
|
||||
wxResourceManager *manager);
|
||||
~wxResourceEditorDialogHandler(void) {}
|
||||
|
||||
bool OnClose(void);
|
||||
|
||||
void OnPaint(wxPaintEvent& event);
|
||||
void OnMouseEvent(wxMouseEvent& event);
|
||||
|
||||
virtual void OnItemEvent(wxControl *win, wxMouseEvent& event);
|
||||
virtual void OnLeftClick(int x, int y, int keys);
|
||||
virtual void OnRightClick(int x, int y, int keys);
|
||||
virtual void OnItemLeftClick(wxControl *item, int x, int y, int keys);
|
||||
virtual void OnItemRightClick(wxControl *item, int x, int y, int keys);
|
||||
virtual void OnItemSelect(wxControl *item, bool select);
|
||||
virtual void OnItemMove(wxControl *item, int x, int y) {};
|
||||
virtual void OnItemSize(wxControl *item, int w, int h) {};
|
||||
|
||||
void AddChildHandlers(void);
|
||||
void PaintSelectionHandles(wxDC& dc);
|
||||
void ProcessItemEvent(wxControl *item, wxMouseEvent& event, int selectionHandle);
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
||||
class wxResourceEditorControlHandler: public wxEvtHandler
|
||||
{
|
||||
DECLARE_CLASS(wxResourceEditorControlHandler)
|
||||
public:
|
||||
// wxResourceManager *resourceManager;
|
||||
wxControl *handlerControl;
|
||||
// wxItemResource *handlerResource;
|
||||
wxEvtHandler *handlerOldHandler;
|
||||
|
||||
bool isSelected;
|
||||
int handleSize; // selection handle size
|
||||
int handleMargin; // Distance between item edge and handle edge
|
||||
static int dragOffsetX; // Distance between pointer at start of drag and
|
||||
static int dragOffsetY; // top-left of item
|
||||
|
||||
wxResourceEditorControlHandler(wxControl *control, wxEvtHandler *oldHandler);
|
||||
~wxResourceEditorControlHandler(void) {}
|
||||
|
||||
void OnMouseEvent(wxMouseEvent& event);
|
||||
|
||||
// Manipulation and drawing of items in Edit Mode
|
||||
|
||||
// Calculate position of the 8 handles
|
||||
virtual void CalcSelectionHandles(int *hx, int *hy);
|
||||
virtual void DrawSelectionHandles(wxDC& dc, bool erase = FALSE);
|
||||
virtual void DrawBoundingBox(wxDC& dc, int x, int y, int w, int h);
|
||||
virtual void SelectItem(bool select);
|
||||
virtual inline bool IsSelected(void) { return isSelected; }
|
||||
|
||||
// Returns TRUE or FALSE
|
||||
virtual bool HitTest(int x, int y);
|
||||
|
||||
// Returns 0 (no hit), 1 - 8 for which selection handle
|
||||
// (clockwise from top middle)
|
||||
virtual int SelectionHandleHitTest(int x, int y);
|
||||
|
||||
// If selectionHandle is zero, not dragging the selection handle.
|
||||
virtual void OnDragBegin(int x, int y, int keys, wxDC& dc, int selectionHandle);
|
||||
virtual void OnDragContinue(bool paintIt, int x, int y, int keys, wxDC& dc, int selectionHandle);
|
||||
virtual void OnDragEnd(int x, int y, int keys, wxDC& dc, int selectionHandle);
|
||||
|
||||
// These functions call panel functions
|
||||
// by default.
|
||||
virtual void OldOnMove(int x, int y);
|
||||
virtual void OldOnSize(int w, int h);
|
||||
virtual void OnLeftClick(int x, int y, int keys);
|
||||
virtual void OnRightClick(int x, int y, int keys);
|
||||
virtual void OnSelect(bool select);
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
||||
#endif
|
||||
|
309
utils/dialoged/src/editrpal.cpp
Normal file
@@ -0,0 +1,309 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: editrpal.cpp
|
||||
// Purpose: Editor tool palette
|
||||
// Author: Julian Smart
|
||||
// Modified by:
|
||||
// Created: 04/01/98
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) Julian Smart
|
||||
// Licence: wxWindows license
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma implementation "editrpal.h"
|
||||
#endif
|
||||
|
||||
// For compilers that support precompilation, includes "wx/wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/wx.h"
|
||||
#endif
|
||||
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
|
||||
#if defined(__WINDOWS__) && !defined(__GNUWIN32__)
|
||||
#include <strstrea.h>
|
||||
#else
|
||||
#include <strstream.h>
|
||||
#endif
|
||||
|
||||
#include "reseditr.h"
|
||||
#include "editrpal.h"
|
||||
|
||||
// Bitmaps for palette
|
||||
wxBitmap *PaletteFrameBitmap = NULL;
|
||||
wxBitmap *PaletteDialogBoxBitmap = NULL;
|
||||
wxBitmap *PalettePanelBitmap = NULL;
|
||||
wxBitmap *PaletteCanvasBitmap = NULL;
|
||||
wxBitmap *PaletteTextWindowBitmap = NULL;
|
||||
wxBitmap *PaletteMessageBitmap = NULL;
|
||||
wxBitmap *PaletteButtonBitmap = NULL;
|
||||
wxBitmap *PaletteCheckBoxBitmap = NULL;
|
||||
wxBitmap *PaletteListBoxBitmap = NULL;
|
||||
wxBitmap *PaletteRadioBoxBitmap = NULL;
|
||||
wxBitmap *PaletteChoiceBitmap = NULL;
|
||||
wxBitmap *PaletteTextBitmap = NULL;
|
||||
wxBitmap *PaletteMultiTextBitmap = NULL;
|
||||
wxBitmap *PaletteSliderBitmap = NULL;
|
||||
wxBitmap *PaletteArrowBitmap = NULL;
|
||||
wxBitmap *PaletteGroupBitmap = NULL;
|
||||
wxBitmap *PaletteGaugeBitmap = NULL;
|
||||
wxBitmap *PalettePictureBitmap = NULL;
|
||||
wxBitmap *PaletteBitmapButtonBitmap = NULL;
|
||||
wxBitmap *PaletteScrollbarBitmap = NULL;
|
||||
|
||||
#ifdef __X__
|
||||
#include "bitmaps/frame.xbm"
|
||||
#include "bitmaps/dialog.xbm"
|
||||
#include "bitmaps/panel.xbm"
|
||||
#include "bitmaps/canvas.xbm"
|
||||
#include "bitmaps/textsw.xbm"
|
||||
#include "bitmaps/message.xbm"
|
||||
#include "bitmaps/button.xbm"
|
||||
#include "bitmaps/check.xbm"
|
||||
#include "bitmaps/listbox.xbm"
|
||||
#include "bitmaps/radio.xbm"
|
||||
#include "bitmaps/choice.xbm"
|
||||
#include "bitmaps/text.xbm"
|
||||
#include "bitmaps/mtext.xbm"
|
||||
#include "bitmaps/slider.xbm"
|
||||
#include "bitmaps/arrow.xbm"
|
||||
#include "bitmaps/group.xbm"
|
||||
#include "bitmaps/gauge.xbm"
|
||||
#include "bitmaps/scroll.xbm"
|
||||
#include "bitmaps/picture.xbm"
|
||||
#include "bitmaps/bmpbuttn.xbm"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Object editor tool palette
|
||||
*
|
||||
*/
|
||||
|
||||
BEGIN_EVENT_TABLE(EditorToolPalette, wxToolBarSimple)
|
||||
EVT_PAINT(EditorToolPalette::OnPaint)
|
||||
END_EVENT_TABLE()
|
||||
|
||||
EditorToolPalette::EditorToolPalette(wxResourceManager *manager, wxFrame *frame, int x, int y, int w, int h,
|
||||
long style, int direction, int RowsOrColumns):
|
||||
TOOLPALETTECLASS(frame, -1, wxPoint(x, y), wxSize(w, h), style, direction, RowsOrColumns)
|
||||
{
|
||||
currentlySelected = -1;
|
||||
resourceManager = manager;
|
||||
}
|
||||
|
||||
bool EditorToolPalette::OnLeftClick(int toolIndex, bool toggled)
|
||||
{
|
||||
// BEGIN mutual exclusivity code
|
||||
if (toggled && (currentlySelected != -1) && (toolIndex != currentlySelected))
|
||||
ToggleTool(currentlySelected, FALSE);
|
||||
|
||||
if (toggled)
|
||||
currentlySelected = toolIndex;
|
||||
else if (currentlySelected == toolIndex)
|
||||
currentlySelected = -1;
|
||||
// END mutual exclusivity code
|
||||
/*
|
||||
if (MainFrame)
|
||||
{
|
||||
if (toggled && (toolIndex != PALETTE_ARROW))
|
||||
MainFrame->canvas->SetCursor(crossCursor);
|
||||
else
|
||||
MainFrame->canvas->SetCursor(handCursor);
|
||||
}
|
||||
*/
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void EditorToolPalette::OnMouseEnter(int toolIndex)
|
||||
{
|
||||
if (!resourceManager) return;
|
||||
wxFrame *managerFrame = resourceManager->GetEditorFrame();
|
||||
|
||||
if (toolIndex > -1)
|
||||
{
|
||||
switch (toolIndex)
|
||||
{
|
||||
case PALETTE_FRAME:
|
||||
managerFrame->SetStatusText("wxFrame");
|
||||
break;
|
||||
case PALETTE_DIALOG_BOX:
|
||||
managerFrame->SetStatusText("wxDialog");
|
||||
break;
|
||||
case PALETTE_PANEL:
|
||||
managerFrame->SetStatusText("wxPanel");
|
||||
break;
|
||||
case PALETTE_CANVAS:
|
||||
managerFrame->SetStatusText("wxCanvas");
|
||||
break;
|
||||
case PALETTE_TEXT_WINDOW:
|
||||
managerFrame->SetStatusText("wxTextWindow");
|
||||
break;
|
||||
case PALETTE_BUTTON:
|
||||
managerFrame->SetStatusText("wxButton");
|
||||
break;
|
||||
case PALETTE_MESSAGE:
|
||||
managerFrame->SetStatusText("wxMessage");
|
||||
break;
|
||||
case PALETTE_TEXT:
|
||||
managerFrame->SetStatusText("wxText");
|
||||
break;
|
||||
case PALETTE_MULTITEXT:
|
||||
managerFrame->SetStatusText("wxMultiText");
|
||||
break;
|
||||
case PALETTE_CHOICE:
|
||||
managerFrame->SetStatusText("wxChoice");
|
||||
break;
|
||||
case PALETTE_CHECKBOX:
|
||||
managerFrame->SetStatusText("wxCheckBox");
|
||||
break;
|
||||
case PALETTE_RADIOBOX:
|
||||
managerFrame->SetStatusText("wxRadioBox");
|
||||
break;
|
||||
case PALETTE_LISTBOX:
|
||||
managerFrame->SetStatusText("wxListBox");
|
||||
break;
|
||||
case PALETTE_SLIDER:
|
||||
managerFrame->SetStatusText("wxSlider");
|
||||
break;
|
||||
case PALETTE_GROUPBOX:
|
||||
managerFrame->SetStatusText("wxGroupBox");
|
||||
break;
|
||||
case PALETTE_GAUGE:
|
||||
managerFrame->SetStatusText("wxGauge");
|
||||
break;
|
||||
case PALETTE_BITMAP_MESSAGE:
|
||||
managerFrame->SetStatusText("Bitmap wxMessage");
|
||||
break;
|
||||
case PALETTE_BITMAP_BUTTON:
|
||||
managerFrame->SetStatusText("Bitmap wxButton");
|
||||
break;
|
||||
case PALETTE_SCROLLBAR:
|
||||
managerFrame->SetStatusText("wxScrollBar");
|
||||
break;
|
||||
case PALETTE_ARROW:
|
||||
managerFrame->SetStatusText("Pointer");
|
||||
break;
|
||||
}
|
||||
}
|
||||
else managerFrame->SetStatusText("");
|
||||
}
|
||||
|
||||
void EditorToolPalette::OnPaint(wxPaintEvent& event)
|
||||
{
|
||||
TOOLPALETTECLASS::OnPaint(event);
|
||||
|
||||
wxPaintDC dc(this);
|
||||
|
||||
int w, h;
|
||||
GetSize(&w, &h);
|
||||
dc.SetPen(wxBLACK_PEN);
|
||||
dc.SetBrush(wxTRANSPARENT_BRUSH);
|
||||
dc.DrawLine(0, h-1, w, h-1);
|
||||
}
|
||||
|
||||
bool wxResourceManager::InitializeTools(void)
|
||||
{
|
||||
// Load palette bitmaps
|
||||
#ifdef __WINDOWS__
|
||||
PaletteFrameBitmap = new wxBitmap("FRAMETOOL");
|
||||
PaletteDialogBoxBitmap = new wxBitmap("DIALOGBOXTOOL");
|
||||
PalettePanelBitmap = new wxBitmap("PANELTOOL");
|
||||
PaletteCanvasBitmap = new wxBitmap("CANVASTOOL");
|
||||
PaletteTextWindowBitmap = new wxBitmap("TEXTWINDOWTOOL");
|
||||
PaletteMessageBitmap = new wxBitmap("MESSAGETOOL");
|
||||
PaletteButtonBitmap = new wxBitmap("BUTTONTOOL");
|
||||
PaletteCheckBoxBitmap = new wxBitmap("CHECKBOXTOOL");
|
||||
PaletteListBoxBitmap = new wxBitmap("LISTBOXTOOL");
|
||||
PaletteRadioBoxBitmap = new wxBitmap("RADIOBOXTOOL");
|
||||
PaletteChoiceBitmap = new wxBitmap("CHOICETOOL");
|
||||
PaletteTextBitmap = new wxBitmap("TEXTTOOL");
|
||||
PaletteMultiTextBitmap = new wxBitmap("MULTITEXTTOOL");
|
||||
PaletteSliderBitmap = new wxBitmap("SLIDERTOOL");
|
||||
PaletteArrowBitmap = new wxBitmap("ARROWTOOL");
|
||||
PaletteGroupBitmap = new wxBitmap("GROUPTOOL");
|
||||
PaletteGaugeBitmap = new wxBitmap("GAUGETOOL");
|
||||
PalettePictureBitmap = new wxBitmap("PICTURETOOL");
|
||||
PaletteBitmapButtonBitmap = new wxBitmap("BMPBUTTONTOOL");
|
||||
PaletteScrollbarBitmap = new wxBitmap("SCROLLBARTOOL");
|
||||
#endif
|
||||
#ifdef __X__
|
||||
PaletteFrameBitmap = new wxBitmap(frame_bits, frame_width, frame_height);
|
||||
PaletteDialogBoxBitmap = new wxBitmap(dialog_bits, dialog_width, dialog_height);
|
||||
PalettePanelBitmap = new wxBitmap(panel_bits, panel_width, panel_height);
|
||||
PaletteCanvasBitmap = new wxBitmap(canvas_bits, canvas_width, canvas_height);
|
||||
PaletteTextWindowBitmap = new wxBitmap(textsw_bits, textsw_width, textsw_height);
|
||||
PaletteMessageBitmap = new wxBitmap(message_bits, message_width, message_height);
|
||||
PaletteButtonBitmap = new wxBitmap(button_bits, button_width, button_height);
|
||||
PaletteCheckBoxBitmap = new wxBitmap(check_bits, check_width, check_height);
|
||||
PaletteListBoxBitmap = new wxBitmap(listbox_bits, listbox_width, listbox_height);
|
||||
PaletteRadioBoxBitmap = new wxBitmap(radio_bits, radio_width, radio_height);
|
||||
PaletteChoiceBitmap = new wxBitmap(choice_bits, choice_width, choice_height);
|
||||
PaletteTextBitmap = new wxBitmap(text_bits, text_width, text_height);
|
||||
PaletteMultiTextBitmap = new wxBitmap(mtext_bits, mtext_width, mtext_height);
|
||||
PaletteSliderBitmap = new wxBitmap(slider_bits, slider_width, slider_height);
|
||||
PaletteArrowBitmap = new wxBitmap(arrow_bits, arrow_width, arrow_height);
|
||||
PaletteGroupBitmap = new wxBitmap(group_bits, group_width, group_height);
|
||||
PaletteGaugeBitmap = new wxBitmap(gauge_bits, gauge_width, gauge_height);
|
||||
PalettePictureBitmap = new wxBitmap(picture_bits, picture_width, picture_height);
|
||||
PaletteBitmapButtonBitmap = new wxBitmap(bmpbuttn_bits, bmpbuttn_width, bmpbuttn_height);
|
||||
PaletteScrollbarBitmap = new wxBitmap(scroll_bits, scroll_width, scroll_height);
|
||||
#endif
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
EditorToolPalette *wxResourceManager::OnCreatePalette(wxFrame *parent)
|
||||
{
|
||||
EditorToolPalette *palette = new EditorToolPalette(this, parent, 0, 0, -1, -1, wxNO_BORDER, // wxTB_3DBUTTONS,
|
||||
wxVERTICAL, 1);
|
||||
|
||||
palette->SetMargins(2, 2);
|
||||
/*
|
||||
#ifdef __WINDOWS__
|
||||
if (palette->IsKindOf(CLASSINFO(wxToolBarMSW)))
|
||||
((wxToolBarMSW *)palette)->SetDefaultSize(22, 22);
|
||||
#endif
|
||||
*/
|
||||
|
||||
// palette->GetDC()->SetBackground(wxLIGHT_GREY_BRUSH);
|
||||
palette->AddTool(PALETTE_ARROW, PaletteArrowBitmap, (wxBitmap *)NULL, TRUE, 0, -1, NULL, "Pointer");
|
||||
/*
|
||||
palette->AddTool(PALETTE_FRAME, PaletteFrameBitmap, (wxBitmap *)NULL, TRUE, 0, -1, NULL, "wxFrame");
|
||||
palette->AddTool(PALETTE_DIALOG_BOX, PaletteDialogBoxBitmap, (wxBitmap *)NULL, TRUE, 0, -1, NULL, "wxDialog");
|
||||
palette->AddTool(PALETTE_PANEL, PalettePanelBitmap, (wxBitmap *)NULL, TRUE, 0, -1, NULL, "wxPanel");
|
||||
palette->AddTool(PALETTE_CANVAS, PaletteCanvasBitmap, (wxBitmap *)NULL, TRUE, 0, -1, NULL, "wxCanvas");
|
||||
palette->AddTool(PALETTE_TEXT_WINDOW, PaletteTextWindowBitmap, (wxBitmap *)NULL, TRUE, 0, -1, NULL, "wxTextWindow");
|
||||
|
||||
*/
|
||||
palette->AddTool(PALETTE_MESSAGE, PaletteMessageBitmap, (wxBitmap *)NULL, TRUE, 0, -1, NULL, "wxMessage");
|
||||
palette->AddTool(PALETTE_BITMAP_MESSAGE, PalettePictureBitmap, (wxBitmap *)NULL, TRUE, 0, -1, NULL, "Picture wxMessage");
|
||||
palette->AddTool(PALETTE_BUTTON, PaletteButtonBitmap, (wxBitmap *)NULL, TRUE, 0, -1, NULL, "Button");
|
||||
palette->AddTool(PALETTE_BITMAP_BUTTON, PaletteBitmapButtonBitmap, (wxBitmap *)NULL, TRUE, 0, -1, NULL, "Picture wxButton");
|
||||
palette->AddTool(PALETTE_CHECKBOX, PaletteCheckBoxBitmap, (wxBitmap *)NULL, TRUE, 0, -1, NULL, "wxCheckBox");
|
||||
palette->AddTool(PALETTE_RADIOBOX, PaletteRadioBoxBitmap, (wxBitmap *)NULL, TRUE, 0, -1, NULL, "wxRadioBox");
|
||||
palette->AddTool(PALETTE_LISTBOX, PaletteListBoxBitmap, (wxBitmap *)NULL, TRUE, 0, -1, NULL, "wxListBox");
|
||||
palette->AddTool(PALETTE_CHOICE, PaletteChoiceBitmap, (wxBitmap *)NULL, TRUE, 0, -1, NULL, "wxChoice");
|
||||
palette->AddTool(PALETTE_TEXT, PaletteTextBitmap, (wxBitmap *)NULL, TRUE, 0, -1, NULL, "wxText");
|
||||
palette->AddTool(PALETTE_MULTITEXT, PaletteMultiTextBitmap, (wxBitmap *)NULL, TRUE, 0, -1, NULL, "wxMultiText");
|
||||
palette->AddTool(PALETTE_SLIDER, PaletteSliderBitmap, (wxBitmap *)NULL, TRUE, 0, -1, NULL, "wxSlider");
|
||||
palette->AddTool(PALETTE_GROUPBOX, PaletteGroupBitmap, (wxBitmap *)NULL, TRUE, 0, -1, NULL, "wxGroupBox");
|
||||
palette->AddTool(PALETTE_GAUGE, PaletteGaugeBitmap, (wxBitmap *)NULL, TRUE, 0, -1, NULL, "wxGauge");
|
||||
palette->AddTool(PALETTE_SCROLLBAR, PaletteScrollbarBitmap, (wxBitmap *)NULL, TRUE, 0, -1, NULL, "wxScrollBar");
|
||||
|
||||
palette->Layout();
|
||||
palette->CreateTools();
|
||||
|
||||
palette->ToggleTool(PALETTE_ARROW, TRUE);
|
||||
palette->currentlySelected = PALETTE_ARROW;
|
||||
return palette;
|
||||
}
|
||||
|
71
utils/dialoged/src/editrpal.h
Normal file
@@ -0,0 +1,71 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: editrpal.h
|
||||
// Purpose: Tool palette
|
||||
// Author: Julian Smart
|
||||
// Modified by:
|
||||
// Created: 04/01/98
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) Julian Smart
|
||||
// Licence: wxWindows license
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _EDITRPAL_H_
|
||||
#define _EDITRPAL_H_
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma interface "editrpal.h"
|
||||
#endif
|
||||
|
||||
#include "wx/wx.h"
|
||||
#include "wx/string.h"
|
||||
#include "wx/layout.h"
|
||||
#include "wx/resource.h"
|
||||
#include "wx/tbarsmpl.h"
|
||||
|
||||
#include "proplist.h"
|
||||
|
||||
/*
|
||||
* Object editor tool palette
|
||||
*
|
||||
*/
|
||||
|
||||
// For some reason, wxButtonBar under Windows 95 cannot be moved to a non-0,0 position!
|
||||
#define TOOLPALETTECLASS wxToolBarSimple
|
||||
|
||||
class EditorToolPalette: public TOOLPALETTECLASS
|
||||
{
|
||||
public:
|
||||
int currentlySelected;
|
||||
wxResourceManager *resourceManager;
|
||||
|
||||
EditorToolPalette(wxResourceManager *manager, wxFrame *frame, int x = 0, int y = 0, int w = -1, int h = -1,
|
||||
long style = wxNO_BORDER, int direction = wxVERTICAL, int RowsOrColumns = 2);
|
||||
bool OnLeftClick(int toolIndex, bool toggled);
|
||||
void OnMouseEnter(int toolIndex);
|
||||
void OnPaint(wxPaintEvent& event);
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
||||
#define PALETTE_FRAME 1
|
||||
#define PALETTE_DIALOG_BOX 2
|
||||
#define PALETTE_PANEL 3
|
||||
#define PALETTE_CANVAS 4
|
||||
#define PALETTE_TEXT_WINDOW 5
|
||||
#define PALETTE_MESSAGE 6
|
||||
#define PALETTE_BUTTON 7
|
||||
#define PALETTE_CHECKBOX 8
|
||||
#define PALETTE_LISTBOX 9
|
||||
#define PALETTE_RADIOBOX 10
|
||||
#define PALETTE_CHOICE 11
|
||||
#define PALETTE_TEXT 12
|
||||
#define PALETTE_MULTITEXT 13
|
||||
#define PALETTE_SLIDER 14
|
||||
#define PALETTE_ARROW 15
|
||||
#define PALETTE_GAUGE 16
|
||||
#define PALETTE_GROUPBOX 17
|
||||
#define PALETTE_BITMAP_MESSAGE 18
|
||||
#define PALETTE_BITMAP_BUTTON 19
|
||||
#define PALETTE_SCROLLBAR 20
|
||||
|
||||
#endif
|
69
utils/dialoged/src/makefile.b32
Normal file
@@ -0,0 +1,69 @@
|
||||
#
|
||||
# File: makefile.b32
|
||||
# Author: Patrick Halke
|
||||
# Created: 1995
|
||||
# Updated:
|
||||
# Copyright: (c) 1993, AIAI, University of Edinburgh
|
||||
#
|
||||
# "%W% %G%"
|
||||
#
|
||||
# Makefile : Builds Dialog Editor (32-bit Borland)
|
||||
|
||||
# WXWIN and BCCDIR are set by parent make
|
||||
|
||||
WXDIR = $(WXWIN)
|
||||
!include $(WXDIR)\src\makeb32.env
|
||||
|
||||
WXLIBDIR = $(WXDIR)\lib
|
||||
WXINC = $(WXDIR)\include\msw
|
||||
WXBASESRC = $(WXDIR)\src\base
|
||||
WXBASEINC = $(WXDIR)\include\base
|
||||
WXLIB = $(WXLIBDIR)\wx32.lib
|
||||
WXPROPDIR = $(WXDIR)\utils\wxprop
|
||||
WXPROPINC = $(WXPROPDIR)\src
|
||||
WXPROPLIB = $(WXDIR)\lib\wxprop.lib
|
||||
LIBS=$(WXLIB) $(WXPROPLIB) cw32 import32
|
||||
INCFILE = includes.cfg
|
||||
|
||||
TARGET=dialoged
|
||||
|
||||
!if "$(FINAL)" == "0"
|
||||
LINKFLAGS=/v /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
|
||||
OPT = -Od
|
||||
DEBUG_FLAGS= -v
|
||||
!else
|
||||
LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
|
||||
OPT = -Od
|
||||
DEBUG_FLAGS =
|
||||
!endif
|
||||
CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG) @$(INCFILE)
|
||||
|
||||
OBJECTS = wx_resed.obj wx_rdlg.obj wx_reswr.obj wx_repal.obj wx_rprop.obj dialoged.obj
|
||||
|
||||
$(TARGET).exe: wxprop $(INCFILE) $(OBJECTS) $(TARGET).def $(TARGET).res
|
||||
tlink32 $(LINKFLAGS) @&&!
|
||||
c0w32.obj $(OBJECTS)
|
||||
$(TARGET)
|
||||
nul
|
||||
$(LIBS)
|
||||
$(TARGET).def
|
||||
!
|
||||
brc32 -K $(TARGET).res
|
||||
|
||||
$(INCFILE): $(MAKEFILENAME)
|
||||
copy &&!
|
||||
-I..\..\wxprop\src
|
||||
! $(INCFILE)
|
||||
|
||||
$(TARGET).res : $(TARGET).rc $(WXDIR)\include\msw\wx.rc
|
||||
brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa $(TARGET)
|
||||
|
||||
wxprop:
|
||||
cd $(WXPROPDIR)\src
|
||||
make -f makefile.b32
|
||||
cd $(WXDIR)\utils\dialoged\src
|
||||
|
||||
clean:
|
||||
-erase *.obj *.exe *.res *.map *.rws
|
||||
|
||||
|
87
utils/dialoged/src/makefile.bcc
Normal file
@@ -0,0 +1,87 @@
|
||||
#
|
||||
# File: makefile.bcc
|
||||
# Author: Julian Smart
|
||||
# Created: 1993
|
||||
# Updated:
|
||||
# Copyright: (c) 1993, AIAI, University of Edinburgh
|
||||
#
|
||||
# "%W% %G%"
|
||||
#
|
||||
# Makefile : Builds Dialog Editor (Borland, 16-bit)
|
||||
|
||||
!if "$(BCCDIR)" == ""
|
||||
!error You must define the BCCDIR variable in autoexec.bat, e.g. BCCDIR=d:\bc4
|
||||
!endif
|
||||
|
||||
!if "$(WXWIN)" == ""
|
||||
!error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
|
||||
!endif
|
||||
|
||||
!ifndef FINAL
|
||||
FINAL=0
|
||||
!endif
|
||||
|
||||
WXDIR = $(WXWIN)
|
||||
!include $(WXDIR)\src\makebcc.env
|
||||
|
||||
THISDIR = $(WXDIR)\utils\dialoged\src
|
||||
WXLIB = $(WXDIR)\lib\wx.lib
|
||||
WXPROPDIR = $(WXDIR)\utils\wxprop
|
||||
WXPROPINC = $(WXPROPDIR)\src
|
||||
WXPROPLIB = $(WXPROPDIR)\lib\wxprop.lib
|
||||
|
||||
LIBS=$(WXLIB) $(WXPROPLIB) mathwl cwl import
|
||||
INC=-I$(WXDIR)\include\base -I$(WXDIR)\include\msw
|
||||
CFG=$(WXDIR)\src\wxwin.cfg
|
||||
INCFILE = includes.cfg
|
||||
|
||||
|
||||
!if "$(FINAL)" == "0"
|
||||
LINKFLAGS=/v/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
|
||||
OPT = -Od
|
||||
DEBUG_FLAGS= -v
|
||||
!else
|
||||
LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
|
||||
OPT = -O2
|
||||
DEBUG_FLAGS =
|
||||
!endif
|
||||
CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG) @$(INCFILE)
|
||||
|
||||
OBJECTS = wx_resed.obj wx_rdlg.obj wx_reswr.obj wx_repal.obj wx_rprop.obj dialoged.obj
|
||||
|
||||
all: dialoged.exe
|
||||
|
||||
dialoged.exe: $(INCFILE) $(WXLIB) $(OBJECTS) dialoged.def dialoged.res
|
||||
tlink $(LINKFLAGS) @&&!
|
||||
c0wl.obj $(OBJECTS)
|
||||
dialoged
|
||||
nul
|
||||
$(LIBS) $(WXPROPLIB)
|
||||
dialoged.def
|
||||
!
|
||||
rc -30 -K dialoged.res
|
||||
|
||||
.$(SRCSUFF).obj:
|
||||
bcc $(CPPFLAGS) -c {$< }
|
||||
|
||||
dialoged.obj: dialoged.$(SRCSUFF) wx_resed.h
|
||||
wx_resed.obj: wx_resed.$(SRCSUFF) wx_resed.h wx_rprop.h
|
||||
wx_resed.obj: wx_rdlg.$(SRCSUFF) wx_resed.h wx_rprop.h
|
||||
wx_rprop.obj: wx_rprop.$(SRCSUFF) wx_resed.h wx_rprop.h
|
||||
wx_reswr.obj: wx_reswr.$(SRCSUFF) wx_resed.h
|
||||
wx_repal.obj: wx_repal.$(SRCSUFF) wx_repal.h
|
||||
|
||||
dialoged.res : dialoged.rc $(WXDIR)\include\msw\wx.rc
|
||||
rc -r /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa dialoged
|
||||
|
||||
$(INCFILE): $(MAKEFILENAME)
|
||||
copy &&!
|
||||
-I..\..\wxprop\src
|
||||
! $(INCFILE)
|
||||
|
||||
clean:
|
||||
-erase *.obj
|
||||
-erase *.exe
|
||||
-erase *.res
|
||||
-erase *.map
|
||||
-erase *.rws
|
193
utils/dialoged/src/makefile.dos
Normal file
@@ -0,0 +1,193 @@
|
||||
#
|
||||
# File: makefile.dos
|
||||
# Author: Julian Smart
|
||||
# Created: 1995
|
||||
# Updated:
|
||||
# Copyright: (c) 1995, AIAI, University of Edinburgh
|
||||
#
|
||||
# "%W% %G%"
|
||||
#
|
||||
# Makefile : Builds docview example (DOS).
|
||||
# Use FINAL=1 argument to nmake to build final version with no debugging
|
||||
# info
|
||||
|
||||
WXDIR = $(WXWIN)
|
||||
|
||||
!include $(WXDIR)\src\makemsc.env
|
||||
|
||||
THISDIR = $(WXDIR)\utils\dialoged\src
|
||||
WXLIB = $(WXDIR)\lib\wx.lib
|
||||
|
||||
DOCDIR = $(WXDIR)\utils\dialoged\docs
|
||||
|
||||
PROPDIR = $(WXDIR)\utils\wxprop
|
||||
PROPINC = $(PROPDIR)\src
|
||||
PROPLIB = $(PROPDIR)\lib\wxprop.lib
|
||||
|
||||
TREEDIR = $(WXDIR)\utils\wxtree
|
||||
TREEINC = $(TREEDIR)\src
|
||||
TREELIB = $(TREEDIR)\lib\wxtree.lib
|
||||
|
||||
DIBDIR = $(WXDIR)\utils\dib
|
||||
DIBLIB = $(DIBDIR)\dib.lib
|
||||
DIBINC = $(DIBDIR)
|
||||
|
||||
RCDIR = $(WXDIR)\utils\rcparser
|
||||
RCLIB = $(RCDIR)\lib\rcparser.lib
|
||||
RCINC = $(RCDIR)\src
|
||||
|
||||
LIBS=$(WXLIB) $(PROPLIB) oldnames libw llibcew commdlg shell ddeml
|
||||
INC=/I$(WXDIR)\include\base /I$(WXDIR)\include\msw /I$(PROPINC)
|
||||
|
||||
!ifndef FINAL
|
||||
FINAL=0
|
||||
!endif
|
||||
|
||||
# Default is to output RTF for WinHelp
|
||||
!ifndef RTFSTYLE
|
||||
RTFSTYLE=-winhelp
|
||||
!endif
|
||||
|
||||
# Set this to nothing if using MS C++ 7
|
||||
ZOPTION=/Z7
|
||||
|
||||
!if "$(FINAL)" == "0"
|
||||
CPPFLAGS=/AL /W3 /Zi $(ZOPTION) /G2sw /Od /DDEBUG=$(DEBUG) /YuWX_PREC.H $(INC) /Dwx_msw /Fp$(WXDIR)\src\msw\wx.pch
|
||||
LINKFLAGS=/NOD /CO /SEG:512 /ONERROR:NOEXE
|
||||
!else
|
||||
CPPFLAGS=/AL /W3 /G2sw /Ox /YuWX_PREC.H $(INC) /DDEBUG=$(DEBUG) /Dwx_msw /Fp$(WXDIR)\src\msw\wx.pch
|
||||
LINKFLAGS=/NOD /SEG:512 /ONERROR:NOEXE
|
||||
!endif
|
||||
|
||||
OBJECTS = dialoged.obj wx_resed.obj wx_rdlg.obj wx_reswr.obj wx_repal.obj wx_rprop.obj
|
||||
|
||||
all: prop dialoged.exe
|
||||
|
||||
wx:
|
||||
cd $(WXDIR)\src\msw
|
||||
nmake -f makefile.dos
|
||||
cd $(THISDIR)
|
||||
|
||||
wxclean:
|
||||
cd $(WXDIR)\src\msw
|
||||
nmake -f makefile.dos clean
|
||||
cd $(THISDIR)
|
||||
|
||||
|
||||
dialoged.exe: $(WXDIR)\src\msw\dummy.obj $(WXLIB) $(OBJECTS) $(PROPLIB) dialoged.def dialoged.res
|
||||
link $(LINKFLAGS) @<<
|
||||
$(WXDIR)\src\msw\dummy.obj $(OBJECTS),
|
||||
dialoged,
|
||||
NUL,
|
||||
$(LIBS),
|
||||
dialoged.def
|
||||
;
|
||||
<<
|
||||
rc -30 -K dialoged.res
|
||||
|
||||
dialoged.obj: dialoged.h $(PROPINC)\wx_prop.h wx_resed.h wx_rprop.h dialoged.$(SRCSUFF)
|
||||
cl @<<
|
||||
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||
<<
|
||||
|
||||
wx_resed.obj: wx_resed.h $(PROPINC)\wx_prop.h wx_resed.$(SRCSUFF)
|
||||
cl @<<
|
||||
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||
<<
|
||||
|
||||
wx_rdlg.obj: wx_resed.h $(PROPINC)\wx_prop.h wx_rdlg.$(SRCSUFF)
|
||||
cl @<<
|
||||
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||
<<
|
||||
|
||||
wx_reswr.obj: wx_resed.h wx_reswr.$(SRCSUFF)
|
||||
cl @<<
|
||||
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||
<<
|
||||
|
||||
wx_rprop.obj: wx_resed.h $(PROPINC)\wx_prop.h wx_rprop.$(SRCSUFF)
|
||||
cl @<<
|
||||
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||
<<
|
||||
|
||||
wx_repal.obj: wx_resed.h $(PROPINC)\wx_prop.h wx_repal.h wx_repal.$(SRCSUFF)
|
||||
cl @<<
|
||||
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||
<<
|
||||
|
||||
dialoged.res : dialoged.rc $(WXDIR)\include\msw\wx.rc
|
||||
rc -r /dFAFA_LIB /i$(WXDIR)\contrib\fafa /i$(WXDIR)\include\msw dialoged
|
||||
|
||||
wxtree:
|
||||
cd $(TREEDIR)\src
|
||||
nmake -f makefile.dos FINAL="$(FINAL)" OPT="$(OPT)"
|
||||
cd $(THISDIR)
|
||||
|
||||
dib:
|
||||
cd $(DIBDIR)
|
||||
nmake -f makefile.dos FINAL="$(FINAL)" OPT="$(OPT)"
|
||||
cd $(THISDIR)
|
||||
|
||||
prop:
|
||||
cd $(PROPDIR)\src
|
||||
nmake -f makefile.dos FINAL="$(FINAL)" OPT="$(OPT)"
|
||||
cd $(THISDIR)
|
||||
|
||||
# Making documents
|
||||
docs: hlp
|
||||
hlp: $(DOCDIR)/dialoged.hlp
|
||||
hlp32: $(DOCDIR)/hlp32/dialoged.hlp
|
||||
rtf: $(DOCDIR)/dialoged.rtf
|
||||
|
||||
$(DOCDIR)/dialoged.hlp: $(DOCDIR)/dialoged.rtf $(DOCDIR)/dialoged.hpj
|
||||
cd $(DOCDIR)
|
||||
-erase dialoged.ph
|
||||
hc dialoged
|
||||
cd $(THISDIR)
|
||||
|
||||
$(DOCDIR)/hlp32/dialoged.hlp: $(DOCDIR)/hlp32/dialoged.rtf $(DOCDIR)/hlp32/dialoged.hpj
|
||||
cd $(DOCDIR)/hlp32
|
||||
-erase dialoged.ph
|
||||
-wx /W hcw /c /e clockwrk.hpj
|
||||
cd $(THISDIR)
|
||||
|
||||
$(DOCDIR)/dialoged.rtf: $(DOCDIR)/body.tex $(DOCDIR)/classes.tex $(DOCDIR)/tech.tex $(DOCDIR)/dialoged.tex
|
||||
cd $(DOCDIR)
|
||||
-wx /W tex2rtf $(DOCDIR)/dialoged.tex $(DOCDIR)/dialoged.rtf -twice $(RTFSTYLE)
|
||||
cd $(THISDIR)
|
||||
|
||||
$(DOCDIR)/hlp32/dialoged.rtf: $(DOCDIR)/body.tex $(DOCDIR)/classes.tex $(DOCDIR)/body.tex $(DOCDIR)/dialoged.tex
|
||||
cd $(DOCDIR)
|
||||
-wx /W tex2rtf $(DOCDIR)/dialoged.tex $(DOCDIR)/hlp32/dialoged.rtf -twice $(RTFSTYLE) -macros $(DOCDIR)/t2rtf32.ini
|
||||
cd $(THISDIR)
|
||||
|
||||
wordrtf:
|
||||
cd $(DOCDIR)
|
||||
-wx /W tex2rtf $(DOCDIR)/dialoged.tex $(DOCDIR)/dialoged.rtf -twice -rtf
|
||||
cd $(THISDIR)
|
||||
|
||||
cleanprop:
|
||||
cd $(PROPDIR)\src
|
||||
nmake -f makefile.dos clean
|
||||
cd $(THISDIR)
|
||||
|
||||
rcparser:
|
||||
cd $(RCDIR)\src
|
||||
nmake -f makefile.dos FINAL=$(FINAL) OPT=$(OPT)
|
||||
cd $(THISDIR)
|
||||
|
||||
cleanrtf:
|
||||
cd $(DOCDIR)
|
||||
-erase *.rtf
|
||||
cd $(THISDIR)
|
||||
|
||||
cleanutils: cleanprop
|
||||
-erase *.obj
|
||||
-erase *.sbr
|
||||
-erase *.exe
|
||||
-erase *.res
|
||||
-erase *.map
|
||||
-erase *.pdb
|
||||
|
||||
clean:
|
||||
-erase *.obj *.exe *.res *.map *.rws
|
61
utils/dialoged/src/makefile.g95
Normal file
@@ -0,0 +1,61 @@
|
||||
#
|
||||
# File: makefile.g95
|
||||
# Author: Julian Smart
|
||||
# Created: 1996
|
||||
# Updated:
|
||||
#
|
||||
# "%W% %G%"
|
||||
#
|
||||
# Makefile for Dialog Editor (GNU-WIN32)
|
||||
|
||||
WXDIR = ../../..
|
||||
|
||||
# All common UNIX compiler flags and options are now in
|
||||
# this central makefile.
|
||||
include $(WXDIR)/src/makeg95.env
|
||||
|
||||
OBJECTS = $(OBJDIR)/dialoged.$(OBJSUFF) $(OBJDIR)/editrpal.$(OBJSUFF) $(OBJDIR)/reseditr.$(OBJSUFF)\
|
||||
$(OBJDIR)/dlghndlr.$(OBJSUFF) $(OBJDIR)/reswrite.$(OBJSUFF) $(OBJDIR)/winprop.$(OBJSUFF)\
|
||||
$(OBJDIR)/dialoged_resources.$(OBJSUFF)
|
||||
|
||||
EXTRAINC = -I../../wxprop/src
|
||||
|
||||
LDFLAGS = -Wl,--subsystem,windows -mwindows -L$(WXDIR)/lib -L../../wxprop/lib
|
||||
LDLIBS=-lwxprop $(LIBS)
|
||||
|
||||
CPPFLAGS = $(XINCLUDE) $(INC) $(OPTIONS) $(GUI) $(DEBUGFLAGS) -DDEBUG='$(DEBUG)' $(WARN) $(OPT) $(EXTRAINC)
|
||||
|
||||
all: $(OBJDIR) wxprop dialoged$(GUISUFFIX)$(EXESUFF)
|
||||
|
||||
wxprop:
|
||||
cd ../../wxprop/src; $(MAKE) -f makefile.g95
|
||||
|
||||
$(OBJDIR):
|
||||
mkdir $(OBJDIR)
|
||||
|
||||
dialoged$(GUISUFFIX)$(EXESUFF): $(OBJECTS) $(WXLIB)
|
||||
$(CC) $(LDFLAGS) -o dialoged$(GUISUFFIX)$(EXESUFF) $(OBJECTS) $(XVIEW_LINK) $(LDLIBS)
|
||||
|
||||
$(OBJDIR)/dialoged.$(OBJSUFF): dialoged.$(SRCSUFF)
|
||||
$(CC) -c $(CPPFLAGS) -o $@ dialoged.$(SRCSUFF)
|
||||
|
||||
$(OBJDIR)/editrpal.$(OBJSUFF): winprop.h reseditr.h editrpal.h editrpal.$(SRCSUFF)
|
||||
$(CC) -c $(CPPFLAGS) -o $@ editrpal.$(SRCSUFF)
|
||||
|
||||
$(OBJDIR)/winprop.$(OBJSUFF): winprop.h reseditr.h editrpal.h winprop.$(SRCSUFF)
|
||||
$(CC) -c $(CPPFLAGS) -o $@ winprop.$(SRCSUFF)
|
||||
|
||||
$(OBJDIR)/reswrite.$(OBJSUFF): winprop.h reseditr.h editrpal.h reswrite.$(SRCSUFF)
|
||||
$(CC) -c $(CPPFLAGS) -o $@ reswrite.$(SRCSUFF)
|
||||
|
||||
$(OBJDIR)/reseditr.$(OBJSUFF): winprop.h reseditr.h editrpal.h reseditr.$(SRCSUFF)
|
||||
$(CC) -c $(CPPFLAGS) -o $@ reseditr.$(SRCSUFF)
|
||||
|
||||
$(OBJDIR)/dlghndlr.$(OBJSUFF): winprop.h reseditr.h editrpal.h dlghndlr.$(SRCSUFF)
|
||||
$(CC) -c $(CPPFLAGS) -o $@ dlghndlr.$(SRCSUFF)
|
||||
|
||||
$(OBJDIR)/dialoged_resources.o: dialoged.rc
|
||||
$(RESCOMP) -i dialoged.rc -o $(OBJDIR)/dialoged_resources.o $(RESFLAGS)
|
||||
|
||||
clean:
|
||||
rm -f $(OBJECTS) dialoged$(GUISUFFIX).exe core *.rsc *.res
|
155
utils/dialoged/src/makefile.nt
Normal file
@@ -0,0 +1,155 @@
|
||||
#
|
||||
# File: makefile.nt
|
||||
# Author: Julian Smart
|
||||
# Created: 1993
|
||||
# Updated:
|
||||
# Copyright: (c) 1993, AIAI, University of Edinburgh
|
||||
#
|
||||
# "%W% %G%"
|
||||
#
|
||||
# Makefile : Builds wxProperty classes library (MS VC++).
|
||||
# Use FINAL=1 argument to nmake to build final version with no debugging
|
||||
# info
|
||||
|
||||
# Set WXDIR for your system
|
||||
WXDIR = $(WXWIN)
|
||||
THISDIR = $(WXDIR)\utils\dialoged\src
|
||||
PROPDIR = $(WXDIR)\utils\wxprop
|
||||
PROPLIB=$(PROPDIR)\lib\wxprop.lib
|
||||
EXTRALIBS=$(PROPDIR)\lib\wxprop.lib
|
||||
EXTRAINC=/I$(PROPDIR)\src
|
||||
DOCDIR=$(WXDIR)\docs
|
||||
LOCALDOCDIR=$(WXDIR)\utils\dialoged\docs
|
||||
|
||||
!include $(WXDIR)\src\ntwxwin.mak
|
||||
|
||||
PROGRAM=dialoged
|
||||
|
||||
OBJECTS = dialoged.obj editrpal.obj reseditr.obj dlghndlr.obj reswrite.obj winprop.obj
|
||||
|
||||
all: wxprop dialoged.exe
|
||||
|
||||
wx:
|
||||
cd $(WXDIR)\src\msw
|
||||
nmake -f makefile.nt FINAL=$(FINAL)
|
||||
cd $(THISDIR)
|
||||
|
||||
wxclean:
|
||||
cd $(WXDIR)\src\msw
|
||||
nmake -f makefile.nt clean
|
||||
cd $(THISDIR)
|
||||
|
||||
$(PROGRAM).exe: $(DUMMYOBJ) $(WXLIB) $(OBJECTS) $(PROPLIB) $(PROGRAM).res
|
||||
$(link) @<<
|
||||
-out:$(PROGRAM).exe
|
||||
$(LINKFLAGS)
|
||||
$(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res
|
||||
$(LIBS)
|
||||
<<
|
||||
|
||||
dialoged.obj: winprop.h reseditr.h editrpal.h dialoged.$(SRCSUFF) $(DUMMYOBJ)
|
||||
$(cc) @<<
|
||||
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||
<<
|
||||
|
||||
winprop.obj: winprop.h reseditr.h editrpal.h winprop.$(SRCSUFF) $(DUMMYOBJ)
|
||||
$(cc) @<<
|
||||
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||
<<
|
||||
|
||||
editrpal.obj: winprop.h reseditr.h editrpal.h editrpal.$(SRCSUFF) $(DUMMYOBJ)
|
||||
$(cc) @<<
|
||||
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||
<<
|
||||
|
||||
reswrite.obj: winprop.h reseditr.h editrpal.h reswrite.$(SRCSUFF) $(DUMMYOBJ)
|
||||
$(cc) @<<
|
||||
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||
<<
|
||||
|
||||
reseditr.obj: winprop.h reseditr.h editrpal.h reseditr.$(SRCSUFF) $(DUMMYOBJ)
|
||||
$(cc) @<<
|
||||
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||
<<
|
||||
|
||||
dlghndlr.obj: winprop.h reseditr.h editrpal.h dlghndlr.$(SRCSUFF) $(DUMMYOBJ)
|
||||
$(cc) @<<
|
||||
$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
|
||||
<<
|
||||
|
||||
$(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
|
||||
$(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc
|
||||
|
||||
wxprop:
|
||||
cd $(PROPDIR)\src
|
||||
nmake -f makefile.nt FINAL=$(FINAL)
|
||||
cd $(THISDIR)
|
||||
|
||||
clean_wxprop:
|
||||
cd $(PROPDIR)\src
|
||||
nmake -f makefile.nt clean
|
||||
cd $(THISDIR)
|
||||
|
||||
clean:
|
||||
-erase *.obj
|
||||
-erase *.sbr
|
||||
-erase *.exe
|
||||
-erase *.res
|
||||
-erase *.map
|
||||
-erase *.pdb
|
||||
|
||||
cleanutils: clean clean_wxprop
|
||||
|
||||
DOCSOURCES=$(LOCALDOCDIR)\dialoged.tex $(LOCALDOCDIR)\body.tex\
|
||||
$(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
|
||||
$(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\tech.tex
|
||||
|
||||
html: $(DOCDIR)\html\dialoged\dlged.htm
|
||||
hlp: $(DOCDIR)\winhelp\dialoged.hlp
|
||||
pdfrtf: $(DOCDIR)\pdf\dialoged.rtf
|
||||
ps: $(DOCDIR)\ps\dialoged.ps
|
||||
|
||||
$(DOCDIR)\winhelp\dialoged.hlp: $(LOCALDOCDIR)\dialoged.rtf $(LOCALDOCDIR)\dialoged.hpj
|
||||
cd $(LOCALDOCDIR)
|
||||
-erase dialoged.ph
|
||||
hc dialoged
|
||||
move dialoged.hlp $(DOCDIR)\winhelp\dialoged.hlp
|
||||
move dialoged.cnt $(DOCDIR)\winhelp\dialoged.cnt
|
||||
cd $(THISDIR)
|
||||
|
||||
$(LOCALDOCDIR)\dialoged.rtf: $(DOCSOURCES)
|
||||
cd $(LOCALDOCDIR)
|
||||
-start /w tex2rtf $(LOCALDOCDIR)\dialoged.tex $(LOCALDOCDIR)\dialoged.rtf -twice -winhelp
|
||||
cd $(THISDIR)
|
||||
|
||||
$(DOCDIR)\pdf\dialoged.rtf: $(DOCSOURCES)
|
||||
cd $(LOCALDOCDIR)
|
||||
-copy *.bmp *.wmf $(DOCDIR)\pdf
|
||||
-start /w tex2rtf $(LOCALDOCDIR)\dialoged.tex $(DOCDIR)\pdf\dialoged.rtf -twice -rtf
|
||||
cd $(THISDIR)
|
||||
|
||||
$(DOCDIR)\html\dialoged\dlged.htm: $(DOCSOURCES)
|
||||
cd $(LOCALDOCDIR)
|
||||
-mkdir $(DOCDIR)\html\dialoged
|
||||
-start /w tex2rtf $(LOCALDOCDIR)\dialoged.tex $(DOCDIR)\html\dialoged\dlged.htm -twice -html
|
||||
-erase $(DOCDIR)\html\dialoged\*.con
|
||||
-erase $(DOCDIR)\html\dialoged\*.ref
|
||||
cd $(THISDIR)
|
||||
|
||||
$(LOCALDOCDIR)\dialoged.dvi: $(DOCSOURCES)
|
||||
cd $(LOCALDOCDIR)
|
||||
-latex dialoged
|
||||
-latex dialoged
|
||||
-makeindx dialoged
|
||||
-bibtex dialoged
|
||||
-latex dialoged
|
||||
-latex dialoged
|
||||
cd $(THISDIR)
|
||||
|
||||
$(WXDIR)\docs\ps\dialoged.ps: $(LOCALDOCDIR)\dialoged.dvi
|
||||
cd $(LOCALDOCDIR)
|
||||
-dvips32 -o dialoged.ps dialoged
|
||||
move dialoged.ps $(WXDIR)\docs\ps\dialoged.ps
|
||||
cd $(THISDIR)
|
||||
|
||||
|
36
utils/dialoged/src/makefile.sc
Normal file
@@ -0,0 +1,36 @@
|
||||
# Symantec C++ makefile for Dialog Editor
|
||||
|
||||
WXDIR = $(WXWIN)
|
||||
!include $(WXDIR)\src\makesc.env
|
||||
|
||||
WXLIB = $(WXDIR)\lib\wx.lib
|
||||
INCDIR = $(WXDIR)\include
|
||||
MSWINC = $(INCDIR)\msw
|
||||
BASEINC = $(INCDIR)\base
|
||||
|
||||
CC=sc
|
||||
RC=rc
|
||||
CFLAGS = -o -ml -W -Dwx_msw
|
||||
LDFLAGS = -ml -W
|
||||
|
||||
INCLUDE=$(BASEINC);$(MSWINC)
|
||||
OBJECTS = wx_resed.obj wx_rdlg.obj wx_reswr.obj wx_repal.obj wx_rprop.obj dialoged.obj
|
||||
|
||||
LIBS=$(WXLIB) libw.lib commdlg.lib shell.lib
|
||||
|
||||
.$(SRCSUFF).obj:
|
||||
*$(CC) -c $(CFLAGS) -I$(INCLUDE) $<
|
||||
|
||||
.rc.res:
|
||||
*$(RC) -r -I$(INCLUDE) $<
|
||||
|
||||
dialoged.exe: $(OBJECTS) dialoged.def dialoged.res
|
||||
*$(CC) $(LDFLAGS) -o$@ $(OBJECTS) dialoged.def $(LIBS)
|
||||
*$(RC) -k dialoged.res
|
||||
|
||||
clean:
|
||||
-del *.obj
|
||||
-del *.exe
|
||||
-del *.res
|
||||
-del *.map
|
||||
-del *.rws
|
123
utils/dialoged/src/makefile.unx
Normal file
@@ -0,0 +1,123 @@
|
||||
#
|
||||
# File: makefile.unx
|
||||
# Author: Julian Smart
|
||||
# Created: 1993
|
||||
# Updated:
|
||||
# Copyright: (c) 1993, AIAI, University of Edinburgh
|
||||
#
|
||||
# "%W% %G%"
|
||||
#
|
||||
# Makefile for dialoged example (UNIX).
|
||||
|
||||
WXDIR = ../../..
|
||||
|
||||
# All common UNIX compiler flags and options are now in
|
||||
# this central makefile.
|
||||
include $(WXDIR)/src/make.env
|
||||
|
||||
WXPROPDIR = $(WXDIR)/utils/wxprop
|
||||
WXPROPINC = $(WXDIR)/utils/wxprop/src
|
||||
WXPROPLIB = $(WXDIR)/utils/wxprop/lib
|
||||
|
||||
DIALOGEDDIR = $(WXDIR)/utils/dialoged
|
||||
|
||||
OBJECTS = $(OBJDIR)/dialoged.o $(OBJDIR)/wx_repal.o $(OBJDIR)/wx_resed.o $(OBJDIR)/wx_rdlg.o $(OBJDIR)/wx_reswr.o $(OBJDIR)/wx_rprop.o
|
||||
|
||||
|
||||
INC = $(COMPPATHS) -I$(WXDIR)/include/x -I$(WXDIR)/include/base -I$(WXPROPINC)
|
||||
|
||||
XVIEWLDLIBS = -lwxprop_ol -lwx_ol -lxview -lolgx -lX11 -lm $(COMPLIBS)
|
||||
MOTIFLDLIBS = -lwxprop_motif -lwx_motif -lXm -lXt -lX11 -lm $(COMPLIBS)
|
||||
HPLDLIBS = -lwxprop_hp -lwx_hp -lXm -lXt -lX11 -lm $(HPCOMPLIBS)
|
||||
# Default
|
||||
LDLIBS=$(XVIEWLDLIBS)
|
||||
|
||||
CPPFLAGS = $(XINCLUDE) $(INC) $(OPTIONS) $(GUI) -DDEBUG='$(DEBUG)' $(DEBUGFLAGS) $(WARN) $(OPT)
|
||||
LDFLAGS = $(XLIB) -L$(WXDIR)/lib -L$(WXPROPLIB)
|
||||
|
||||
.SUFFIXES:
|
||||
|
||||
all: $(OBJDIR) dialoged$(GUISUFFIX)
|
||||
|
||||
wx_ol:
|
||||
cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx xview
|
||||
|
||||
wx_motif:
|
||||
cd $(WXDIR)/src/x; $(MAKE) -f makefile.unx motif
|
||||
|
||||
motif:
|
||||
$(MAKE) -f makefile.unx dialoged_motif GUISUFFIX=_motif GUI=-Dwx_motif GUISUFFIX=_motif OPT='$(OPT)' LDLIBS='$(MOTIFLDLIBS)'\
|
||||
OPTIONS='$(OPTIONS)' DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)' XVIEW_LINK=
|
||||
|
||||
xview:
|
||||
$(MAKE) -f makefile.unx dialoged_ol GUI=-Dwx_xview GUISUFFIX=_ol CC=$(CC) OPTIONS='$(OPTIONS)'\
|
||||
DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='$(WARN)' XLIB='$(XLIB)' XINCLUDE='$(XINCLUDE)'
|
||||
|
||||
hp:
|
||||
$(MAKE) -f makefile.unx GUI=-Dwx_motif GUISUFFIX=_hp CC=CC DEBUG='$(DEBUG)' DEBUGFLAGS='$(DEBUGFLAGS)' WARN='-w' \
|
||||
XINCLUDE='$(HPXINCLUDE)' XLIB='$(HPXLIB)' XVIEW_LINK='' LDLIBS='$(HPLDLIBS)'
|
||||
|
||||
$(OBJDIR):
|
||||
mkdir $(OBJDIR)
|
||||
|
||||
dialoged$(GUISUFFIX): $(OBJECTS) $(WXLIB)
|
||||
$(CC) $(LDFLAGS) -o dialoged$(GUISUFFIX) $(OBJECTS) $(XVIEW_LINK) $(LDLIBS)
|
||||
|
||||
$(OBJDIR)/dialoged.o: dialoged.$(SRCSUFF) dialoged.h
|
||||
$(CC) -c $(CPPFLAGS) -o $@ dialoged.$(SRCSUFF)
|
||||
|
||||
$(OBJDIR)/wx_rprop.o: wx_rprop.$(SRCSUFF)
|
||||
$(CC) -c $(CPPFLAGS) -o $@ wx_rprop.$(SRCSUFF)
|
||||
|
||||
$(OBJDIR)/wx_resed.o: wx_resed.$(SRCSUFF) wx_resed.h
|
||||
$(CC) -c $(CPPFLAGS) -o $@ wx_resed.$(SRCSUFF)
|
||||
|
||||
$(OBJDIR)/wx_rdlg.o: wx_rdlg.$(SRCSUFF) wx_resed.h
|
||||
$(CC) -c $(CPPFLAGS) -o $@ wx_rdlg.$(SRCSUFF)
|
||||
|
||||
$(OBJDIR)/wx_repal.o: wx_repal.$(SRCSUFF) wx_repal.h
|
||||
$(CC) -c $(CPPFLAGS) -o $@ wx_repal.$(SRCSUFF)
|
||||
|
||||
$(OBJDIR)/wx_reswr.o: wx_reswr.$(SRCSUFF) wx_resed.h
|
||||
$(CC) -c $(CPPFLAGS) -o $@ wx_reswr.$(SRCSUFF)
|
||||
|
||||
wxprop_motif:
|
||||
cd $(WXPROPDIR)/src; $(MAKE) -f makefile.unx motif OPT='$(OPT)'
|
||||
|
||||
wxprop_ol:
|
||||
cd $(WXPROPDIR)/src
|
||||
$(MAKE) -f makefile.unx xview OPT='$(OPT)'
|
||||
|
||||
clean_motif:
|
||||
$(MAKE) -f makefile.unx GUISUFFIX=_motif cleanany
|
||||
|
||||
clean_ol:
|
||||
$(MAKE) -f makefile.unx GUISUFFIX=_ol cleanany
|
||||
|
||||
clean_hp:
|
||||
$(MAKE) -f makefile.unx GUISUFFIX=_hp cleanany
|
||||
|
||||
cleanany:
|
||||
rm -f $(OBJECTS) $(TESTOBJECTS) test$(GUISUFFIX) dialoged$(GUISUFFIX) core
|
||||
|
||||
HTMLDIR=/home/hardy/html/wx/manuals
|
||||
docs: ps xlp
|
||||
ps: $(DIALOGEDDIR)/docs/dialoged.ps
|
||||
xlp: $(DIALOGEDDIR)/docs/dialoged.xlp
|
||||
html: $(HTMLDIR)/dialoged/dialoged_contents.html
|
||||
|
||||
$(DIALOGEDDIR)/docs/dialoged.xlp: $(DIALOGEDDIR)/docs/dialoged.tex $(DIALOGEDDIR)/docs/classes.tex $(DIALOGEDDIR)/docs/body.tex $(DIALOGEDDIR)/docs/tech.tex
|
||||
cd ../docs; tex2rtf dialoged.tex tmp.xlp -xlp -twice
|
||||
sed -e "s/WXHELPCONTENTS/wxChart Manual/g" < $(DIALOGEDDIR)/docs/tmp.xlp > $(DIALOGEDDIR)/docs/dialoged.xlp
|
||||
/bin/rm -f $(DIALOGEDDIR)/docs/tmp.xlp
|
||||
|
||||
$(HTMLDIR)/dialoged/dialoged_contents.html: $(DIALOGEDDIR)/docs/dialoged.tex $(DIALOGEDDIR)/docs/body.tex $(DIALOGEDDIR)/docs/tech.tex
|
||||
cd ../docs; tex2rtf dialoged.tex $(HTMLDIR)/dialoged/dialoged.html -html -twice
|
||||
|
||||
$(DIALOGEDDIR)/docs/dialoged.dvi: $(DIALOGEDDIR)/docs/dialoged.tex $(DIALOGEDDIR)/docs/classes.tex
|
||||
cd $(DIALOGEDDIR)/docs; latex dialoged; latex dialoged; makeindex dialoged; latex dialoged; latex dialoged
|
||||
|
||||
# makeindex dialoged; bibtex dialoged; latex dialoged; latex dialoged
|
||||
|
||||
$(DIALOGEDDIR)/docs/dialoged.ps: $(DIALOGEDDIR)/docs/dialoged.dvi
|
||||
cd $(DIALOGEDDIR)/docs; dvips -f -r < dialoged.dvi > dialoged.ps
|
62
utils/dialoged/src/makefile.wat
Normal file
@@ -0,0 +1,62 @@
|
||||
# Dialog Editor makefile for Watcom
|
||||
|
||||
WXDIR = ..\..\..
|
||||
|
||||
# EXTRACPPFLAGS = $(CLIPSFLAGS)
|
||||
|
||||
!include $(WXDIR)\src\makewat.env
|
||||
|
||||
WXPROPDIR = $(WXDIR)\utils\wxprop
|
||||
WXPROPLIB = $(WXPROPDIR)\lib\wxprop.lib
|
||||
WXPROPINC = $(WXPROPDIR)\src
|
||||
|
||||
THISDIR = $(WXDIR)\utils\dialoged\src
|
||||
|
||||
NAME = dialoged
|
||||
LNK = $(name).lnk
|
||||
|
||||
IFLAGS = -i=$(WXINC) -i=$(WXBASEINC) -i=$(WXPROPINC)
|
||||
|
||||
PROGOBJECTS = dialoged.obj wx_resed.obj wx_rdlg.obj wx_reswr.obj wx_repal.obj wx_rprop.obj
|
||||
|
||||
all: wx wxprop erasepch $(PROGOBJECTS) dialoged.exe
|
||||
|
||||
wx: .SYMBOLIC
|
||||
cd $(WXDIR)\src\msw
|
||||
wmake -f makefile.wat all
|
||||
cd $(THISDIR)
|
||||
|
||||
wxprop: .SYMBOLIC
|
||||
cd $(WXPROPDIR)\src
|
||||
wmake -f makefile.wat all
|
||||
cd $(THISDIR)
|
||||
|
||||
$(name).exe : $(PROGOBJECTS) $(name).res $(LNK) $(WXDIR)\lib\wx$(LEVEL).lib $(WXPROPLIB)
|
||||
wlink @$(LNK)
|
||||
$(BINDCOMMAND) $(name).res
|
||||
|
||||
$(name).res : $(name).rc $(WXDIR)\include\msw\wx.rc
|
||||
$(RC) $(RESFLAGS1) /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa $(name).rc
|
||||
|
||||
$(LNK) : makefile.wat
|
||||
%create $(LNK)
|
||||
@%append $(LNK) $(DEBUGINFO)
|
||||
@%append $(LNK) system $(LINKOPTION)
|
||||
@%append $(LNK) $(MINDATA)
|
||||
@%append $(LNK) $(MAXDATA)
|
||||
@%append $(LNK) $(STACK)
|
||||
@%append $(LNK) name $(name)
|
||||
@%append $(LNK) file $(WXDIR)\lib\wx$(LEVEL).lib
|
||||
@%append $(LNK) file $(WXPROPLIB)
|
||||
@for %i in ($(EXTRALIBS)) do @%append $(LNK) file %i
|
||||
@for %i in ($(PROGOBJECTS)) do @%append $(LNK) file %i
|
||||
|
||||
cleanutils: .SYMBOLIC
|
||||
cd $(WXPROPDIR)\src
|
||||
wmake -f makefile.wat clean
|
||||
cd $(THISDIR)
|
||||
|
||||
clean: .SYMBOLIC
|
||||
-erase *.obj *.bak *.err *.pch *.lbc *.res
|
||||
|
||||
|
2114
utils/dialoged/src/reseditr.cpp
Normal file
378
utils/dialoged/src/reseditr.h
Normal file
@@ -0,0 +1,378 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: reseditr.h
|
||||
// Purpose: Resource editor class
|
||||
// Author: Julian Smart
|
||||
// Modified by:
|
||||
// Created: 04/01/98
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) Julian Smart
|
||||
// Licence: wxWindows license
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _RESEDITR_H_
|
||||
#define _RESEDITR_H_
|
||||
|
||||
#define wxDIALOG_EDITOR_VERSION 1.6
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma interface "reseditr.h"
|
||||
#endif
|
||||
|
||||
#include "wx/wx.h"
|
||||
#include "wx/string.h"
|
||||
#include "wx/layout.h"
|
||||
#include "wx/resource.h"
|
||||
#include "wx/tbarsmpl.h"
|
||||
|
||||
#include "proplist.h"
|
||||
|
||||
#if defined(__WINDOWS__) && defined(__WIN95__)
|
||||
#include "wx/tbar95.h"
|
||||
#elif defined(__WINDOWS__)
|
||||
#include "wx/tbarmsw.h"
|
||||
#endif
|
||||
|
||||
#define RESED_DELETE 1
|
||||
#define RESED_TOGGLE_TEST_MODE 2
|
||||
#define RESED_RECREATE 3
|
||||
#define RESED_CLEAR 4
|
||||
#define RESED_NEW_DIALOG 5
|
||||
#define RESED_NEW_PANEL 6
|
||||
|
||||
#define RESED_CONTENTS 20
|
||||
|
||||
/*
|
||||
* Controls loading, saving, user interface of resource editor(s).
|
||||
*/
|
||||
|
||||
class wxResourceEditorFrame;
|
||||
class EditorToolPalette;
|
||||
class EditorToolBar;
|
||||
class wxWindowPropertyInfo;
|
||||
|
||||
#ifdef __WINDOWS__
|
||||
#define wxHelpController wxWinHelpController
|
||||
#else
|
||||
#define wxHelpController wxXLPHelpController;
|
||||
#endif
|
||||
|
||||
class wxHelpController;
|
||||
|
||||
/*
|
||||
* The resourceTable contains a list of wxItemResources (which each may
|
||||
* have further children, defining e.g. a dialog box with controls).
|
||||
*
|
||||
* We need to associate actual windows with each wxItemResource,
|
||||
* instead of the current 'one current window' scheme.
|
||||
*
|
||||
* - We create a new dialog, create a wxItemResource,
|
||||
* associate the dialog with wxItemResource via a hash table.
|
||||
* Must be a hash table in case dialog is deleted without
|
||||
* telling the resource manager.
|
||||
* - When we save the resource after editing/closing the dialog,
|
||||
* we check the wxItemResource/wxDialog and children for
|
||||
* consistency (throw away items no longer in the wxDialog,
|
||||
* create any new wxItemResources).
|
||||
* - We save the wxItemResources via the wxPropertyInfo classes,
|
||||
* so devolve the code to the appropriate class.
|
||||
* This involves creating a new temporary wxPropertyInfo for
|
||||
* the purpose.
|
||||
*
|
||||
* We currently assume we only create one instance of a window for
|
||||
* each wxItemResource. We will need to relax this when we're editing
|
||||
* in situ.
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
class wxResourceTableWithSaving: public wxResourceTable
|
||||
{
|
||||
public:
|
||||
wxResourceTableWithSaving(void):wxResourceTable()
|
||||
{
|
||||
}
|
||||
virtual bool Save(const wxString& filename);
|
||||
virtual bool SaveResource(ostream& stream, wxItemResource *item);
|
||||
|
||||
void GenerateWindowStyleString(long windowStyle, char *buf);
|
||||
void GeneratePanelStyleString(long windowStyle, char *buf);
|
||||
void GenerateDialogStyleString(long windowStyle, char *buf);
|
||||
|
||||
void GenerateRadioBoxStyleString(long windowStyle, char *buf);
|
||||
void GenerateMessageStyleString(long windowStyle, char *buf);
|
||||
void GenerateTextStyleString(long windowStyle, char *buf);
|
||||
void GenerateButtonStyleString(long windowStyle, char *buf);
|
||||
void GenerateCheckBoxStyleString(long windowStyle, char *buf);
|
||||
void GenerateListBoxStyleString(long windowStyle, char *buf);
|
||||
void GenerateSliderStyleString(long windowStyle, char *buf);
|
||||
void GenerateGroupBoxStyleString(long windowStyle, char *buf);
|
||||
void GenerateGaugeStyleString(long windowStyle, char *buf);
|
||||
void GenerateChoiceStyleString(long windowStyle, char *buf);
|
||||
void GenerateScrollBarStyleString(long windowStyle, char *buf);
|
||||
void GenerateItemStyleString(long windowStyle, char *buf);
|
||||
|
||||
bool GenerateStyle(char *buf, long windowStyle, long flag, char *strStyle);
|
||||
|
||||
void OutputFont(ostream& stream, wxFont *font);
|
||||
wxControl *CreateItem(wxPanel *panel, wxItemResource *childResource);
|
||||
};
|
||||
|
||||
class wxResourceManager: public wxObject
|
||||
{
|
||||
protected:
|
||||
wxHelpController *helpInstance;
|
||||
wxResourceTableWithSaving resourceTable;
|
||||
wxFrame *editorFrame;
|
||||
wxPanel *editorPanel;
|
||||
wxMenu *popupMenu;
|
||||
wxListBox *editorResourceList;
|
||||
EditorToolPalette *editorPalette;
|
||||
EditorToolBar *editorToolBar;
|
||||
int nameCounter;
|
||||
bool modified;
|
||||
bool editMode;
|
||||
wxHashTable resourceAssociations;
|
||||
wxList selections;
|
||||
wxString currentFilename;
|
||||
|
||||
public:
|
||||
|
||||
// Options to be saved/restored
|
||||
wxString optionsResourceFilename; // e.g. dialoged.ini, .dialogrc
|
||||
wxRectangle propertyWindowSize;
|
||||
wxRectangle resourceEditorWindowSize;
|
||||
|
||||
public:
|
||||
static wxResourceManager *currentResourceManager;
|
||||
|
||||
wxResourceManager(void);
|
||||
~wxResourceManager(void);
|
||||
|
||||
bool Initialize(void);
|
||||
|
||||
bool LoadOptions(void);
|
||||
bool SaveOptions(void);
|
||||
|
||||
// Show or hide the resource editor frame, which displays a list
|
||||
// of resources with ability to edit them.
|
||||
virtual bool ShowResourceEditor(bool show, wxWindow *parent = NULL, const char *title = "wxWindows Dialog Editor");
|
||||
|
||||
virtual bool Save(void);
|
||||
virtual bool SaveAs(void);
|
||||
virtual bool Save(const wxString& filename);
|
||||
virtual bool Load(const wxString& filename);
|
||||
virtual bool Clear(bool deleteWindows = TRUE, bool force = TRUE);
|
||||
virtual void SetFrameTitle(const wxString& filename);
|
||||
virtual bool DisassociateWindows(bool deleteWindows = TRUE);
|
||||
virtual bool New(bool loadFromFile = TRUE, const wxString& filename = "");
|
||||
virtual bool SaveIfModified(void);
|
||||
virtual void AlignItems(int flag);
|
||||
virtual void CopySize(void);
|
||||
virtual void ToBackOrFront(bool toBack);
|
||||
virtual wxWindow *FindParentOfSelection(void);
|
||||
|
||||
virtual wxFrame *OnCreateEditorFrame(const char *title);
|
||||
virtual wxMenuBar *OnCreateEditorMenuBar(wxFrame *parent);
|
||||
virtual wxPanel *OnCreateEditorPanel(wxFrame *parent);
|
||||
virtual wxToolBarBase *OnCreateToolBar(wxFrame *parent);
|
||||
virtual EditorToolPalette *OnCreatePalette(wxFrame *parent);
|
||||
// virtual bool DeletePalette(void);
|
||||
virtual bool InitializeTools(void);
|
||||
|
||||
virtual void UpdateResourceList(void);
|
||||
virtual void AddItemsRecursively(int level, wxItemResource *resource);
|
||||
virtual bool EditSelectedResource(void);
|
||||
virtual bool Edit(wxItemResource *res);
|
||||
virtual bool CreateNewDialog(void);
|
||||
virtual bool CreateNewPanel(void);
|
||||
virtual bool CreatePanelItem(wxItemResource *panelResource, wxPanel *panel, char *itemType, int x = 10, int y = 10, bool isBitmap = FALSE);
|
||||
|
||||
virtual bool DeleteSelection(bool deleteWindow = TRUE);
|
||||
|
||||
virtual bool DeleteResource(wxItemResource *res);
|
||||
virtual bool DeleteResource(wxWindow *win, bool deleteWindow = TRUE);
|
||||
|
||||
// Add bitmap resource if there isn't already one with this filename.
|
||||
virtual char *AddBitmapResource(char *filename);
|
||||
|
||||
// Delete the bitmap resource if it isn't being used by another resource.
|
||||
virtual void PossiblyDeleteBitmapResource(char *resourceName);
|
||||
|
||||
// Helper function for above
|
||||
virtual bool IsBitmapResourceUsed(char *resourceName);
|
||||
|
||||
wxItemResource *FindBitmapResourceByFilename(char *filename);
|
||||
|
||||
char *FindBitmapFilenameForResource(wxItemResource *resource);
|
||||
|
||||
// Deletes 'win' and creates a new window from the resource that
|
||||
// was associated with it. E.g. if you can't change properties on the
|
||||
// fly, you'll need to delete the window and create it again.
|
||||
virtual wxWindow *RecreateWindowFromResource(wxWindow *win, wxWindowPropertyInfo *info = NULL);
|
||||
|
||||
virtual bool RecreateSelection(void);
|
||||
|
||||
// Need to search through resource table removing this from
|
||||
// any resource which has this as a parent.
|
||||
virtual bool RemoveResourceFromParent(wxItemResource *res);
|
||||
|
||||
virtual bool EditDialog(wxDialog *dialog, wxWindow *parent);
|
||||
|
||||
inline void SetEditorFrame(wxFrame *fr) { editorFrame = fr; }
|
||||
inline void SetEditorToolBar(EditorToolBar *tb) { editorToolBar = tb; }
|
||||
inline void SetEditorPalette(EditorToolPalette *pal) { editorPalette = pal; }
|
||||
inline wxFrame *GetEditorFrame(void) { return editorFrame; }
|
||||
inline wxListBox *GetEditorResourceList(void) { return editorResourceList; }
|
||||
inline EditorToolPalette *GetEditorPalette(void) { return editorPalette; }
|
||||
inline wxList& GetSelections(void) { return selections; }
|
||||
|
||||
void AddSelection(wxWindow *win);
|
||||
void RemoveSelection(wxWindow *win);
|
||||
|
||||
// inline void SetCurrentResource(wxItemResource *item) { currentResource = item; }
|
||||
// inline void SetCurrentResourceWindow(wxWindow *win) { currentResourceWindow = win; }
|
||||
// inline wxItemResource *GetCurrentResource(void) { return currentResource; }
|
||||
// inline wxWindow *GetCurrentResourceWindow(void) { return currentResourceWindow; }
|
||||
inline wxMenu *GetPopupMenu(void) { return popupMenu; }
|
||||
|
||||
inline wxHelpController *GetHelpInstance(void) { return helpInstance; }
|
||||
|
||||
virtual void MakeUniqueName(char *prefix, char *buf);
|
||||
|
||||
// (Dis)associate resource<->physical window
|
||||
virtual void AssociateResource(wxItemResource *resource, wxWindow *win);
|
||||
virtual bool DisassociateResource(wxItemResource *resource, bool deleteWindow = TRUE);
|
||||
virtual bool DisassociateResource(wxWindow *win, bool deleteWindow = TRUE);
|
||||
virtual wxItemResource *FindResourceForWindow(wxWindow *win);
|
||||
virtual wxWindow *FindWindowForResource(wxItemResource *resource);
|
||||
|
||||
virtual bool InstantiateAllResourcesFromWindows(void);
|
||||
virtual bool InstantiateResourceFromWindow(wxItemResource *resource, wxWindow *window, bool recurse = FALSE);
|
||||
|
||||
virtual void Modify(bool mod = TRUE) { modified = mod; }
|
||||
virtual bool Modified(void) { return modified; }
|
||||
|
||||
inline bool GetEditMode(void) { return editMode; }
|
||||
void SetEditMode(bool flag, bool changeCurrentResource = TRUE);
|
||||
|
||||
inline wxResourceTable& GetResourceTable(void) { return resourceTable; }
|
||||
inline wxHashTable& GetResourceAssociations(void) { return resourceAssociations; }
|
||||
|
||||
inline wxString& GetCurrentFilename(void) { return currentFilename; }
|
||||
|
||||
// void UsePosition(bool usePos, wxItemResource *resource = NULL, int x = 0, int y = 0);
|
||||
};
|
||||
|
||||
class wxResourceEditorFrame: public wxFrame
|
||||
{
|
||||
public:
|
||||
wxResourceManager *manager;
|
||||
wxResourceEditorFrame(wxResourceManager *resMan, wxFrame *parent, char *title, int x = -1, int y = -1, int width = 600, int height = 400,
|
||||
long style = 0, char *name = "frame");
|
||||
~wxResourceEditorFrame(void);
|
||||
void OldOnMenuCommand(int cmd);
|
||||
bool OnClose(void);
|
||||
};
|
||||
|
||||
class wxResourceEditorPanel: public wxPanel
|
||||
{
|
||||
public:
|
||||
wxResourceEditorPanel(wxWindow *parent, int x = -1, int y = -1, int width = 600, int height = 400,
|
||||
long style = 0, char *name = "panel");
|
||||
~wxResourceEditorPanel(void);
|
||||
void OnDefaultAction(wxControl *item);
|
||||
};
|
||||
|
||||
class DialogEditorPanelFrame: public wxFrame
|
||||
{
|
||||
public:
|
||||
DialogEditorPanelFrame(wxFrame *parent, char *title, int x, int y, int w, int h, long style, char *name):
|
||||
wxFrame(parent, -1, title, wxPoint(x, y), wxSize(w, h), style, name)
|
||||
{
|
||||
}
|
||||
bool OnClose(void);
|
||||
};
|
||||
|
||||
// Edit menu
|
||||
#define OBJECT_EDITOR_NEW_FRAME 220
|
||||
#define OBJECT_EDITOR_NEW_DIALOG 221
|
||||
#define OBJECT_EDITOR_NEW_PANEL 222
|
||||
#define OBJECT_EDITOR_NEW_CANVAS 223
|
||||
#define OBJECT_EDITOR_NEW_TEXT_WINDOW 224
|
||||
#define OBJECT_EDITOR_NEW_BUTTON 225
|
||||
#define OBJECT_EDITOR_NEW_CHECKBOX 226
|
||||
#define OBJECT_EDITOR_NEW_MESSAGE 227
|
||||
#define OBJECT_EDITOR_NEW_CHOICE 228
|
||||
#define OBJECT_EDITOR_NEW_LISTBOX 229
|
||||
#define OBJECT_EDITOR_NEW_RADIOBOX 230
|
||||
#define OBJECT_EDITOR_NEW_SLIDER 231
|
||||
#define OBJECT_EDITOR_NEW_TEXT 232
|
||||
#define OBJECT_EDITOR_NEW_MULTITEXT 233
|
||||
#define OBJECT_EDITOR_NEW_GAUGE 234
|
||||
#define OBJECT_EDITOR_NEW_GROUPBOX 235
|
||||
|
||||
#define OBJECT_EDITOR_NEW_ITEM 240
|
||||
#define OBJECT_EDITOR_NEW_SUBWINDOW 241
|
||||
|
||||
#define OBJECT_EDITOR_EDIT_MENU 250
|
||||
#define OBJECT_EDITOR_EDIT_ATTRIBUTES 251
|
||||
#define OBJECT_EDITOR_CLOSE_OBJECT 252
|
||||
#define OBJECT_EDITOR_DELETE_OBJECT 253
|
||||
#define OBJECT_EDITOR_EDIT_TOOLBAR 254
|
||||
|
||||
#define OBJECT_EDITOR_TOGGLE_TEST_MODE 255
|
||||
|
||||
#define OBJECT_EDITOR_RC_CONVERT 260
|
||||
#define OBJECT_EDITOR_RC_CONVERT_MENU 261
|
||||
#define OBJECT_EDITOR_RC_CONVERT_DIALOG 262
|
||||
|
||||
#define OBJECT_EDITOR_GRID 263
|
||||
|
||||
#define OBJECT_MENU_EDIT 1
|
||||
#define OBJECT_MENU_DELETE 2
|
||||
|
||||
/*
|
||||
* Main toolbar
|
||||
*
|
||||
*/
|
||||
|
||||
#if defined(__WINDOWS__) && defined(__WIN95__)
|
||||
class EditorToolBar: public wxToolBar95
|
||||
#elif defined(__WINDOWS__)
|
||||
class EditorToolBar: public wxToolBarMSW
|
||||
#else
|
||||
class EditorToolBar: public wxToolBarSimple
|
||||
#endif
|
||||
{
|
||||
public:
|
||||
EditorToolBar(wxFrame *frame, int x = 0, int y = 0, int w = -1, int h = -1,
|
||||
long style = 0, int direction = wxVERTICAL, int RowsOrColumns = 2);
|
||||
bool OnLeftClick(int toolIndex, bool toggled);
|
||||
void OnMouseEnter(int toolIndex);
|
||||
void OnPaint(wxPaintEvent& event);
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
||||
// Toolbar ids
|
||||
#define TOOLBAR_LOAD_FILE 1
|
||||
#define TOOLBAR_SAVE_FILE 2
|
||||
#define TOOLBAR_NEW 3
|
||||
// #define TOOLBAR_GEN_CLIPS 4
|
||||
#define TOOLBAR_TREE 5
|
||||
#define TOOLBAR_HELP 6
|
||||
|
||||
// Formatting tools
|
||||
#define TOOLBAR_FORMAT_HORIZ 10
|
||||
#define TOOLBAR_FORMAT_HORIZ_LEFT_ALIGN 11
|
||||
#define TOOLBAR_FORMAT_HORIZ_RIGHT_ALIGN 12
|
||||
#define TOOLBAR_FORMAT_VERT 13
|
||||
#define TOOLBAR_FORMAT_VERT_TOP_ALIGN 14
|
||||
#define TOOLBAR_FORMAT_VERT_BOT_ALIGN 15
|
||||
|
||||
#define TOOLBAR_TO_FRONT 16
|
||||
#define TOOLBAR_TO_BACK 17
|
||||
#define TOOLBAR_COPY_SIZE 18
|
||||
|
||||
#endif
|
||||
|
726
utils/dialoged/src/reswrite.cpp
Normal file
@@ -0,0 +1,726 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: reswrite.cpp
|
||||
// Purpose: Resource writing functionality
|
||||
// Author: Julian Smart
|
||||
// Modified by:
|
||||
// Created: 04/01/98
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) Julian Smart
|
||||
// Licence: wxWindows license
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma implementation
|
||||
#endif
|
||||
|
||||
// For compilers that support precompilation, includes "wx/wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/wx.h"
|
||||
#endif
|
||||
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
|
||||
#if defined(__WINDOWS__) && !defined(__GNUWIN32__)
|
||||
#include <strstrea.h>
|
||||
#else
|
||||
#include <strstream.h>
|
||||
#endif
|
||||
|
||||
#include <fstream.h>
|
||||
|
||||
#include "wx/scrolbar.h"
|
||||
#include "wx/string.h"
|
||||
|
||||
#include "reseditr.h"
|
||||
|
||||
char *SafeString(char *s);
|
||||
char *SafeWord(char *s);
|
||||
|
||||
// Save an association between the child resource and the panel item, to allow
|
||||
// us not to require unique window names.
|
||||
wxControl *wxResourceTableWithSaving::CreateItem(wxPanel *panel, wxItemResource *childResource)
|
||||
{
|
||||
wxControl *item = wxResourceTable::CreateItem(panel, childResource);
|
||||
if (item)
|
||||
wxResourceManager::currentResourceManager->GetResourceAssociations().Put((long)childResource, item);
|
||||
return item;
|
||||
}
|
||||
|
||||
void wxResourceTableWithSaving::OutputFont(ostream& stream, wxFont *font)
|
||||
{
|
||||
stream << "[" << font->GetPointSize() << ", '";
|
||||
stream << font->GetFamilyString() << "', '";
|
||||
stream << font->GetStyleString() << "', '";
|
||||
stream << font->GetWeightString() << "', ";
|
||||
stream << (int)font->GetUnderlined();
|
||||
if (font->GetFaceName() != "")
|
||||
stream << ", '" << font->GetFaceName() << "'";
|
||||
stream << "]";
|
||||
}
|
||||
|
||||
/*
|
||||
* Resource table with saving (basic one only has loading)
|
||||
*/
|
||||
|
||||
bool wxResourceTableWithSaving::Save(const wxString& filename)
|
||||
{
|
||||
ofstream stream(((wxString &) filename).GetData());
|
||||
if (stream.bad())
|
||||
return FALSE;
|
||||
|
||||
BeginFind();
|
||||
wxNode *node = NULL;
|
||||
while (node = Next())
|
||||
{
|
||||
wxItemResource *item = (wxItemResource *)node->Data();
|
||||
wxString resType(item->GetType());
|
||||
|
||||
if (resType == "wxDialogBox" || resType == "wxDialog" || resType == "wxPanel" || resType == "wxBitmap")
|
||||
{
|
||||
if (!SaveResource(stream, item))
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
bool wxResourceTableWithSaving::SaveResource(ostream& stream, wxItemResource *item)
|
||||
{
|
||||
char styleBuf[400];
|
||||
wxString itemType(item->GetType());
|
||||
|
||||
if (itemType == "wxDialogBox" || itemType == "wxDialog" || itemType == "wxPanel")
|
||||
{
|
||||
if (itemType == "wxDialogBox" || itemType == "wxDialog")
|
||||
{
|
||||
stream << "static char *" << item->GetName() << " = \"dialog(name = '" << item->GetName() << "',\\\n";
|
||||
GenerateDialogStyleString(item->GetStyle(), styleBuf);
|
||||
}
|
||||
else
|
||||
{
|
||||
stream << "static char *" << item->GetName() << " = \"panel(name = '" << item->GetName() << "',\\\n";
|
||||
GeneratePanelStyleString(item->GetStyle(), styleBuf);
|
||||
}
|
||||
stream << " style = '" << styleBuf << "',\\\n";
|
||||
stream << " title = '" << item->GetTitle() << "',\\\n";
|
||||
stream << " x = " << item->GetX() << ", y = " << item->GetY();
|
||||
stream << ", width = " << item->GetWidth() << ", height = " << item->GetHeight() << ",\\\n";
|
||||
stream << " modal = " << item->GetValue1();
|
||||
|
||||
if (item->GetStyle() & wxUSER_COLOURS)
|
||||
{
|
||||
if (item->GetBackgroundColour())
|
||||
{
|
||||
char buf[7];
|
||||
wxDecToHex(item->GetBackgroundColour()->Red(), buf);
|
||||
wxDecToHex(item->GetBackgroundColour()->Green(), buf+2);
|
||||
wxDecToHex(item->GetBackgroundColour()->Blue(), buf+4);
|
||||
buf[6] = 0;
|
||||
|
||||
stream << ",\\\n " << "background_colour = '" << buf << "'";
|
||||
}
|
||||
if (item->GetLabelColour())
|
||||
{
|
||||
char buf[7];
|
||||
wxDecToHex(item->GetLabelColour()->Red(), buf);
|
||||
wxDecToHex(item->GetLabelColour()->Green(), buf+2);
|
||||
wxDecToHex(item->GetLabelColour()->Blue(), buf+4);
|
||||
buf[6] = 0;
|
||||
|
||||
stream << ",\\\n " << "label_colour = '" << buf << "'";
|
||||
}
|
||||
if (item->GetButtonColour())
|
||||
{
|
||||
char buf[7];
|
||||
wxDecToHex(item->GetButtonColour()->Red(), buf);
|
||||
wxDecToHex(item->GetButtonColour()->Green(), buf+2);
|
||||
wxDecToHex(item->GetButtonColour()->Blue(), buf+4);
|
||||
buf[6] = 0;
|
||||
|
||||
stream << ",\\\n " << "button_colour = '" << buf << "'";
|
||||
}
|
||||
}
|
||||
|
||||
if (item->GetFont())
|
||||
{
|
||||
stream << ",\\\n font = ";
|
||||
OutputFont(stream, item->GetFont());
|
||||
}
|
||||
/*
|
||||
if (item->GetButtonFont())
|
||||
{
|
||||
stream << ",\\\n button_font = ";
|
||||
OutputFont(stream, item->GetButtonFont());
|
||||
}
|
||||
*/
|
||||
|
||||
if (item->GetChildren().Number() > 0)
|
||||
stream << ",\\\n";
|
||||
else
|
||||
stream << "\\\n";
|
||||
wxNode *node = item->GetChildren().First();
|
||||
while (node)
|
||||
{
|
||||
wxItemResource *child = (wxItemResource *)node->Data();
|
||||
|
||||
stream << " control = [";
|
||||
|
||||
SaveResource(stream, child);
|
||||
|
||||
stream << "]";
|
||||
|
||||
if (node->Next())
|
||||
stream << ",\\\n";
|
||||
node = node->Next();
|
||||
}
|
||||
stream << ").\";\n\n";
|
||||
}
|
||||
else if (itemType == "wxButton")
|
||||
{
|
||||
GenerateButtonStyleString(item->GetStyle(), styleBuf);
|
||||
stream << "wxButton, " << SafeWord(item->GetTitle()) << ", '" << styleBuf << "', ";
|
||||
stream << SafeWord(item->GetName()) << ", " << item->GetX() << ", " << item->GetY() << ", ";
|
||||
stream << item->GetWidth() << ", " << item->GetHeight();
|
||||
if (item->GetValue4())
|
||||
stream << ", '" << item->GetValue4() << "'";
|
||||
if (item->GetFont())
|
||||
{
|
||||
stream << ",\\\n ";
|
||||
OutputFont(stream, item->GetFont());
|
||||
}
|
||||
}
|
||||
else if (itemType == "wxMessage")
|
||||
{
|
||||
GenerateMessageStyleString(item->GetStyle(), styleBuf);
|
||||
stream << "wxMessage, " << SafeWord(item->GetTitle()) << ", '" << styleBuf << "', ";
|
||||
stream << SafeWord(item->GetName()) << ", " << item->GetX() << ", " << item->GetY() << ", ";
|
||||
stream << item->GetWidth() << ", " << item->GetHeight();
|
||||
if (item->GetValue4())
|
||||
stream << ", '" << item->GetValue4() << "'";
|
||||
if (item->GetFont())
|
||||
{
|
||||
stream << ",\\\n ";
|
||||
OutputFont(stream, item->GetFont());
|
||||
}
|
||||
}
|
||||
else if (itemType == "wxCheckBox")
|
||||
{
|
||||
GenerateCheckBoxStyleString(item->GetStyle(), styleBuf);
|
||||
stream << "wxCheckBox, " << SafeWord(item->GetTitle()) << ", '" << styleBuf << "', ";
|
||||
stream << SafeWord(item->GetName()) << ", " << item->GetX() << ", " << item->GetY() << ", ";
|
||||
stream << item->GetWidth() << ", " << item->GetHeight();
|
||||
stream << ", " << item->GetValue1();
|
||||
if (item->GetFont())
|
||||
{
|
||||
stream << ",\\\n ";
|
||||
OutputFont(stream, item->GetFont());
|
||||
}
|
||||
}
|
||||
else if (itemType == "wxGroupBox")
|
||||
{
|
||||
GenerateGroupBoxStyleString(item->GetStyle(), styleBuf);
|
||||
stream << "wxGroupBox, " << SafeWord(item->GetTitle()) << ", '" << styleBuf << "', ";
|
||||
stream << SafeWord(item->GetName()) << ", " << item->GetX() << ", " << item->GetY() << ", ";
|
||||
stream << item->GetWidth() << ", " << item->GetHeight();
|
||||
if (item->GetFont())
|
||||
{
|
||||
stream << ",\\\n ";
|
||||
OutputFont(stream, item->GetFont());
|
||||
}
|
||||
}
|
||||
else if (itemType == "wxText" || itemType == "wxMultiText")
|
||||
{
|
||||
GenerateTextStyleString(item->GetStyle(), styleBuf);
|
||||
stream << ((itemType == "wxText") ? "wxText, " : "wxMultiText, ");
|
||||
stream << SafeWord(item->GetTitle()) << ", '" << styleBuf << "', ";
|
||||
stream << SafeWord(item->GetName()) << ", " << item->GetX() << ", " << item->GetY() << ", ";
|
||||
stream << item->GetWidth() << ", " << item->GetHeight();
|
||||
stream << ", " << SafeWord(item->GetValue4());
|
||||
if (item->GetFont())
|
||||
{
|
||||
stream << ",\\\n ";
|
||||
OutputFont(stream, item->GetFont());
|
||||
}
|
||||
}
|
||||
else if (itemType == "wxGauge")
|
||||
{
|
||||
GenerateGaugeStyleString(item->GetStyle(), styleBuf);
|
||||
stream << "wxGauge, " << SafeWord(item->GetTitle()) << ", '" << styleBuf << "', ";
|
||||
stream << SafeWord(item->GetName()) << ", " << item->GetX() << ", " << item->GetY() << ", ";
|
||||
stream << item->GetWidth() << ", " << item->GetHeight();
|
||||
stream << ", " << item->GetValue1() << ", " << item->GetValue2();
|
||||
if (item->GetFont())
|
||||
{
|
||||
stream << ",\\\n ";
|
||||
OutputFont(stream, item->GetFont());
|
||||
}
|
||||
}
|
||||
else if (itemType == "wxSlider")
|
||||
{
|
||||
GenerateSliderStyleString(item->GetStyle(), styleBuf);
|
||||
stream << "wxSlider, " << SafeWord(item->GetTitle()) << ", '" << styleBuf << "', ";
|
||||
stream << SafeWord(item->GetName()) << ", " << item->GetX() << ", " << item->GetY() << ", ";
|
||||
stream << item->GetWidth() << ", " << item->GetHeight();
|
||||
stream << ", " << item->GetValue1() << ", " << item->GetValue2() << ", " << item->GetValue3();
|
||||
if (item->GetFont())
|
||||
{
|
||||
stream << ",\\\n ";
|
||||
OutputFont(stream, item->GetFont());
|
||||
}
|
||||
}
|
||||
else if (itemType == "wxScrollBar")
|
||||
{
|
||||
GenerateScrollBarStyleString(item->GetStyle(), styleBuf);
|
||||
stream << "wxScrollBar, " << SafeWord(item->GetTitle()) << ", '" << styleBuf << "', ";
|
||||
stream << SafeWord(item->GetName()) << ", " << item->GetX() << ", " << item->GetY() << ", ";
|
||||
stream << item->GetWidth() << ", " << item->GetHeight();
|
||||
stream << ", " << item->GetValue1() << ", " << item->GetValue2() << ", " << item->GetValue3() << ", ";
|
||||
stream << item->GetValue5();
|
||||
}
|
||||
else if (itemType == "wxListBox")
|
||||
{
|
||||
GenerateListBoxStyleString(item->GetStyle(), styleBuf);
|
||||
stream << "wxListBox, " << SafeWord(item->GetTitle()) << ", '" << styleBuf << "', ";
|
||||
stream << SafeWord(item->GetName()) << ", " << item->GetX() << ", " << item->GetY() << ", ";
|
||||
stream << item->GetWidth() << ", " << item->GetHeight();
|
||||
|
||||
// Default list of values
|
||||
|
||||
stream << ", [";
|
||||
if (item->GetStringValues())
|
||||
{
|
||||
wxNode *node = item->GetStringValues()->First();
|
||||
while (node)
|
||||
{
|
||||
char *s = (char *)node->Data();
|
||||
stream << SafeWord(s);
|
||||
if (node->Next())
|
||||
stream << ", ";
|
||||
node = node->Next();
|
||||
}
|
||||
}
|
||||
stream << "], ";
|
||||
switch (item->GetValue1())
|
||||
{
|
||||
case wxLB_MULTIPLE:
|
||||
{
|
||||
stream << "'wxLB_MULTIPLE'";
|
||||
break;
|
||||
}
|
||||
case wxLB_EXTENDED:
|
||||
{
|
||||
stream << "'wxLB_EXTENDED'";
|
||||
break;
|
||||
}
|
||||
case wxLB_SINGLE:
|
||||
default:
|
||||
{
|
||||
stream << "'wxLB_SINGLE'";
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (item->GetFont())
|
||||
{
|
||||
stream << ",\\\n ";
|
||||
OutputFont(stream, item->GetFont());
|
||||
}
|
||||
}
|
||||
else if (itemType == "wxChoice")
|
||||
{
|
||||
GenerateChoiceStyleString(item->GetStyle(), styleBuf);
|
||||
stream << "wxChoice, " << SafeWord(item->GetTitle()) << ", '" << styleBuf << "', ";
|
||||
stream << SafeWord(item->GetName()) << ", " << item->GetX() << ", " << item->GetY() << ", ";
|
||||
stream << item->GetWidth() << ", " << item->GetHeight();
|
||||
|
||||
// Default list of values
|
||||
|
||||
stream << ", [";
|
||||
if (item->GetStringValues())
|
||||
{
|
||||
wxNode *node = item->GetStringValues()->First();
|
||||
while (node)
|
||||
{
|
||||
char *s = (char *)node->Data();
|
||||
stream << SafeWord(s);
|
||||
if (node->Next())
|
||||
stream << ", ";
|
||||
node = node->Next();
|
||||
}
|
||||
}
|
||||
stream << "]";
|
||||
if (item->GetFont())
|
||||
{
|
||||
stream << ",\\\n ";
|
||||
OutputFont(stream, item->GetFont());
|
||||
}
|
||||
}
|
||||
else if (itemType == "wxRadioBox")
|
||||
{
|
||||
// Must write out the orientation and number of rows/cols!!
|
||||
GenerateRadioBoxStyleString(item->GetStyle(), styleBuf);
|
||||
stream << "wxRadioBox, " << SafeWord(item->GetTitle()) << ", '" << styleBuf << "', ";
|
||||
stream << SafeWord(item->GetName()) << ", " << item->GetX() << ", " << item->GetY() << ", ";
|
||||
stream << item->GetWidth() << ", " << item->GetHeight();
|
||||
|
||||
// Default list of values
|
||||
|
||||
stream << ", [";
|
||||
if (item->GetStringValues())
|
||||
{
|
||||
wxNode *node = item->GetStringValues()->First();
|
||||
while (node)
|
||||
{
|
||||
char *s = (char *)node->Data();
|
||||
stream << SafeWord(s);
|
||||
if (node->Next())
|
||||
stream << ", ";
|
||||
node = node->Next();
|
||||
}
|
||||
}
|
||||
stream << "], " << item->GetValue1();
|
||||
if (item->GetFont())
|
||||
{
|
||||
stream << ",\\\n ";
|
||||
OutputFont(stream, item->GetFont());
|
||||
}
|
||||
}
|
||||
else if (itemType == "wxBitmap")
|
||||
{
|
||||
stream << "static char *" << item->GetName() << " = \"bitmap(name = '" << item->GetName() << "',\\\n";
|
||||
|
||||
wxNode *node = item->GetChildren().First();
|
||||
while (node)
|
||||
{
|
||||
wxItemResource *child = (wxItemResource *)node->Data();
|
||||
stream << " bitmap = [";
|
||||
|
||||
char buf[400];
|
||||
strcpy(buf, child->GetName());
|
||||
#ifdef __WINDOWS__
|
||||
wxDos2UnixFilename(buf);
|
||||
#endif
|
||||
|
||||
stream << "'" << buf << "', ";
|
||||
|
||||
int bitmapType = (int)child->GetValue1();
|
||||
switch (bitmapType)
|
||||
{
|
||||
case wxBITMAP_TYPE_XBM_DATA:
|
||||
{
|
||||
stream << "wxBITMAP_TYPE_XBM_DATA";
|
||||
break;
|
||||
}
|
||||
case wxBITMAP_TYPE_XPM_DATA:
|
||||
{
|
||||
stream << "wxBITMAP_TYPE_XPM_DATA";
|
||||
break;
|
||||
}
|
||||
case wxBITMAP_TYPE_XBM:
|
||||
{
|
||||
stream << "wxBITMAP_TYPE_XBM";
|
||||
break;
|
||||
}
|
||||
case wxBITMAP_TYPE_XPM:
|
||||
{
|
||||
stream << "wxBITMAP_TYPE_XPM";
|
||||
break;
|
||||
}
|
||||
case wxBITMAP_TYPE_BMP:
|
||||
{
|
||||
stream << "wxBITMAP_TYPE_BMP";
|
||||
break;
|
||||
}
|
||||
case wxBITMAP_TYPE_BMP_RESOURCE:
|
||||
{
|
||||
stream << "wxBITMAP_TYPE_BMP_RESOURCE";
|
||||
break;
|
||||
}
|
||||
case wxBITMAP_TYPE_GIF:
|
||||
{
|
||||
stream << "wxBITMAP_TYPE_GIF";
|
||||
break;
|
||||
}
|
||||
case wxBITMAP_TYPE_TIF:
|
||||
{
|
||||
stream << "wxBITMAP_TYPE_TIF";
|
||||
break;
|
||||
}
|
||||
case wxBITMAP_TYPE_ICO:
|
||||
{
|
||||
stream << "wxBITMAP_TYPE_ICO";
|
||||
break;
|
||||
}
|
||||
case wxBITMAP_TYPE_ICO_RESOURCE:
|
||||
{
|
||||
stream << "wxBITMAP_TYPE_ICO_RESOURCE";
|
||||
break;
|
||||
}
|
||||
case wxBITMAP_TYPE_CUR:
|
||||
{
|
||||
stream << "wxBITMAP_TYPE_CUR";
|
||||
break;
|
||||
}
|
||||
case wxBITMAP_TYPE_CUR_RESOURCE:
|
||||
{
|
||||
stream << "wxBITMAP_TYPE_CUR_RESOURCE";
|
||||
break;
|
||||
}
|
||||
default:
|
||||
case wxBITMAP_TYPE_ANY:
|
||||
{
|
||||
stream << "wxBITMAP_TYPE_ANY";
|
||||
break;
|
||||
}
|
||||
}
|
||||
stream << ", ";
|
||||
int platform = child->GetValue2();
|
||||
switch (platform)
|
||||
{
|
||||
case RESOURCE_PLATFORM_WINDOWS:
|
||||
{
|
||||
stream << "'WINDOWS'";
|
||||
break;
|
||||
}
|
||||
case RESOURCE_PLATFORM_X:
|
||||
{
|
||||
stream << "'X'";
|
||||
break;
|
||||
}
|
||||
case RESOURCE_PLATFORM_MAC:
|
||||
{
|
||||
stream << "'MAC'";
|
||||
break;
|
||||
}
|
||||
case RESOURCE_PLATFORM_ANY:
|
||||
{
|
||||
stream << "'ANY'";
|
||||
break;
|
||||
}
|
||||
}
|
||||
int noColours = (int)child->GetValue3();
|
||||
if (noColours > 0)
|
||||
stream << ", " << noColours;
|
||||
|
||||
stream << "]";
|
||||
|
||||
if (node->Next())
|
||||
stream << ",\\\n";
|
||||
|
||||
node = node->Next();
|
||||
}
|
||||
stream << ").\";\n\n";
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void wxResourceTableWithSaving::GenerateWindowStyleString(long windowStyle, char *buf)
|
||||
{
|
||||
GenerateStyle(buf, windowStyle, wxUSER_COLOURS, "wxUSER_COLOURS");
|
||||
GenerateStyle(buf, windowStyle, wxVSCROLL, "wxVSCROLL");
|
||||
GenerateStyle(buf, windowStyle, wxHSCROLL, "wxHSCROLL");
|
||||
GenerateStyle(buf, windowStyle, wxBORDER, "wxBORDER");
|
||||
}
|
||||
|
||||
void wxResourceTableWithSaving::GenerateDialogStyleString(long windowStyle, char *buf)
|
||||
{
|
||||
buf[0] = 0;
|
||||
GenerateWindowStyleString(windowStyle, buf);
|
||||
|
||||
/*
|
||||
GenerateStyle(buf, windowStyle, wxRETAINED, "wxRETAINED");
|
||||
*/
|
||||
if (!GenerateStyle(buf, windowStyle, wxDEFAULT_DIALOG_STYLE, "wxDEFAULT_DIALOG_STYLE"))
|
||||
{
|
||||
GenerateStyle(buf, windowStyle, wxCAPTION, "wxCAPTION");
|
||||
GenerateStyle(buf, windowStyle, wxTHICK_FRAME, "wxTHICK_FRAME");
|
||||
GenerateStyle(buf, windowStyle, wxRESIZE_BORDER, "wxRESIZE_BORDER");
|
||||
GenerateStyle(buf, windowStyle, wxSYSTEM_MENU, "wxSYSTEM_MENU");
|
||||
GenerateStyle(buf, windowStyle, wxMINIMIZE_BOX, "wxMINIMIZE_BOX");
|
||||
GenerateStyle(buf, windowStyle, wxMAXIMIZE_BOX, "wxMAXIMIZE_BOX");
|
||||
}
|
||||
if (strlen(buf) == 0)
|
||||
strcat(buf, "0");
|
||||
}
|
||||
|
||||
void wxResourceTableWithSaving::GeneratePanelStyleString(long windowStyle, char *buf)
|
||||
{
|
||||
buf[0] = 0;
|
||||
GenerateWindowStyleString(windowStyle, buf);
|
||||
|
||||
/*
|
||||
GenerateStyle(buf, windowStyle, wxRETAINED, "wxRETAINED");
|
||||
*/
|
||||
if (strlen(buf) == 0)
|
||||
strcat(buf, "0");
|
||||
}
|
||||
|
||||
|
||||
void wxResourceTableWithSaving::GenerateItemStyleString(long windowStyle, char *buf)
|
||||
{
|
||||
GenerateWindowStyleString(windowStyle, buf);
|
||||
|
||||
GenerateStyle(buf, windowStyle, wxHORIZONTAL, "wxHORIZONTAL");
|
||||
GenerateStyle(buf, windowStyle, wxVERTICAL, "wxVERTICAL");
|
||||
}
|
||||
|
||||
void wxResourceTableWithSaving::GenerateRadioBoxStyleString(long windowStyle, char *buf)
|
||||
{
|
||||
buf[0] = 0;
|
||||
GenerateItemStyleString(windowStyle, buf);
|
||||
|
||||
if (strlen(buf) == 0)
|
||||
strcat(buf, "0");
|
||||
}
|
||||
|
||||
void wxResourceTableWithSaving::GenerateMessageStyleString(long windowStyle, char *buf)
|
||||
{
|
||||
buf[0] = 0;
|
||||
GenerateItemStyleString(windowStyle, buf);
|
||||
|
||||
if (strlen(buf) == 0)
|
||||
strcat(buf, "0");
|
||||
}
|
||||
|
||||
void wxResourceTableWithSaving::GenerateTextStyleString(long windowStyle, char *buf)
|
||||
{
|
||||
buf[0] = 0;
|
||||
GenerateItemStyleString(windowStyle, buf);
|
||||
|
||||
GenerateStyle(buf, windowStyle, wxTE_PROCESS_ENTER, "wxTE_PROCESS_ENTER");
|
||||
GenerateStyle(buf, windowStyle, wxTE_READONLY, "wxTE_READONLY");
|
||||
GenerateStyle(buf, windowStyle, wxTE_PASSWORD, "wxTE_PASSWORD");
|
||||
|
||||
if (strlen(buf) == 0)
|
||||
strcat(buf, "0");
|
||||
}
|
||||
|
||||
void wxResourceTableWithSaving::GenerateButtonStyleString(long windowStyle, char *buf)
|
||||
{
|
||||
buf[0] = 0;
|
||||
GenerateItemStyleString(windowStyle, buf);
|
||||
|
||||
if (strlen(buf) == 0)
|
||||
strcat(buf, "0");
|
||||
}
|
||||
|
||||
void wxResourceTableWithSaving::GenerateCheckBoxStyleString(long windowStyle, char *buf)
|
||||
{
|
||||
buf[0] = 0;
|
||||
GenerateItemStyleString(windowStyle, buf);
|
||||
|
||||
if (strlen(buf) == 0)
|
||||
strcat(buf, "0");
|
||||
}
|
||||
|
||||
void wxResourceTableWithSaving::GenerateListBoxStyleString(long windowStyle, char *buf)
|
||||
{
|
||||
buf[0] = 0;
|
||||
GenerateItemStyleString(windowStyle, buf);
|
||||
|
||||
GenerateStyle(buf, windowStyle, wxLB_ALWAYS_SB, "wxLB_ALWAYS_SB");
|
||||
GenerateStyle(buf, windowStyle, wxLB_SORT, "wxLB_SORT");
|
||||
// GenerateStyle(buf, windowStyle, wxLB_SINGLE, "wxLB_SINGLE"); // Done already
|
||||
GenerateStyle(buf, windowStyle, wxLB_MULTIPLE, "wxLB_MULTIPLE");
|
||||
GenerateStyle(buf, windowStyle, wxLB_EXTENDED, "wxLB_EXTENDED");
|
||||
|
||||
if (strlen(buf) == 0)
|
||||
strcat(buf, "0");
|
||||
}
|
||||
|
||||
void wxResourceTableWithSaving::GenerateSliderStyleString(long windowStyle, char *buf)
|
||||
{
|
||||
buf[0] = 0;
|
||||
GenerateItemStyleString(windowStyle, buf);
|
||||
|
||||
if (strlen(buf) == 0)
|
||||
strcat(buf, "0");
|
||||
}
|
||||
|
||||
void wxResourceTableWithSaving::GenerateGroupBoxStyleString(long windowStyle, char *buf)
|
||||
{
|
||||
buf[0] = 0;
|
||||
GenerateItemStyleString(windowStyle, buf);
|
||||
|
||||
if (strlen(buf) == 0)
|
||||
strcat(buf, "0");
|
||||
}
|
||||
|
||||
void wxResourceTableWithSaving::GenerateGaugeStyleString(long windowStyle, char *buf)
|
||||
{
|
||||
buf[0] = 0;
|
||||
GenerateItemStyleString(windowStyle, buf);
|
||||
|
||||
GenerateStyle(buf, windowStyle, wxGA_PROGRESSBAR, "wxGA_PROGRESSBAR");
|
||||
|
||||
if (strlen(buf) == 0)
|
||||
strcat(buf, "0");
|
||||
}
|
||||
|
||||
void wxResourceTableWithSaving::GenerateChoiceStyleString(long windowStyle, char *buf)
|
||||
{
|
||||
buf[0] = 0;
|
||||
GenerateItemStyleString(windowStyle, buf);
|
||||
|
||||
if (strlen(buf) == 0)
|
||||
strcat(buf, "0");
|
||||
}
|
||||
|
||||
void wxResourceTableWithSaving::GenerateScrollBarStyleString(long windowStyle, char *buf)
|
||||
{
|
||||
buf[0] = 0;
|
||||
GenerateItemStyleString(windowStyle, buf);
|
||||
|
||||
if (strlen(buf) == 0)
|
||||
strcat(buf, "0");
|
||||
}
|
||||
|
||||
bool wxResourceTableWithSaving::GenerateStyle(char *buf, long windowStyle, long flag, char *strStyle)
|
||||
{
|
||||
if ((windowStyle & flag) == flag)
|
||||
{
|
||||
if (strlen(buf) > 0)
|
||||
strcat(buf, " | ");
|
||||
strcat(buf, strStyle);
|
||||
return TRUE;
|
||||
}
|
||||
else
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
// Returns quoted string or "NULL"
|
||||
char *SafeString(char *s)
|
||||
{
|
||||
if (!s)
|
||||
return "NULL";
|
||||
else
|
||||
{
|
||||
strcpy(wxBuffer, "\"");
|
||||
strcat(wxBuffer, s);
|
||||
strcat(wxBuffer, "\"");
|
||||
return wxBuffer;
|
||||
}
|
||||
}
|
||||
|
||||
// Returns quoted string or ''
|
||||
char *SafeWord(char *s)
|
||||
{
|
||||
if (!s)
|
||||
return "''";
|
||||
else
|
||||
{
|
||||
strcpy(wxBuffer, "'");
|
||||
strcat(wxBuffer, s);
|
||||
strcat(wxBuffer, "'");
|
||||
return wxBuffer;
|
||||
}
|
||||
}
|
||||
|
1578
utils/dialoged/src/winprop.cpp
Normal file
293
utils/dialoged/src/winprop.h
Normal file
@@ -0,0 +1,293 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: winprop.h
|
||||
// Purpose: Window properties
|
||||
// Author: Julian Smart
|
||||
// Modified by:
|
||||
// Created: 04/01/98
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) Julian Smart
|
||||
// Licence: wxWindows license
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WINPROP_H_
|
||||
#define _WINPROP_H_
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma interface "winprop.h"
|
||||
#endif
|
||||
|
||||
#include "reseditr.h"
|
||||
|
||||
class wxPropertyInfo;
|
||||
|
||||
// A kind of property list view that intercepts OnPropertyChanged
|
||||
// feedback.
|
||||
class wxResourcePropertyListView: public wxPropertyListView
|
||||
{
|
||||
public:
|
||||
wxPropertyInfo *propertyInfo;
|
||||
|
||||
wxResourcePropertyListView(wxPropertyInfo *info, wxPanel *propPanel = NULL, long flags = wxPROP_BUTTON_DEFAULT):
|
||||
wxPropertyListView(propPanel, flags)
|
||||
{
|
||||
propertyInfo = info;
|
||||
}
|
||||
void OnPropertyChanged(wxProperty *property);
|
||||
bool OnClose(void);
|
||||
};
|
||||
|
||||
// Generic class for relating an object to a collection of properties.
|
||||
// Instead of defining new functions like wxButton::GetProperty, wxButton::SetProperty,
|
||||
// we take these functions out into of the wxWindows library and associate
|
||||
// them with separate classes.
|
||||
class wxPropertyInfo: public wxObject
|
||||
{
|
||||
protected:
|
||||
static wxWindow *sm_propertyWindow;
|
||||
wxPropertyInfo(void)
|
||||
{
|
||||
}
|
||||
~wxPropertyInfo(void)
|
||||
{
|
||||
}
|
||||
public:
|
||||
virtual wxProperty *GetProperty(wxString& propName) = 0;
|
||||
virtual bool SetProperty(wxString& propName, wxProperty *property) = 0;
|
||||
virtual void GetPropertyNames(wxStringList& names) = 0;
|
||||
virtual bool Edit(wxWindow *parent, char *title);
|
||||
};
|
||||
|
||||
// For all windows
|
||||
class wxWindowPropertyInfo: public wxPropertyInfo
|
||||
{
|
||||
protected:
|
||||
wxWindow *propertyWindow;
|
||||
wxItemResource *propertyResource;
|
||||
public:
|
||||
wxWindowPropertyInfo(wxWindow *win, wxItemResource *res = NULL);
|
||||
~wxWindowPropertyInfo(void);
|
||||
wxProperty *GetProperty(wxString& name);
|
||||
bool SetProperty(wxString& name, wxProperty *property);
|
||||
void GetPropertyNames(wxStringList& names);
|
||||
|
||||
inline void SetPropertyWindow(wxWindow *win) { propertyWindow = win; }
|
||||
|
||||
inline void SetResource(wxItemResource *res) { propertyResource = res; }
|
||||
|
||||
// Helper functions for font properties
|
||||
|
||||
wxProperty *GetFontProperty(wxString& name, wxFont *font);
|
||||
wxFont *SetFontProperty(wxString& name, wxProperty *property, wxFont *oldFont);
|
||||
|
||||
// Fill in the wxItemResource members to mirror the current window settings
|
||||
virtual bool InstantiateResource(wxItemResource *resource);
|
||||
};
|
||||
|
||||
// For panel items
|
||||
class wxItemPropertyInfo: public wxWindowPropertyInfo
|
||||
{
|
||||
protected:
|
||||
public:
|
||||
wxItemPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
|
||||
wxWindowPropertyInfo(win, res) {}
|
||||
~wxItemPropertyInfo(void) {}
|
||||
wxProperty *GetProperty(wxString& name);
|
||||
bool SetProperty(wxString& name, wxProperty *property);
|
||||
void GetPropertyNames(wxStringList& names);
|
||||
bool InstantiateResource(wxItemResource *resource);
|
||||
};
|
||||
|
||||
// For buttons
|
||||
class wxButtonPropertyInfo: public wxItemPropertyInfo
|
||||
{
|
||||
protected:
|
||||
public:
|
||||
bool isBitmapButton;
|
||||
wxButtonPropertyInfo(wxWindow *win, wxItemResource *res = NULL, bool bmButton = FALSE):
|
||||
wxItemPropertyInfo(win, res) { isBitmapButton = bmButton; }
|
||||
~wxButtonPropertyInfo(void) {}
|
||||
wxProperty *GetProperty(wxString& name);
|
||||
bool SetProperty(wxString& name, wxProperty *property);
|
||||
void GetPropertyNames(wxStringList& names);
|
||||
bool InstantiateResource(wxItemResource *resource);
|
||||
|
||||
inline bool IsBitmapButton(void) { return isBitmapButton; }
|
||||
};
|
||||
|
||||
// For messages
|
||||
class wxStaticTextPropertyInfo: public wxItemPropertyInfo
|
||||
{
|
||||
protected:
|
||||
public:
|
||||
bool isBitmapMessage;
|
||||
wxStaticTextPropertyInfo(wxWindow *win, wxItemResource *res = NULL, bool bmMessage = FALSE):
|
||||
wxItemPropertyInfo(win, res) { isBitmapMessage = bmMessage; }
|
||||
~wxStaticTextPropertyInfo(void) {}
|
||||
wxProperty *GetProperty(wxString& name);
|
||||
bool SetProperty(wxString& name, wxProperty *property);
|
||||
void GetPropertyNames(wxStringList& names);
|
||||
bool InstantiateResource(wxItemResource *resource);
|
||||
|
||||
inline bool IsBitmapMessage(void) { return isBitmapMessage; }
|
||||
};
|
||||
|
||||
// For text/multitext items
|
||||
class wxTextPropertyInfo: public wxItemPropertyInfo
|
||||
{
|
||||
protected:
|
||||
public:
|
||||
wxTextPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
|
||||
wxItemPropertyInfo(win, res) {}
|
||||
~wxTextPropertyInfo(void) {}
|
||||
wxProperty *GetProperty(wxString& name);
|
||||
bool SetProperty(wxString& name, wxProperty *property);
|
||||
void GetPropertyNames(wxStringList& names);
|
||||
bool InstantiateResource(wxItemResource *resource);
|
||||
};
|
||||
|
||||
// For list boxes
|
||||
class wxListBoxPropertyInfo: public wxItemPropertyInfo
|
||||
{
|
||||
protected:
|
||||
public:
|
||||
wxListBoxPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
|
||||
wxItemPropertyInfo(win, res) {}
|
||||
~wxListBoxPropertyInfo(void) {}
|
||||
wxProperty *GetProperty(wxString& name);
|
||||
bool SetProperty(wxString& name, wxProperty *property);
|
||||
void GetPropertyNames(wxStringList& names);
|
||||
bool InstantiateResource(wxItemResource *resource);
|
||||
};
|
||||
|
||||
// For choice items
|
||||
class wxChoicePropertyInfo: public wxItemPropertyInfo
|
||||
{
|
||||
protected:
|
||||
public:
|
||||
wxChoicePropertyInfo(wxWindow *win, wxItemResource *res = NULL):
|
||||
wxItemPropertyInfo(win, res) {}
|
||||
~wxChoicePropertyInfo(void) {}
|
||||
wxProperty *GetProperty(wxString& name);
|
||||
bool SetProperty(wxString& name, wxProperty *property);
|
||||
void GetPropertyNames(wxStringList& names);
|
||||
bool InstantiateResource(wxItemResource *resource);
|
||||
};
|
||||
|
||||
// For radiobox items
|
||||
class wxRadioBoxPropertyInfo: public wxItemPropertyInfo
|
||||
{
|
||||
protected:
|
||||
public:
|
||||
wxRadioBoxPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
|
||||
wxItemPropertyInfo(win, res) {}
|
||||
~wxRadioBoxPropertyInfo(void) {}
|
||||
wxProperty *GetProperty(wxString& name);
|
||||
bool SetProperty(wxString& name, wxProperty *property);
|
||||
void GetPropertyNames(wxStringList& names);
|
||||
bool InstantiateResource(wxItemResource *resource);
|
||||
};
|
||||
|
||||
// For groupbox items
|
||||
class wxGroupBoxPropertyInfo: public wxItemPropertyInfo
|
||||
{
|
||||
protected:
|
||||
public:
|
||||
wxGroupBoxPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
|
||||
wxItemPropertyInfo(win, res) {}
|
||||
~wxGroupBoxPropertyInfo(void) {}
|
||||
wxProperty *GetProperty(wxString& name);
|
||||
bool SetProperty(wxString& name, wxProperty *property);
|
||||
void GetPropertyNames(wxStringList& names);
|
||||
bool InstantiateResource(wxItemResource *resource);
|
||||
};
|
||||
|
||||
// For checkbox items
|
||||
class wxCheckBoxPropertyInfo: public wxItemPropertyInfo
|
||||
{
|
||||
protected:
|
||||
public:
|
||||
wxCheckBoxPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
|
||||
wxItemPropertyInfo(win, res) {}
|
||||
~wxCheckBoxPropertyInfo(void) {}
|
||||
wxProperty *GetProperty(wxString& name);
|
||||
bool SetProperty(wxString& name, wxProperty *property);
|
||||
void GetPropertyNames(wxStringList& names);
|
||||
bool InstantiateResource(wxItemResource *resource);
|
||||
};
|
||||
|
||||
// For gauge items
|
||||
class wxGaugePropertyInfo: public wxItemPropertyInfo
|
||||
{
|
||||
protected:
|
||||
public:
|
||||
wxGaugePropertyInfo(wxWindow *win, wxItemResource *res = NULL):
|
||||
wxItemPropertyInfo(win, res) {}
|
||||
~wxGaugePropertyInfo(void) {}
|
||||
wxProperty *GetProperty(wxString& name);
|
||||
bool SetProperty(wxString& name, wxProperty *property);
|
||||
void GetPropertyNames(wxStringList& names);
|
||||
bool InstantiateResource(wxItemResource *resource);
|
||||
};
|
||||
|
||||
// For scrollbar items
|
||||
class wxScrollBarPropertyInfo: public wxItemPropertyInfo
|
||||
{
|
||||
protected:
|
||||
public:
|
||||
wxScrollBarPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
|
||||
wxItemPropertyInfo(win, res) {}
|
||||
~wxScrollBarPropertyInfo(void) {}
|
||||
wxProperty *GetProperty(wxString& name);
|
||||
bool SetProperty(wxString& name, wxProperty *property);
|
||||
void GetPropertyNames(wxStringList& names);
|
||||
bool InstantiateResource(wxItemResource *resource);
|
||||
};
|
||||
|
||||
// For slider items
|
||||
class wxSliderPropertyInfo: public wxItemPropertyInfo
|
||||
{
|
||||
protected:
|
||||
public:
|
||||
wxSliderPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
|
||||
wxItemPropertyInfo(win, res) {}
|
||||
~wxSliderPropertyInfo(void) {}
|
||||
wxProperty *GetProperty(wxString& name);
|
||||
bool SetProperty(wxString& name, wxProperty *property);
|
||||
void GetPropertyNames(wxStringList& names);
|
||||
bool InstantiateResource(wxItemResource *resource);
|
||||
};
|
||||
|
||||
// For panels
|
||||
class wxPanelPropertyInfo: public wxWindowPropertyInfo
|
||||
{
|
||||
protected:
|
||||
public:
|
||||
wxPanelPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
|
||||
wxWindowPropertyInfo(win, res) {}
|
||||
~wxPanelPropertyInfo(void) {}
|
||||
wxProperty *GetProperty(wxString& name);
|
||||
bool SetProperty(wxString& name, wxProperty *property);
|
||||
void GetPropertyNames(wxStringList& names);
|
||||
bool InstantiateResource(wxItemResource *resource);
|
||||
};
|
||||
|
||||
// For dialogs
|
||||
class wxDialogPropertyInfo: public wxPanelPropertyInfo
|
||||
{
|
||||
protected:
|
||||
public:
|
||||
wxDialogPropertyInfo(wxWindow *win, wxItemResource *res = NULL):
|
||||
wxPanelPropertyInfo(win, res) {}
|
||||
~wxDialogPropertyInfo(void) {}
|
||||
wxProperty *GetProperty(wxString& name);
|
||||
bool SetProperty(wxString& name, wxProperty *property);
|
||||
void GetPropertyNames(wxStringList& names);
|
||||
bool InstantiateResource(wxItemResource *resource);
|
||||
};
|
||||
|
||||
int wxStringToFontWeight(wxString& val);
|
||||
int wxStringToFontStyle(wxString& val);
|
||||
int wxStringToFontFamily(wxString& val);
|
||||
|
||||
#endif
|
||||
|