home *** CD-ROM | disk | FTP | other *** search
- //
- // C++ Toolbox Stationery
- // by Josef W. Wankerl
- // 04/11/00
- //
-
- #pragma once
- #ifndef SelectFile_H
- #define SelectFile_H
-
- enum ThreeState { yes, no, maby };
-
- class SelectFile
- {
- public:
- char* TheString;
- SelectFile();
- void Run();
-
- virtual bool PaternMatch(char* FileName);
- virtual bool PaternMatch(Str255 FileName);
-
- private:
- TEHandle editrec;
- void Initialize();
- void MyEventLoop();
-
- bool PaternMatchAux(char* FileName, char* Pat);
-
-
- // event handlers
- virtual bool DoUpdate(EventRecord* event);
- virtual bool DoKeyDown(EventRecord* event);
- virtual bool DoMouseDown(EventRecord* event);
- virtual bool DoIdle(EventRecord* event);
- };
-
- #endif