home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-03-29 | 1.6 KB | 58 lines | [TEXT/CWIE] |
- // LStrTableView
- // simple subclass of LTableView, that just draws strings
- // ©1995 A.D. Software, all rights reserved
- // freely licensed for any use
- // contact dent@highway1.com.au or http://www.highway1.com.au/adsoftware/
-
- /*
- INSTRUCTIONS
-
- 1)
- in the Constructor
- Create an LView object with a class id of 'stbv'.
-
-
- 2)
- Register the class type somewhere, possibly in YourApp::RegisterClasses()
- URegistrar::RegisterClass(LStrTableView::class_ID, (ClassCreatorFunc)LStrTableView::CreateStrTableViewStream);
-
- in FinishCreateSelf()
- 3)
- create the control with a cast like:
- mFindField = (LStrTableView *)FindPaneByID('Edit');
-
- instead of the normal
- mFindField = (LTableView *)FindPaneByID('Edit');
-
- */
-
- #include <LTableView.h>
- #include <LBroadcaster.h>
-
- class LStrTableView : public LTableView, public LBroadcaster {
- public:
- enum { class_ID = 'stbv' };
- static LStrTableView* CreateStrTableViewStream(
- LStream *inStream);
-
- // • Constructors & Destructor
-
- LStrTableView() {};
- LStrTableView(
- const SPaneInfo &inPaneInfo,
- const SViewInfo &inViewInfo,
- LTableGeometry *inTableGeometry,
- LTableSelector *inTableSelector,
- LTableStorage *inTableStorage);
- LStrTableView(LStream *inStream);
- virtual ~LStrTableView() {};
-
- MessageT GetDoubleClickMessage() const;
- void SetDoubleClickMessage(MessageT inMessage);
-
- virtual void ClickCell(const STableCell&, const SMouseDownEvent&);
- virtual void DrawCell( const STableCell&, const Rect&);
-
- protected:
- MessageT mDoubleClickMessage;
- };