~ubuntu-branches/debian/sid/pgadmin3/sid

« back to all changes in this revision

Viewing changes to pgadmin/agent/dlgJob.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Gerfried Fuchs
  • Date: 2009-07-30 12:27:16 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090730122716-fddbh42on721bbs2
Tags: 1.10.0-1
* New upstream release.
* Adjusted watch file to match release candidates.
* Updated to Standards-Version 3.8.2:
  - Moved to Section: database.
  - Add DEB_BUILD_OPTIONS support for parallel building.
  - Move from findstring to filter suggestion for DEB_BUILD_OPTIONS parsing.
* pgagent got split into its own separate source package by upstream.
* Exclude Docs.vcproj from installation.
* Move doc-base.enus from pgadmin3 to pgadmin3-data package, the files are
  in there too.

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: dlgJob.cpp 6930 2008-01-02 00:10:01Z dpage $
5
 
// Copyright (C) 2002 - 2008, The pgAdmin Development Team
6
 
// This software is released under the Artistic Licence
 
4
// RCS-ID:      $Id: dlgJob.cpp 7915 2009-06-11 09:40:07Z dpage $
 
5
// Copyright (C) 2002 - 2009, The pgAdmin Development Team
 
6
// This software is released under the BSD Licence
7
7
//
8
8
// dlgJob.cpp - PostgreSQL Job Property
9
9
//
58
58
    EVT_BUTTON(XRCID("btnChangeSchedule"),          dlgJob::OnChangeSchedule)
59
59
    EVT_BUTTON(XRCID("btnAddSchedule"),             dlgJob::OnAddSchedule)
60
60
    EVT_BUTTON(XRCID("btnRemoveSchedule"),          dlgJob::OnRemoveSchedule)
 
61
 
 
62
#ifdef __WXMAC__
 
63
    EVT_SIZE(                                       dlgJob::OnChangeSize)
 
64
#endif
61
65
END_EVENT_TABLE();
62
66
 
63
67
 
98
102
}
99
103
 
100
104
 
 
105
#ifdef __WXMAC__
 
106
void dlgJob::OnChangeSize(wxSizeEvent &ev)
 
107
{
 
108
        lstSteps->SetSize(wxDefaultCoord, wxDefaultCoord,
 
109
            ev.GetSize().GetWidth(), ev.GetSize().GetHeight() - 350);
 
110
        lstSchedules->SetSize(wxDefaultCoord, wxDefaultCoord,
 
111
            ev.GetSize().GetWidth(), ev.GetSize().GetHeight() - 350);
 
112
    if (GetAutoLayout())
 
113
    {
 
114
        Layout();
 
115
    }
 
116
}
 
117
#endif
 
118
 
 
119
 
101
120
int dlgJob::Go(bool modal)
102
121
{
 
122
    int returncode;
 
123
 
103
124
    pgSet *jcl=connection->ExecuteSet(wxT("SELECT jclname FROM pgagent.pga_jobclass"));
104
125
    if (jcl)
105
126
    {
195
216
                btnChangeSchedule->Hide();
196
217
    }
197
218
 
198
 
    return dlgProperty::Go(modal);
 
219
    returncode = dlgProperty::Go(modal);
 
220
        
 
221
        SetSqlReadOnly(true);
 
222
 
 
223
    // This fixes a UI glitch on MacOS X
 
224
    // Because of the new layout code, the Columns pane doesn't size itself properly
 
225
    SetSize(GetSize().GetWidth()+1, GetSize().GetHeight());
 
226
    SetSize(GetSize().GetWidth()-1, GetSize().GetHeight());
 
227
 
 
228
    return returncode;
199
229
}
200
230
 
201
231