1 ////////////////////////////////////////////////////////////////////////// 2 // 3 // pgAdmin III - PostgreSQL Tools 4 // 5 // Copyright (C) 2002 - 2016, The pgAdmin Development Team 6 // This software is released under the PostgreSQL Licence 7 // 8 // ddSouthTableSizeHandle.h - Allow to change table size by using drag and drop from south side of table rectangle 9 // 10 ////////////////////////////////////////////////////////////////////////// 11 12 #ifndef DDSOUTHTABLESIZEHANDLE_H 13 #define DDSOUTHTABLESIZEHANDLE_H 14 15 #include "hotdraw/handles/hdLocatorHandle.h" 16 17 class ddTableFigure; 18 19 class ddSouthTableSizeHandle : public hdLocatorHandle 20 { 21 public: 22 ddSouthTableSizeHandle(ddTableFigure *owner, hdILocator *locator); 23 ~ddSouthTableSizeHandle(); 24 virtual wxCursor createCursor(); 25 virtual void draw(wxBufferedDC &context, hdDrawingView *view); 26 virtual hdRect &getDisplayBox(int posIdx); 27 virtual void invokeStart(hdMouseEvent &event, hdDrawingView *view); 28 virtual void invokeStep(hdMouseEvent &event, hdDrawingView *view); 29 virtual void invokeEnd(hdMouseEvent &event, hdDrawingView *view); 30 protected: 31 32 private: 33 int anchorY; 34 35 }; 36 #endif 37