00001 #ifndef CONFIRMSAVE_H 00002 #define CONFIRMSAVE_H 00003 00004 #include "asset.inc" 00005 #include "guicast.h" 00006 #include "mwindow.inc" 00007 00008 class ConfirmSaveOkButton; 00009 class ConfirmSaveCancelButton; 00010 00011 class ConfirmSave 00012 { 00013 public: 00014 ConfirmSave(); 00015 ~ConfirmSave(); 00016 00017 // Return values: 00018 // 1 cancel 00019 // 0 replace or doesn't exist yet 00020 static int test_file(MWindow *mwindow, char *path); 00021 static int test_files(MWindow *mwindow, ArrayList<char*> *paths); 00022 00023 }; 00024 00025 class ConfirmSaveWindow : public BC_Window 00026 { 00027 public: 00028 ConfirmSaveWindow(MWindow *mwindow, ArrayList<BC_ListBoxItem*> *list); 00029 ~ConfirmSaveWindow(); 00030 00031 int create_objects(); 00032 int resize_event(int w, int h); 00033 00034 ArrayList<BC_ListBoxItem*> *list; 00035 BC_Title *title; 00036 BC_ListBox *listbox; 00037 }; 00038 00039 #endif
1.4.4