~ubuntu-branches/ubuntu/utopic/pgadmin3/utopic

« back to all changes in this revision

Viewing changes to src/include/dlgClasses.h

  • Committer: Bazaar Package Importer
  • Author(s): Raphael Enrici, src/frm/frmBackup.cpp, debian/control
  • Date: 2006-10-06 21:06:48 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 edgy)
  • Revision ID: james.westby@ubuntu.com-20061006210648-nscnazrse5jbwswf
* Patched frmBackup.cpp to ensure the schema is specified when backing up
  individual tables. (Closes: #387256)
  [src/frm/frmBackup.cpp]
* Cleaned up and updated description of the package. (Closes: #379188)
  [debian/control]

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//////////////////////////////////////////////////////////////////////////
2
2
//
3
3
// pgAdmin III - PostgreSQL Tools
4
 
// RCS-ID:      $Id: dlgClasses.h,v 1.14 2004/10/22 14:25:16 andreas Exp $
5
 
// Copyright (C) 2002 - 2004, The pgAdmin Development Team
 
4
// RCS-ID:      $Id: dlgClasses.h 4874 2006-01-06 17:33:27Z dpage $
 
5
// Copyright (C) 2002 - 2006, The pgAdmin Development Team
6
6
// This software is released under the Artistic Licence
7
7
//
8
8
// dlgClasses.h - Some dialogue base classes 
14
14
 
15
15
#include <wx/wx.h>
16
16
 
 
17
WX_DECLARE_LIST(wxWindow, windowList);
17
18
 
18
19
#define btnOK                   CTRL_BUTTON("wxID_OK")
19
20
#define btnApply                CTRL_BUTTON("wxID_APPLY")
35
36
protected:
36
37
    void OnCancel(wxCommandEvent& ev);
37
38
    void OnClose(wxCloseEvent& event);
 
39
    void AddStatusBar();
38
40
 
39
41
    void PostCreation();
40
42
    wxString dlgName;
44
46
};
45
47
 
46
48
 
 
49
class menuFactoryList;
 
50
 
47
51
class pgFrame : public wxFrame
48
52
{
49
53
public:
50
 
    pgFrame(wxFrame *parent, const wxString &title, const wxPoint& pos=wxDefaultPosition, const wxSize& size=wxDefaultSize, long flags=wxDEFAULT_FRAME_STYLE) 
51
 
        : wxFrame(parent, -1, title, pos, size, flags) { changed=false; recentFileMenu=0; }
 
54
    pgFrame(wxFrame *parent, const wxString &title, const wxPoint& pos=wxDefaultPosition, const wxSize& size=wxDefaultSize, long flags=wxDEFAULT_FRAME_STYLE) ;
52
55
    ~pgFrame();
 
56
    void RemoveFrame(wxWindow *frame);
53
57
    void RestorePosition(int defaultX=-1, int defaultY=-1, int defaultW=-1, int defaultH=-1, int minW=100, int minH=70);
54
58
    void SavePosition();
 
59
    void OnAction(wxCommandEvent& event);
55
60
 
56
61
protected:
57
62
 
58
63
    void OnKeyDown(wxKeyEvent& event);
59
64
    void OnExit(wxCommandEvent& event);
60
65
    void OnRecent(wxCommandEvent& event);
61
 
    void OnAbout(wxCommandEvent& event);
62
66
    void OnHelp(wxCommandEvent& event);
63
 
    void OnBugreport(wxCommandEvent& event);
64
67
 
65
68
    virtual void OpenLastFile() {}
66
69
    virtual wxString GetHelpPage() const { return wxEmptyString; }
67
70
 
68
71
    void UpdateRecentFiles();
 
72
    void AddFrame(wxWindow *wnd) { frames.Append(wnd); }
69
73
 
 
74
    windowList frames;
 
75
    menuFactoryList *menuFactories;
70
76
    wxString dlgName;
71
77
    wxString lastFilename, lastDir, lastPath;
72
78
    wxString recentKey;
117
123
 
118
124
 
119
125
 
120
 
class wxProcess;
 
126
class sysProcess;
121
127
class wxProcessEvent;
122
128
class wxTimer;
123
129
class wxTimerEvent;
133
139
 
134
140
protected:
135
141
    wxTextCtrl *txtMessages;
136
 
    wxProcess *process;
137
 
    int pid;
 
142
    sysProcess *process;
138
143
    bool done, final;
139
144
    wxArrayString environment;
140
145
 
149
154
    void OnEndProcess(wxProcessEvent& event);
150
155
    void OnPollProcess(wxTimerEvent& event);
151
156
    void checkStreams();
152
 
    void readStream(wxInputStream *input);
153
157
 
154
158
    wxTimer *timer;
155
159
    DECLARE_EVENT_TABLE();