2006-07-20 19:33:08 +00:00
|
|
|
// Berkeley Open Infrastructure for Network Computing
|
|
|
|
// http://boinc.berkeley.edu
|
|
|
|
// Copyright (C) 2005 University of California
|
|
|
|
//
|
|
|
|
// This is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
|
|
// License as published by the Free Software Foundation;
|
|
|
|
// either version 2.1 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This software is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
// See the GNU Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// To view the GNU Lesser General Public License visit
|
|
|
|
// http://www.gnu.org/copyleft/lesser.html
|
|
|
|
// or write to the Free Software Foundation, Inc.,
|
|
|
|
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
|
|
|
|
2006-07-20 17:57:23 +00:00
|
|
|
#ifndef _DLG_PREFERENCES_H_
|
|
|
|
#define _DLG_PREFERENCES_H_
|
2006-07-05 21:36:56 +00:00
|
|
|
|
2006-07-20 19:33:08 +00:00
|
|
|
#if defined(__GNUG__) && !defined(__APPLE__)
|
|
|
|
#pragma interface "sg_DlgPreferences.cpp"
|
|
|
|
#endif
|
|
|
|
|
2006-07-24 22:10:28 +00:00
|
|
|
#include <wx/dir.h>
|
|
|
|
|
2006-07-20 19:33:08 +00:00
|
|
|
class SkinClass;
|
2006-07-05 21:36:56 +00:00
|
|
|
|
2006-07-24 22:10:28 +00:00
|
|
|
class DirTraverserSkins : public wxDirTraverser
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DirTraverserSkins(wxArrayString& skins) : m_skins(skins) { }
|
|
|
|
|
|
|
|
virtual wxDirTraverseResult OnFile(const wxString& filename);
|
|
|
|
virtual wxDirTraverseResult OnDir(const wxString& WXUNUSED(dirname));
|
|
|
|
|
|
|
|
private:
|
|
|
|
wxArrayString& m_skins;
|
|
|
|
};
|
|
|
|
|
2006-07-05 21:36:56 +00:00
|
|
|
class CDlgPreferences:public wxDialog
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CDlgPreferences(wxWindow* parent, wxString dirPref,wxWindowID id = -1, const wxString& title = wxT(""), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE, const wxString& name = wxT("dialogBox"));
|
|
|
|
//Skin Class
|
|
|
|
SkinClass *appSkin;
|
|
|
|
// Pointer control
|
|
|
|
wxStaticText *lblPref;
|
|
|
|
wxStaticText *lblModifySett;
|
|
|
|
wxStaticText *lblDoWorkBtwn;
|
|
|
|
wxStaticText *lblAnd1;
|
|
|
|
wxStaticText *lblConnToIntBtwn;
|
|
|
|
wxComboBox *cmbDWBtwnBgn;
|
|
|
|
wxComboBox *cmbDWBtwnEnd;
|
|
|
|
wxComboBox *cmbCTIBtwnBgn;
|
|
|
|
wxComboBox *cmbCTIBtwnEnd;
|
|
|
|
wxStaticText *lblAnd2;
|
|
|
|
wxStaticText *lblUseNoMoreGB;
|
|
|
|
wxComboBox *cmbUseNoMoreGB;
|
|
|
|
wxStaticText *lblGB;
|
|
|
|
wxStaticText *lblDWWCInUse;
|
|
|
|
wxStaticText *lblDWACIdleFor;
|
|
|
|
wxComboBox *cmbDWACIdleFor;
|
|
|
|
wxStaticText *lblMinutes;
|
|
|
|
wxComboBox *cmbDWWCInUse;
|
|
|
|
wxBitmapButton *btnSave;
|
|
|
|
wxBitmapButton *btnCancel;
|
|
|
|
wxStaticText *lblSkinXML;
|
|
|
|
wxComboBox *cmbSkinPicker;
|
|
|
|
//wxTextCtrl *tx30c;
|
|
|
|
wxBitmapButton *btnOpen;
|
|
|
|
wxBitmap *dlg10484fImg0;
|
|
|
|
wxBitmap *bti26cImg1;
|
|
|
|
wxBitmap *bti27cImg1;
|
|
|
|
wxBitmap *btmpBtnAttProjL;
|
|
|
|
wxBitmap fileImgBuf[4];
|
|
|
|
virtual ~CDlgPreferences();
|
|
|
|
void initBefore();
|
2006-07-24 22:10:28 +00:00
|
|
|
void CreateDialog();
|
2006-07-05 21:36:56 +00:00
|
|
|
void LoadSkinImages();
|
|
|
|
wxString GetSkinName() const { return m_SkinName; }
|
|
|
|
void SetSkinName(const wxString& skinName) { m_SkinName = skinName; }
|
|
|
|
|
|
|
|
void initAfter();
|
|
|
|
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
|
|
|
|
protected:
|
|
|
|
wxString m_SkinName;
|
2006-07-24 22:10:28 +00:00
|
|
|
wxArrayString m_skinNames;
|
2006-07-05 21:36:56 +00:00
|
|
|
wxString m_SkinDirPrefix;
|
|
|
|
void OnEraseBackground(wxEraseEvent& event);
|
|
|
|
void OnBtnClick(wxCommandEvent& event);
|
|
|
|
void OnCmbSelected(wxCommandEvent& event);
|
|
|
|
void VwXEvOnEraseBackground(wxEraseEvent& event);
|
|
|
|
void VwXDrawBackImg(wxEraseEvent& event,wxWindow *win,wxBitmap & bitMap,int opz);
|
|
|
|
|
|
|
|
//[win]end your code
|
|
|
|
};
|
|
|
|
|
2006-07-20 17:57:23 +00:00
|
|
|
#endif // end CDlgPreferences
|