00001 #ifndef REINDEX_H 00002 #define REINDEX_H 00003 00004 class ReIndex; 00005 00006 #include "indexfile.h" 00007 #include "guicast.h" 00008 #include "mainmenu.h" 00009 #include "mwindow.h" 00010 #include "thread.h" 00011 00012 class ReIndex : public BC_MenuItem, public Thread 00013 { 00014 public: 00015 ReIndex(MWindow *mwindow); 00016 ~ReIndex(); 00017 void run(); 00018 handle_event(); 00019 00020 MWindow *mwindow; 00021 }; 00022 00023 class ReIndexOkButton; 00024 class ReIndexCancelButton; 00025 class ReIndexTextBox; 00026 00027 class ReIndexWindow : public BC_Window 00028 { 00029 public: 00030 ReIndexWindow(char *display = ""); 00031 ~ReIndexWindow(); 00032 create_objects(); 00033 00034 MWindow *mwindow; 00035 long sample_rate; 00036 ReIndexOkButton *ok; 00037 ReIndexCancelButton *cancel; 00038 }; 00039 00040 class ReIndexOkButton : public BC_Button 00041 { 00042 public: 00043 ReIndexOkButton(ReIndexWindow *window); 00044 00045 handle_event(); 00046 keypress_event(); 00047 00048 ReIndexWindow *window; 00049 }; 00050 00051 class ReIndexCancelButton : public BC_Button 00052 { 00053 public: 00054 ReIndexCancelButton(ReIndexWindow *window); 00055 00056 handle_event(); 00057 keypress_event(); 00058 00059 ReIndexWindow *window; 00060 }; 00061 00062 #endif
1.4.4