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 // ddColumnTextTool.h - Modification of simple text tool for editing composite figure columns 9 // 10 ////////////////////////////////////////////////////////////////////////// 11 12 #ifndef DDCOLUMNTEXTTOOL_H 13 #define DDCOLUMNTEXTTOOL_H 14 15 #include "hotdraw/tools/hdSimpleTextTool.h" 16 #include "dd/dditems/figures/ddTextTableItemFigure.h" 17 18 19 class ddColumnTextTool : public hdSimpleTextTool 20 { 21 22 public: 23 ddColumnTextTool(hdDrawingView *view, hdIFigure *fig, hdITool *dt, bool fastEdit = true, wxString dialogCaption = wxEmptyString, wxString dialogMessage = wxEmptyString); 24 ~ddColumnTextTool(); 25 virtual void mouseDown(hdMouseEvent &event); //Mouse Right Click 26 virtual bool callDialog(hdDrawingView *view); 27 // some events functions are needed but because a bug it were move to main View class as a hack. 28 protected: 29 private: 30 ddTextTableItemFigure *colTextFigure; 31 //Because a bug in the way wxwidgets connect events I can't declare it here, wxTextCtrl, instead I do it on the view. 32 }; 33 #endif 34