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

« back to all changes in this revision

Viewing changes to pgadmin/frm/frmMainConfig.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: frmMainConfig.cpp 7250 2008-05-01 20:21:42Z dpage $
5
 
// Copyright (C) 2002 - 2008, The pgAdmin Development Team
6
 
// This software is released under the Artistic Licence
 
4
// RCS-ID:      $Id: frmMainConfig.cpp 7901 2009-06-09 11:19:10Z dpage $
 
5
// Copyright (C) 2002 - 2009, The pgAdmin Development Team
 
6
// This software is released under the BSD Licence
7
7
//
8
8
// frmMainConfig.cpp - Backend configuration tool
9
9
//
18
18
 
19
19
#include <wx/imaglist.h>
20
20
 
 
21
#include "ctl/ctlMenuToolbar.h"
21
22
#include "frm/frmMainConfig.h"
22
23
#include "frm/frmMain.h"
23
24
#include "dlg/dlgMainConfig.h"
124
125
    }
125
126
    while (item);
126
127
 
127
 
        editMenu->Enable(MNU_DELETE, false);
128
 
        toolBar->EnableTool(MNU_DELETE,false);
 
128
    editMenu->Enable(MNU_DELETE, false);
 
129
    toolBar->EnableTool(MNU_DELETE,false);
129
130
}
130
131
 
131
132
 
219
220
 
220
221
void frmMainConfig::OnContents(wxCommandEvent& event)
221
222
{
222
 
    DisplayHelp(wxT("config"), HELP_PGADMIN);
 
223
    DisplayHelp(wxT("index"), HELP_PGADMIN);
223
224
}
224
225
 
225
226
 
227
228
{
228
229
    wxString page;
229
230
    if (page.IsEmpty())
230
 
        page=wxT("runtime-config");
 
231
        page=wxT("runtime-config");
231
232
 
232
233
    return page;
233
234
}
297
298
    {
298
299
        pgSettingItem *item = options[cfgList->GetText(i)];
299
300
 
300
 
        if (item && item->newLine && !item->orgLine)
 
301
        if (item && item->newLine && item->newLine->item && !item->orgLine)
301
302
            str.Append(item->newLine->GetNewText() + wxT("\n"));
302
303
    }
303
304
 
480
481
    FillList(wxT("explain_pretty_print"));      // Client Connection Defaults / Other Defaults
481
482
    FillList(wxT("enable_hashjoin"));           // Query Tuning / Planner Method Configuration
482
483
    FillList(wxT("cpu_operator_cost"));         // Query Tuning / Planner Cost Constants
483
 
    FillList(wxT("geqo"));                      // Query Tuning / Genetic Query Optimizer
 
484
    if (!conn || !conn->GetIsGreenplum())       // Greenplum doesn't have the Genetic Query Optimizer
 
485
        FillList(wxT("geqo"));                  // Query Tuning / Genetic Query Optimizer
484
486
    FillList(wxT("default_statistics_target")); // Query Tuning / Other Planner Options
485
487
    FillList(wxT("deadlock_timeout"));          // Lock Management
486
488
    FillList(wxT("shared_buffers"));            // Resource Usage / Memory
496
498
    FillList(wxT("checkpoint_segments"));       // Write-Ahead Log / Checkpoints
497
499
    FillList(wxT("add_missing_from"));          // Version and Platform Compatibility / Previous PostgreSQL Version
498
500
    FillList(wxT("transform_null_equals"));     // Version and Platform Compatibility / Other Platforms and Clients
499
 
    FillList(wxT("trace_notify"));              // Developer Options
 
501
    if (!conn || !conn->GetIsGreenplum())       // Greenplum doesn't have trace_notify visible
 
502
        FillList(wxT("trace_notify"));          // Developer Options
500
503
    FillList(wxT("hba_file"));                  // Ungrouped
501
504
 
502
505
 
651
654
    }
652
655
}
653
656
 
654
 
mainConfigFactory::mainConfigFactory(menuFactoryList *list, wxMenu *mnu, wxToolBar *toolbar) : actionFactory(list)
 
657
mainConfigFactory::mainConfigFactory(menuFactoryList *list, wxMenu *mnu, ctlMenuToolbar *toolbar) : actionFactory(list)
655
658
{
656
659
    mnu->Append(id, wxT("postgresql.conf"), _("Edit general server configuration file."));
657
660
}
685
688
}
686
689
 
687
690
 
688
 
mainConfigFileFactory::mainConfigFileFactory(menuFactoryList *list, wxMenu *mnu, wxToolBar *toolbar) : actionFactory(list)
 
691
mainConfigFileFactory::mainConfigFileFactory(menuFactoryList *list, wxMenu *mnu, ctlMenuToolbar *toolbar) : actionFactory(list)
689
692
{
690
693
    mnu->Append(id, _("Open postgresql.conf..."), _("Open configuration editor with postgresql.conf."));
691
694
}