/* * An EntityStrEd is a deriviation of StringEditor for displaying the name of * the currently selected entity. The only diff from a std StringEditor is * that hitting return causes the browser state to be updated. See * rslbrowser.h:UpdateCurEntity for further details. * * A FilenameStrEditor is a derivatin of StringEditor for displaying the file * name in which the current entity resides. In the current implementation, * all editing is disabled in the FilenameStrEditor. An alt to this might make * return set the current file to the contained name, such that the current * browser text window is updated if necessary. We'll think about this some. */ #ifndef rstredIncluded #define rstredIncluded #include #include "std-macros++.h" #include "browser.h" class RSLBrowser; class EntityStrEd : public StringEditor { public: EntityStrEd(RSLBrowser* browser); bool HandleChar(char c); private: RSLBrowser* browser; /* The Big Cheese above */ }; class FilenameStrEd : public StringEditor { public: FilenameStrEd(RSLBrowser* browser); bool HandleChar(char); private: RSLBrowser* browser; /* The Big Cheese above */ }; #endif