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 // dlgRepSet.h - Slony-I Set property 9 // 10 ////////////////////////////////////////////////////////////////////////// 11 12 13 #ifndef __DLG_REPSETPROP 14 #define __DLG_REPSETPROP 15 16 #include "slony/dlgRepProperty.h" 17 18 class slCluster; 19 class slSet; 20 21 class dlgRepSet : public dlgRepProperty 22 { 23 public: 24 dlgRepSet(pgaFactory *factory, frmMain *frame, slSet *set, slCluster *c); 25 int Go(bool modal); GetHelpPage()26 wxString GetHelpPage() const 27 { 28 return wxT("slony-set"); 29 } 30 31 void CheckChange(); 32 wxString GetSql(); 33 pgObject *CreateObject(pgCollection *collection); GetObject()34 pgObject *GetObject() 35 { 36 return (pgObject *)set; 37 } 38 39 private: 40 slSet *set; 41 42 DECLARE_EVENT_TABLE() 43 }; 44 45 46 class dlgRepSetMerge : public dlgRepProperty 47 { 48 public: 49 dlgRepSetMerge(pgaFactory *factory, frmMain *frame, slSet *set); 50 int Go(bool modal); GetHelpPage()51 wxString GetHelpPage() const 52 { 53 return wxT("slony-functions"); 54 } 55 56 void CheckChange(); 57 wxString GetSql(); GetObject()58 pgObject *GetObject() 59 { 60 return (pgObject *)set; 61 } CreateObject(pgCollection * collection)62 pgObject *CreateObject(pgCollection *collection) 63 { 64 return 0; 65 } 66 67 private: 68 slSet *set; 69 70 DECLARE_EVENT_TABLE() 71 }; 72 73 class dlgRepSetMove : public dlgRepProperty 74 { 75 public: 76 dlgRepSetMove(pgaFactory *f, frmMain *frame, slSet *set); 77 int Go(bool modal); GetHelpPage()78 wxString GetHelpPage() const 79 { 80 return wxT("slony-functions"); 81 } 82 83 void CheckChange(); 84 wxString GetSql(); GetObject()85 pgObject *GetObject() 86 { 87 return (pgObject *)set; 88 } CreateObject(pgCollection * collection)89 pgObject *CreateObject(pgCollection *collection) 90 { 91 return 0; 92 } 93 94 private: 95 slSet *set; 96 97 DECLARE_EVENT_TABLE() 98 }; 99 100 #endif 101