home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / dreamscape / utilities / Dreamscape / Utilities / MakeApp / h / makeapp < prev   
Encoding:
Text File  |  1996-09-21  |  1.6 KB  |  61 lines

  1.  
  2. #ifndef makeapp_makeapp_H
  3. #define makeapp_makeapp_H
  4.  
  5. #include "saveas.h"
  6. #include "dbox.h"
  7. #include "windowcmds.h"
  8. #include "writablefield.h"
  9. #include "radiobutton.h"
  10. #include "optionbutton.h"
  11.  
  12. class MakeAppWindow: public BaseWindow, private FileSaver,
  13. private DialogueBoxHandler {
  14.   enum MakefileType { amu_makefile, makatic_makefile } makefile_type;
  15.   enum MakaticScript { medium_script, large_script } makatic_script;
  16.   unsigned debug_makefile: 1;
  17.  
  18.   SaveAs save_as;
  19.   WritableField &full_name_gadget, &cli_name_gadget;
  20.  
  21.   DialogueBox option_dbox;
  22.   ShowWindowCommand show_options;
  23.   RadioButton &generate_amu_makefile, &generate_makatic_makefile,
  24.     &use_medium_script, &use_large_script;
  25.   OptionButton &add_debug_makefile;
  26.  
  27.   void revert();
  28.   void keep();
  29.  
  30.   class MakefileTypeChanged: public Command {
  31.     MakeAppWindow *window;
  32.   public:
  33.     MakefileTypeChanged(MakeAppWindow *w): window(w) {}
  34.     void execute();
  35.   } makefile_type_changed;
  36.   friend MakefileTypeChanged;
  37.  
  38.   class AppDetails {
  39.   public:
  40.     String app_name, full_name, cli_name;
  41.   };
  42.   static void process(istream &in, ostream &out, const AppDetails &details);
  43.   static void process(const char *in, const char *out,
  44.         const AppDetails &details);
  45.   static void process_sprites(const char *in, const char *out,
  46.         const AppDetails &details);
  47.   static void process_res_file(const char *in, const char *out,
  48.         const AppDetails &details);
  49.  
  50. public:
  51.   MakeAppWindow();
  52.  
  53.   void save_to_file(const char *filename) const;
  54.  
  55.   BaseWindow &get_next_window();
  56.   const BaseWindow &get_next_window() const;
  57.   bool has_next_window() const;
  58. };
  59.  
  60. #endif
  61.