mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=11714
This commit is contained in:
parent
931efa9e6c
commit
073340a33a
|
@ -13621,3 +13621,11 @@ Rom 21 Dec 2006
|
|||
lib/
|
||||
diagnostics_win.C
|
||||
|
||||
Rom 21 Dec 2006
|
||||
- MGR: Add context help to the BSG.
|
||||
|
||||
clientgui/
|
||||
sg_DlgMessages.cpp, .h
|
||||
sg_DlgPreferences.cpp
|
||||
sg_ProjectsComponent.cpp, .h
|
||||
stdwx.h
|
||||
|
|
|
@ -215,6 +215,12 @@ void CPanelMessages::CreateControls()
|
|||
itemBitmapButton44->SetBitmapSelected(*pSkinSimple->GetCloseButton()->GetBitmapClicked());
|
||||
}
|
||||
itemBoxSizer4->Add(itemBitmapButton44, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
|
||||
|
||||
#ifndef __WXMSW__
|
||||
wxContextHelpButton* itemButton45 = new wxContextHelpButton(this);
|
||||
itemBoxSizer4->Add(itemButton45, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -664,19 +670,19 @@ bool CDlgMessages::Create( wxWindow* parent, wxWindowID id, const wxString& capt
|
|||
if (strCaption.IsEmpty()) {
|
||||
strCaption = _("BOINC Manager - Messages");
|
||||
}
|
||||
wxDialog::Create( parent, id, strCaption, pos, size, style );
|
||||
|
||||
Freeze();
|
||||
|
||||
|
||||
CreateControls();
|
||||
|
||||
#ifdef __WXDEBUG__
|
||||
SetBackgroundColour(wxColour(255, 0, 255));
|
||||
#endif
|
||||
SetBackgroundStyle(wxBG_STYLE_CUSTOM);
|
||||
SetForegroundColour(*wxBLACK);
|
||||
SetExtraStyle(GetExtraStyle()|wxWS_EX_BLOCK_EVENTS);
|
||||
SetExtraStyle(GetExtraStyle()|wxDIALOG_EX_CONTEXTHELP|wxWS_EX_BLOCK_EVENTS);
|
||||
|
||||
wxDialog::Create( parent, id, strCaption, pos, size, style );
|
||||
|
||||
Freeze();
|
||||
|
||||
CreateControls();
|
||||
|
||||
GetSizer()->Fit(this);
|
||||
GetSizer()->SetSizeHints(this);
|
||||
|
|
|
@ -47,7 +47,7 @@ class CSGUIListCtrl;
|
|||
|
||||
////@begin control identifiers
|
||||
#define ID_DLGMESSAGES 10000
|
||||
#define SYMBOL_CDLGMESSAGES_STYLE wxRESIZE_BORDER|wxCLOSE_BOX|wxCAPTION|wxCLIP_CHILDREN
|
||||
#define SYMBOL_CDLGMESSAGES_STYLE wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER
|
||||
#define SYMBOL_CDLGMESSAGES_TITLE wxT("")
|
||||
#define SYMBOL_CDLGMESSAGES_IDNAME ID_DLGMESSAGES
|
||||
#define SYMBOL_CDLGMESSAGES_SIZE wxDefaultSize
|
||||
|
|
|
@ -464,6 +464,10 @@ void CPanelPreferences::CreateControls()
|
|||
}
|
||||
itemBoxSizer44->Add(itemBitmapButton45, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
|
||||
|
||||
#ifndef __WXMSW__
|
||||
wxContextHelpButton* itemButton46 = new wxContextHelpButton(this);
|
||||
itemBoxSizer44->Add(itemButton46, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
|
||||
#endif
|
||||
|
||||
// Set validators
|
||||
m_SkinSelectorCtrl->SetValidator( wxGenericValidator(& m_strSkinSelector) );
|
||||
|
@ -946,15 +950,15 @@ bool CDlgPreferences::Create( wxWindow* parent, wxWindowID id, const wxString& c
|
|||
if (strCaption.IsEmpty()) {
|
||||
strCaption = _("BOINC Manager - Preferences");
|
||||
}
|
||||
wxDialog::Create( parent, id, strCaption, pos, size, style );
|
||||
|
||||
|
||||
#ifdef __WXDEBUG__
|
||||
SetBackgroundColour(wxColour(255, 0, 255));
|
||||
#endif
|
||||
SetBackgroundStyle(wxBG_STYLE_CUSTOM);
|
||||
SetForegroundColour(*wxBLACK);
|
||||
SetExtraStyle(GetExtraStyle()|wxWS_EX_BLOCK_EVENTS);
|
||||
SetExtraStyle(GetExtraStyle()|wxDIALOG_EX_CONTEXTHELP|wxWS_EX_BLOCK_EVENTS);
|
||||
|
||||
wxDialog::Create( parent, id, strCaption, pos, size, style );
|
||||
|
||||
|
||||
Freeze();
|
||||
|
|
|
@ -99,7 +99,7 @@ void CProjectsComponent::CreateComponent()
|
|||
this,
|
||||
-1,
|
||||
*pSkinSimple->GetAttachProjectButton()->GetBitmap(),
|
||||
wxPoint(235,7),
|
||||
wxPoint(214,7),
|
||||
wxSize(81,18),
|
||||
wxBU_AUTODRAW
|
||||
);
|
||||
|
@ -109,6 +109,16 @@ void CProjectsComponent::CreateComponent()
|
|||
);
|
||||
}
|
||||
btnAddProj->SetToolTip(ttAddProject);
|
||||
|
||||
/// Help
|
||||
btnHelp=new wxContextHelpButton(
|
||||
this,
|
||||
wxID_CONTEXT_HELP,
|
||||
wxPoint(300,7),
|
||||
wxDefaultSize,
|
||||
wxBU_AUTODRAW
|
||||
);
|
||||
|
||||
|
||||
/// Line
|
||||
lnMyProjTop = new CTransparentStaticLine(this, wxID_ANY, wxPoint(29,29),wxSize(292,1));
|
||||
|
|
|
@ -53,6 +53,7 @@ public:
|
|||
wxBitmapButton *btnArwLeft;
|
||||
wxBitmapButton *btnArwRight;
|
||||
wxBitmapButton *btnAddProj;
|
||||
wxContextHelpButton *btnHelp;
|
||||
wxBitmapButton *btnMessages;
|
||||
wxBitmapButton *btnAlertMessages;
|
||||
wxBitmapButton *btnPause;
|
||||
|
|
|
@ -103,6 +103,7 @@
|
|||
#include <wx/dir.h>
|
||||
#include <wx/filename.h>
|
||||
#include <wx/sysopt.h>
|
||||
#include <wx/cshelp.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
|
|
Loading…
Reference in New Issue