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

« back to all changes in this revision

Viewing changes to pgadmin/debugger/ctlCodeWindow.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: ctlCodeWindow.cpp 6216 2007-04-19 11:28:08Z dpage $
5
 
// Copyright (C) 2002 - 2008, The pgAdmin Development Team
6
 
// This software is released under the Artistic Licence
 
4
// RCS-ID:      $Id: ctlCodeWindow.cpp 7838 2009-05-05 10:05:57Z dpage $
 
5
// Copyright (C) 2002 - 2009, The pgAdmin Development Team
 
6
// This software is released under the BSD Licence
7
7
//
8
8
// ctlCodeWindow.cpp - debugger 
9
9
//
21
21
#include "debugger/ctlCodeWindow.h"
22
22
#include "debugger/ctlVarWindow.h"
23
23
#include "debugger/frmDebugger.h"
 
24
#include "debugger/dlgDirectDbg.h"
24
25
#include "debugger/dbgConst.h"
25
26
#include "debugger/dbgPgConn.h"
26
27
#include "debugger/dbgResultset.h"
27
28
#include "debugger/dbgBreakPoint.h"
 
29
#include "ctl/ctlMenuToolbar.h"
28
30
 
29
31
////////////////////////////////////////////////////////////////////////////////
30
32
// NOTES:
256
258
    closeConnection();
257
259
    m_timer.Stop();
258
260
 
 
261
#ifdef __WXGTK__
 
262
    if (m_parent->m_standaloneDirectDbg && m_targetAborted)
 
263
        m_parent->m_standaloneDirectDbg->Close();
 
264
#endif
 
265
 
259
266
    event.Skip();
260
267
}
261
268
 
369
376
    if( enable == false )
370
377
        activateDebug = false;
371
378
 
372
 
    wxToolBar *t = m_parent->m_toolBar;
 
379
    ctlMenuToolbar *t = m_parent->m_toolBar;
373
380
    wxMenu *m = m_parent->m_debugMenu;
374
381
 
375
382
    // We may find that our toolbar has disappeared during application shutdown -
851
858
        return( false );
852
859
}
853
860
 
854
 
void ctlCodeWindow::popupError( dbgResultset & resultSet )
 
861
void ctlCodeWindow::popupError(dbgResultset &resultSet)
855
862
{
856
863
    wxLogError(wxT("%s"), resultSet.getErrorMessage().c_str());
857
864
    m_timer.Stop();