Changeset 7479
- Timestamp:
- 27/04/11 15:35:38 (13 months ago)
- Location:
- branches/dev
- Files:
-
- 1 removed
- 3 modified
-
WINDOW/AW_window.cxx (modified) (4 diffs)
-
WINDOW/aw_root.hxx (modified) (2 diffs)
-
WINDOW/aw_window_Xm.hxx (modified) (1 diff)
-
lib/pictures/macro_message.fig (deleted)
Legend:
- Unmodified
- Added
- Removed
-
branches/dev/WINDOW/AW_window.cxx
r7452 r7479 686 686 #endif // DEBUG 687 687 } 688 689 static void macro_message_cb(AW_window *aw, AW_CL);690 688 691 689 bool AW_cb_struct::is_equal(const AW_cb_struct& other) const { … … 737 735 738 736 bool isModalCallback = (f == AW_CB(message_cb) || 739 f == AW_CB(macro_message_cb) ||740 737 f == AW_CB(input_history_cb) || 741 738 f == AW_CB(input_cb) || … … 3457 3454 } 3458 3455 3459 3460 #define AW_MESSAGE_AWAR "tmp/message/macro"3461 3462 static void macro_message_cb(AW_window *aw, AW_CL) {3463 AW_root *root = aw->get_root();3464 aw->hide();3465 3466 if (root->prvt->recording_macro_file) {3467 char *s = root->awar(AW_MESSAGE_AWAR)->read_string();3468 fprintf(root->prvt->recording_macro_file, "MESSAGE\t");3469 GBS_fwrite_string(s, root->prvt->recording_macro_file);3470 fprintf(root->prvt->recording_macro_file, "\n");3471 delete s;3472 }3473 3474 if (root->prvt->executing_macro_file) {3475 // root->enable_execute_macro(); @@@@3476 }3477 3478 return;3479 }3480 3481 static void aw_clear_macro_message_cb(AW_window *aww) {3482 aww->get_root()->awar(AW_MESSAGE_AWAR)->write_string("");3483 }3484 3485 void aw_macro_message(const char *templat, ...)3486 // @@@ this function is unused.3487 {3488 3489 AW_root *root = AW_root::SINGLETON;3490 char buffer[10000];3491 {3492 va_list parg;3493 va_start(parg, templat);3494 vsprintf(buffer, templat, parg);3495 }3496 static AW_window_message *aw_msg = 0;3497 3498 root->awar_string(AW_MESSAGE_AWAR)->write_string(buffer);3499 3500 if (!aw_msg) {3501 aw_msg = new AW_window_message;3502 3503 aw_msg->init(root, "MESSAGE", false);3504 aw_msg->load_xfig("macro_message.fig");3505 3506 aw_msg->at("clear");3507 aw_msg->callback(aw_clear_macro_message_cb);3508 aw_msg->create_button("OK", "OK", "O");3509 3510 aw_msg->at("Message");3511 aw_msg->create_text_field(AW_MESSAGE_AWAR);3512 3513 aw_msg->at("hide");3514 aw_msg->callback(macro_message_cb, 0);3515 aw_msg->create_button("OK", "OK", "O");3516 }3517 3518 aw_msg->show();3519 if (root->prvt->executing_macro_file) {3520 root->stop_execute_macro();3521 }3522 }3523 3524 3456 GB_ERROR AW_root::start_macro_recording(const char *file, 3525 3457 const char *application_id, const char *stop_action_name) { … … 3589 3521 free(path); 3590 3522 return 0; 3591 }3592 3593 void AW_root::stop_execute_macro() {3594 3595 3523 } 3596 3524 -
branches/dev/WINDOW/aw_root.hxx
r7452 r7479 40 40 41 41 void aw_set_local_message(); // no message window, AWAR_ERROR_MESSAGES instead (used by EDIT4) 42 43 void aw_macro_message(const char *temp, ...) __ATTR__FORMAT(1); // gives control to the user44 42 45 43 // Read a string from the user : … … 162 160 GB_ERROR stop_macro_recording(); 163 161 GB_ERROR execute_macro(const char *file); 164 void stop_execute_macro(); // Starts macro window main loop, delayed return165 GB_ERROR enable_execute_macro(FILE *mfile, const char *mname); // leave macro window main loop, returns stop_execute_macro166 162 167 163 void define_remote_command(struct AW_cb_struct *cbs); -
branches/dev/WINDOW/aw_window_Xm.hxx
r7452 r7479 262 262 char *application_name_for_macros; 263 263 char *stop_action_name; 264 FILE *executing_macro_file;265 264 GB_HASH *action_hash; 266 265
