file_open.hh 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /********************************************************************** <BR>
  2. This file is part of Crack dot Com's free source code release of
  3. Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
  4. information about compiling & licensing issues visit this URL</a>
  5. <PRE> If that doesn't help, contact Jonathan Clark at
  6. golgotha_source@usa.net (Subject should have "GOLG" in it)
  7. ***********************************************************************/
  8. #ifndef __FILE_OPEN_HH
  9. #define __FILE_OPEN_HH
  10. class i4_parent_window_class;
  11. class i4_event_handler_class;
  12. class i4_graphical_style_class;
  13. #include "string/string.hh"
  14. #include "device/event.hh"
  15. class i4_file_open_message_class : public i4_user_message_event_class
  16. {
  17. public:
  18. i4_str *filename;
  19. i4_file_open_message_class(w32 id, i4_str *filename)
  20. : i4_user_message_event_class(id), filename(filename) {}
  21. virtual i4_event *copy() { return new i4_file_open_message_class(sub_type,
  22. new i4_str(*filename)); }
  23. };
  24. void i4_create_file_open_dialog(i4_graphical_style_class *style,
  25. const i4_const_str &title_name,
  26. const i4_const_str &start_dir,
  27. const i4_const_str &file_mask,
  28. const i4_const_str &mask_name,
  29. i4_event_handler_class *tell_who,
  30. w32 ok_id, w32 cancel_id);
  31. #endif