Date Dev Ver Change details
---------- --- ------ --------------
+2009-10-28 DP 1.12.0 Extend the branding code to allow the vendor-specific
+ help options to be hidden.
2009-10-21 DP 1.10.1 Fix a potential crash bug in the object browser.
2009-10-13 DP 1.10.1 Reverse engineer empty (not NULL) ACLs correctly.
2009-10-08 DP 1.12.0 Add 'SELECT Script' for functions and 'EXEC Script' for
; CSS stylesheet used to format reports.\r
\r
;ReportKeyColour=#009ACE\r
+\r
+; EnterpriseDB and Greenplum both have prominent help options\r
+; on the Help menu. These options, if set to 1 will hide them\r
+\r
+; HideEnterprisedbHelp=0\r
+; HideGreenplumHelp=0\r
+\r
helpMenu->AppendSeparator();
new pgsqlHelpFactory(menuFactories, helpMenu, toolBar, true);
- new edbHelpFactory(menuFactories, helpMenu, toolBar, true);
- new greenplumHelpFactory(menuFactories, helpMenu, toolBar, true);
+ if (!appearanceFactory->GetHideEnterprisedbHelp())
+ new edbHelpFactory(menuFactories, helpMenu, toolBar, true);
+ if (!appearanceFactory->GetHideGreenplumHelp())
+ new greenplumHelpFactory(menuFactories, helpMenu, toolBar, true);
new slonyHelpFactory(menuFactories, helpMenu, toolBar, true);
// Don't include this seperator on Mac, because the only option
wxString GetLongAppName() { return long_appname; };
wxString GetWebsiteUrl() { return website_url; };
wxColour GetReportKeyColour() { return report_key_colour; };
+ bool GetHideEnterprisedbHelp() { return hide_enterprisedb_help; };
+ bool GetHideGreenplumHelp() { return hide_greenplum_help; };
bool IsBranded() { return is_branded; };
private:
wxImage large_icon, small_icon, splash_image;
long splash_font_size, splash_pos_x, splash_pos_y, splash_pos_offset;
wxColor splash_text_colour, report_key_colour;
- bool is_branded;
+ bool hide_enterprisedb_help, hide_greenplum_help, is_branded;
};
extern pgAppearanceFactory *appearanceFactory;
short_appname = wxT("pgadmin3");
website_url = wxT("http://www.pgadmin.org/");
+ hide_enterprisedb_help = false;
+ hide_greenplum_help = false;
+
// Attempt to overload branding information
wxFileName brIni(brandingPath + wxT("/branding.ini"));
if (brIni.FileExists())
report_key_colour = wxColor(token.AfterFirst('=').Trim());
is_branded = true;
}
+ else if (token.Lower().StartsWith(wxT("hideenterprisedbhelp=")))
+ {
+ if (token.AfterFirst('=').Trim() == wxT("1"))
+ {
+ hide_enterprisedb_help = true;
+ is_branded = true;
+ }
+ }
+ else if (token.Lower().StartsWith(wxT("hidegreenplumhelp=")))
+ {
+ if (token.AfterFirst('=').Trim() == wxT("1"))
+ {
+ hide_greenplum_help = true;
+ is_branded = true;
+ }
+ }
}
}