Logo Search packages:      
Sourcecode: rapidsvn version File versions  Download package

rapidsvn_generated.cpp

///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Apr 21 2008)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#include <wx/wx.h>

#include "rapidsvn_generated.h"

///////////////////////////////////////////////////////////////////////////

PreferencesDlgBase::PreferencesDlgBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
{
      this->SetSizeHints( wxDefaultSize, wxDefaultSize );
      
      wxBoxSizer* mainSizer;
      mainSizer = new wxBoxSizer( wxVERTICAL );
      
      m_notebookMain = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
      m_panelGeneral = new wxPanel( m_notebookMain, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
      wxBoxSizer* bSizer3;
      bSizer3 = new wxBoxSizer( wxVERTICAL );
      
      m_checkPurgeTempFiles = new wxCheckBox( m_panelGeneral, wxID_ANY, _("Purge temporary files on program exit"), wxDefaultPosition, wxDefaultSize, 0 );
      
      bSizer3->Add( m_checkPurgeTempFiles, 0, wxALL, 5 );
      
      m_checkUseLastCommitMessage = new wxCheckBox( m_panelGeneral, wxID_ANY, _("Commit log message: default to most recent"), wxDefaultPosition, wxDefaultSize, 0 );
      
      bSizer3->Add( m_checkUseLastCommitMessage, 0, wxALL, 5 );
      
      m_checkResetFlatMode = new wxCheckBox( m_panelGeneral, wxID_ANY, _("Reset Flat Mode on every program start"), wxDefaultPosition, wxDefaultSize, 0 );
      
      bSizer3->Add( m_checkResetFlatMode, 0, wxALL, 5 );
      
      m_panelGeneral->SetSizer( bSizer3 );
      m_panelGeneral->Layout();
      bSizer3->Fit( m_panelGeneral );
      m_notebookMain->AddPage( m_panelGeneral, _("General"), true );
      m_panelPrograms = new wxPanel( m_notebookMain, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
      wxBoxSizer* bSizer4;
      bSizer4 = new wxBoxSizer( wxVERTICAL );
      
      m_notebook2 = new wxNotebook( m_panelPrograms, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
      m_panelEditor = new wxPanel( m_notebook2, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
      wxBoxSizer* sizerPanelEditor;
      sizerPanelEditor = new wxBoxSizer( wxVERTICAL );
      
      wxBoxSizer* sizerEditor;
      sizerEditor = new wxBoxSizer( wxHORIZONTAL );
      
      m_textEditor = new wxTextCtrl( m_panelEditor, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
      sizerEditor->Add( m_textEditor, 1, wxALL, 5 );
      
      m_buttonEditor = new wxButton( m_panelEditor, wxID_ANY, _("Browse"), wxDefaultPosition, wxDefaultSize, 0 );
      sizerEditor->Add( m_buttonEditor, 0, wxALL, 5 );
      
      sizerPanelEditor->Add( sizerEditor, 0, wxEXPAND, 5 );
      
      wxStaticText* m_staticEditorArgs;
      m_staticEditorArgs = new wxStaticText( m_panelEditor, wxID_ANY, _("Program arguments (%1=selected file):"), wxDefaultPosition, wxDefaultSize, 0 );
      m_staticEditorArgs->Wrap( -1 );
      sizerPanelEditor->Add( m_staticEditorArgs, 0, wxLEFT|wxRIGHT|wxTOP, 5 );
      
      m_textEditorArgs = new wxTextCtrl( m_panelEditor, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
      sizerPanelEditor->Add( m_textEditorArgs, 0, wxALL|wxEXPAND, 5 );
      
      m_checkEditorAlways = new wxCheckBox( m_panelEditor, wxID_ANY, _("Use always"), wxDefaultPosition, wxDefaultSize, 0 );
      
      sizerPanelEditor->Add( m_checkEditorAlways, 0, wxALL, 5 );
      
      m_panelEditor->SetSizer( sizerPanelEditor );
      m_panelEditor->Layout();
      sizerPanelEditor->Fit( m_panelEditor );
      m_notebook2->AddPage( m_panelEditor, _("Standard Editor"), true );
      m_panelExplorer = new wxPanel( m_notebook2, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
      wxBoxSizer* sizerPanelExplorer;
      sizerPanelExplorer = new wxBoxSizer( wxVERTICAL );
      
      wxBoxSizer* sizerExplorer;
      sizerExplorer = new wxBoxSizer( wxHORIZONTAL );
      
      m_textExplorer = new wxTextCtrl( m_panelExplorer, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
      sizerExplorer->Add( m_textExplorer, 1, wxALL, 5 );
      
      m_buttonExplorer = new wxButton( m_panelExplorer, wxID_ANY, _("Browse"), wxDefaultPosition, wxDefaultSize, 0 );
      sizerExplorer->Add( m_buttonExplorer, 0, wxALL, 5 );
      
      sizerPanelExplorer->Add( sizerExplorer, 0, wxEXPAND, 0 );
      
      wxStaticText* m_staticExplorerArgs;
      m_staticExplorerArgs = new wxStaticText( m_panelExplorer, wxID_ANY, _("Program arguments (%1=selected directory):"), wxDefaultPosition, wxDefaultSize, 0 );
      m_staticExplorerArgs->Wrap( -1 );
      sizerPanelExplorer->Add( m_staticExplorerArgs, 0, wxLEFT|wxRIGHT|wxTOP, 5 );
      
      m_textExplorerArgs = new wxTextCtrl( m_panelExplorer, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
      sizerPanelExplorer->Add( m_textExplorerArgs, 0, wxALL|wxEXPAND, 5 );
      
      m_checkExplorerAlways = new wxCheckBox( m_panelExplorer, wxID_ANY, _("Use always"), wxDefaultPosition, wxDefaultSize, 0 );
      
      sizerPanelExplorer->Add( m_checkExplorerAlways, 0, wxALL, 5 );
      
      m_panelExplorer->SetSizer( sizerPanelExplorer );
      m_panelExplorer->Layout();
      sizerPanelExplorer->Fit( m_panelExplorer );
      m_notebook2->AddPage( m_panelExplorer, _("Standard Explorer"), false );
      m_panelDiffTool = new wxPanel( m_notebook2, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
      wxBoxSizer* sizerPanelDiffTool;
      sizerPanelDiffTool = new wxBoxSizer( wxVERTICAL );
      
      wxBoxSizer* sizerDiffTool;
      sizerDiffTool = new wxBoxSizer( wxHORIZONTAL );
      
      m_textDiffTool = new wxTextCtrl( m_panelDiffTool, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
      sizerDiffTool->Add( m_textDiffTool, 1, wxALL, 5 );
      
      m_buttonDiffTool = new wxButton( m_panelDiffTool, wxID_ANY, _("Browse"), wxDefaultPosition, wxDefaultSize, 0 );
      sizerDiffTool->Add( m_buttonDiffTool, 0, wxALL, 5 );
      
      sizerPanelDiffTool->Add( sizerDiffTool, 0, wxEXPAND, 5 );
      
      wxStaticText* m_staticDiffToolArgs;
      m_staticDiffToolArgs = new wxStaticText( m_panelDiffTool, wxID_ANY, _("Program arguments (%1=file1, %2=file2):"), wxDefaultPosition, wxDefaultSize, 0 );
      m_staticDiffToolArgs->Wrap( -1 );
      sizerPanelDiffTool->Add( m_staticDiffToolArgs, 0, wxLEFT|wxRIGHT|wxTOP, 5 );
      
      m_textDiffToolArgs = new wxTextCtrl( m_panelDiffTool, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
      sizerPanelDiffTool->Add( m_textDiffToolArgs, 0, wxALL|wxEXPAND, 5 );
      
      m_panelDiffTool->SetSizer( sizerPanelDiffTool );
      m_panelDiffTool->Layout();
      sizerPanelDiffTool->Fit( m_panelDiffTool );
      m_notebook2->AddPage( m_panelDiffTool, _("Diff Tool"), false );
      m_panelMergeTool = new wxPanel( m_notebook2, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
      wxBoxSizer* sizerPanelMergeTool;
      sizerPanelMergeTool = new wxBoxSizer( wxVERTICAL );
      
      wxBoxSizer* sizerMergeTool;
      sizerMergeTool = new wxBoxSizer( wxHORIZONTAL );
      
      m_textMergeTool = new wxTextCtrl( m_panelMergeTool, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
      sizerMergeTool->Add( m_textMergeTool, 1, wxALL, 5 );
      
      m_buttonMergeTool = new wxButton( m_panelMergeTool, wxID_ANY, _("Browse"), wxDefaultPosition, wxDefaultSize, 0 );
      sizerMergeTool->Add( m_buttonMergeTool, 0, wxALL, 5 );
      
      sizerPanelMergeTool->Add( sizerMergeTool, 0, wxEXPAND, 5 );
      
      m_staticMergeToolArgs = new wxStaticText( m_panelMergeTool, wxID_ANY, _("Program arguments (%1=base, %2=theirs %3=mine %4=result):"), wxDefaultPosition, wxDefaultSize, 0 );
      m_staticMergeToolArgs->Wrap( -1 );
      sizerPanelMergeTool->Add( m_staticMergeToolArgs, 0, wxLEFT|wxRIGHT|wxTOP, 5 );
      
      m_textMergeToolArgs = new wxTextCtrl( m_panelMergeTool, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
      sizerPanelMergeTool->Add( m_textMergeToolArgs, 0, wxALL|wxEXPAND, 5 );
      
      m_panelMergeTool->SetSizer( sizerPanelMergeTool );
      m_panelMergeTool->Layout();
      sizerPanelMergeTool->Fit( m_panelMergeTool );
      m_notebook2->AddPage( m_panelMergeTool, _("Merge Tool"), false );
      
      bSizer4->Add( m_notebook2, 1, wxEXPAND | wxALL, 5 );
      
      m_panelPrograms->SetSizer( bSizer4 );
      m_panelPrograms->Layout();
      bSizer4->Fit( m_panelPrograms );
      m_notebookMain->AddPage( m_panelPrograms, _("Programs"), false );
      m_panelAuth = new wxPanel( m_notebookMain, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
      wxBoxSizer* sizerAuth;
      sizerAuth = new wxBoxSizer( wxVERTICAL );
      
      m_checkAuthPerBookmark = new wxCheckBox( m_panelAuth, wxID_ANY, _("Different login for each bookmark in the bookmarks list"), wxDefaultPosition, wxDefaultSize, 0 );
      
      sizerAuth->Add( m_checkAuthPerBookmark, 0, wxALL, 5 );
      
      m_checkUseAuthCache = new wxCheckBox( m_panelAuth, wxID_ANY, _("Store authentication credentials on hard disk"), wxDefaultPosition, wxDefaultSize, 0 );
      
      sizerAuth->Add( m_checkUseAuthCache, 0, wxALL, 5 );
      
      m_panelAuth->SetSizer( sizerAuth );
      m_panelAuth->Layout();
      sizerAuth->Fit( m_panelAuth );
      m_notebookMain->AddPage( m_panelAuth, _("Authentication"), false );
      
      mainSizer->Add( m_notebookMain, 1, wxEXPAND | wxALL, 5 );
      
      wxBoxSizer* buttonSizer;
      buttonSizer = new wxBoxSizer( wxHORIZONTAL );
      
      m_buttonOK = new wxButton( this, wxID_OK, _("OK"), wxDefaultPosition, wxDefaultSize, 0 );
      m_buttonOK->SetDefault(); 
      buttonSizer->Add( m_buttonOK, 0, wxALL, 10 );
      
      m_buttonCancel = new wxButton( this, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
      buttonSizer->Add( m_buttonCancel, 0, wxALL, 10 );
      
      mainSizer->Add( buttonSizer, 0, wxALIGN_CENTER, 0 );
      
      this->SetSizer( mainSizer );
      this->Layout();
      mainSizer->Fit( this );
      
      // Connect Events
      m_buttonEditor->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PreferencesDlgBase::OnButtonEditorClick ), NULL, this );
      m_buttonExplorer->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PreferencesDlgBase::OnButtonExplorerClick ), NULL, this );
      m_buttonDiffTool->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PreferencesDlgBase::OnButtonDiffToolClick ), NULL, this );
      m_buttonMergeTool->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PreferencesDlgBase::OnButtonMergeToolClick ), NULL, this );
      m_buttonOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PreferencesDlgBase::OnOK ), NULL, this );
}

PreferencesDlgBase::~PreferencesDlgBase()
{
      // Disconnect Events
      m_buttonEditor->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PreferencesDlgBase::OnButtonEditorClick ), NULL, this );
      m_buttonExplorer->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PreferencesDlgBase::OnButtonExplorerClick ), NULL, this );
      m_buttonDiffTool->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PreferencesDlgBase::OnButtonDiffToolClick ), NULL, this );
      m_buttonMergeTool->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PreferencesDlgBase::OnButtonMergeToolClick ), NULL, this );
      m_buttonOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PreferencesDlgBase::OnOK ), NULL, this );
}

DiffDlgBase::DiffDlgBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
{
      this->SetSizeHints( wxDefaultSize, wxDefaultSize );
      
      wxBoxSizer* mainSizer;
      mainSizer = new wxBoxSizer( wxVERTICAL );
      
      wxBoxSizer* compareSizer;
      compareSizer = new wxBoxSizer( wxHORIZONTAL );
      
      wxStaticText* labelCompare;
      labelCompare = new wxStaticText( this, wxID_ANY, _("Compare:"), wxDefaultPosition, wxDefaultSize, 0 );
      labelCompare->Wrap( -1 );
      compareSizer->Add( labelCompare, 0, 0, 5 );
      
      m_comboCompare = new wxComboBox( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_DROPDOWN|wxCB_READONLY ); 
      compareSizer->Add( m_comboCompare, 1, 0, 5 );
      
      mainSizer->Add( compareSizer, 0, wxALL|wxEXPAND, 5 );
      
      wxStaticBoxSizer* sbSizer1;
      sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Revision or date #1:") ), wxVERTICAL );
      
      wxFlexGridSizer* fgSizer1;
      fgSizer1 = new wxFlexGridSizer( 3, 2, 0, 0 );
      fgSizer1->SetFlexibleDirection( wxBOTH );
      fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
      
      m_radioUseRevision1 = new wxRadioButton( this, wxID_ANY, _("Revision:"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
      fgSizer1->Add( m_radioUseRevision1, 0, 0, 5 );
      
      wxBoxSizer* bSizer16;
      bSizer16 = new wxBoxSizer( wxHORIZONTAL );
      
      m_textRevision1 = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
      bSizer16->Add( m_textRevision1, 0, wxEXPAND, 5 );
      
      m_checkUseLatest1 = new wxCheckBox( this, wxID_ANY, _("Use latest"), wxDefaultPosition, wxDefaultSize, 0 );
      
      bSizer16->Add( m_checkUseLatest1, 0, 0, 5 );
      
      fgSizer1->Add( bSizer16, 1, wxEXPAND, 5 );
      
      m_radioUseDate1 = new wxRadioButton( this, wxID_ANY, _("Date:"), wxDefaultPosition, wxDefaultSize, 0 );
      fgSizer1->Add( m_radioUseDate1, 0, 0, 5 );
      
      m_datePicker1 = new wxDatePickerCtrl( this, wxID_ANY, wxDefaultDateTime, wxDefaultPosition, wxDefaultSize, wxDP_DEFAULT );
      fgSizer1->Add( m_datePicker1, 0, wxEXPAND, 5 );
      
      m_checkUsePath1 = new wxCheckBox( this, wxID_ANY, _("Use URL/path:"), wxDefaultPosition, wxDefaultSize, 0 );
      
      fgSizer1->Add( m_checkUsePath1, 0, 0, 5 );
      
      m_comboPath1 = new wxComboBox( this, wxID_ANY, _("Combo!"), wxDefaultPosition, wxDefaultSize, 0, NULL, 0 ); 
      fgSizer1->Add( m_comboPath1, 0, wxEXPAND, 5 );
      
      sbSizer1->Add( fgSizer1, 1, wxEXPAND, 5 );
      
      mainSizer->Add( sbSizer1, 1, wxALL|wxEXPAND, 5 );
      
      wxStaticBoxSizer* sbSizer2;
      sbSizer2 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Revision or date #2:") ), wxVERTICAL );
      
      wxFlexGridSizer* fgSizer2;
      fgSizer2 = new wxFlexGridSizer( 3, 2, 0, 0 );
      fgSizer2->SetFlexibleDirection( wxBOTH );
      fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
      
      m_radioUseRevision2 = new wxRadioButton( this, wxID_ANY, _("Revision:"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
      fgSizer2->Add( m_radioUseRevision2, 0, 0, 5 );
      
      wxBoxSizer* bSizer161;
      bSizer161 = new wxBoxSizer( wxHORIZONTAL );
      
      m_textRevision2 = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
      bSizer161->Add( m_textRevision2, 0, wxEXPAND, 5 );
      
      m_checkUseLatest2 = new wxCheckBox( this, wxID_ANY, _("Use latest"), wxDefaultPosition, wxDefaultSize, 0 );
      
      bSizer161->Add( m_checkUseLatest2, 0, 0, 5 );
      
      fgSizer2->Add( bSizer161, 1, wxEXPAND, 5 );
      
      m_radioUseDate2 = new wxRadioButton( this, wxID_ANY, _("Date:"), wxDefaultPosition, wxDefaultSize, 0 );
      fgSizer2->Add( m_radioUseDate2, 0, 0, 5 );
      
      m_datePicker2 = new wxDatePickerCtrl( this, wxID_ANY, wxDefaultDateTime, wxDefaultPosition, wxDefaultSize, wxDP_DEFAULT );
      fgSizer2->Add( m_datePicker2, 0, wxEXPAND, 5 );
      
      m_checkUsePath2 = new wxCheckBox( this, wxID_ANY, _("Use URL/path:"), wxDefaultPosition, wxDefaultSize, 0 );
      
      fgSizer2->Add( m_checkUsePath2, 0, 0, 5 );
      
      m_comboPath2 = new wxComboBox( this, wxID_ANY, _("Combo!"), wxDefaultPosition, wxDefaultSize, 0, NULL, 0 ); 
      fgSizer2->Add( m_comboPath2, 0, wxEXPAND, 5 );
      
      sbSizer2->Add( fgSizer2, 1, wxEXPAND, 5 );
      
      mainSizer->Add( sbSizer2, 1, wxALL|wxEXPAND, 5 );
      
      wxBoxSizer* buttonSizer;
      buttonSizer = new wxBoxSizer( wxHORIZONTAL );
      
      m_buttonOK = new wxButton( this, wxID_OK, _("OK"), wxDefaultPosition, wxDefaultSize, 0 );
      m_buttonOK->SetDefault(); 
      buttonSizer->Add( m_buttonOK, 0, wxALL, 5 );
      
      m_buttonCancel = new wxButton( this, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
      buttonSizer->Add( m_buttonCancel, 0, wxALL, 5 );
      
      mainSizer->Add( buttonSizer, 0, wxALIGN_CENTER, 5 );
      
      this->SetSizer( mainSizer );
      this->Layout();
      mainSizer->Fit( this );
      
      // Connect Events
      m_comboCompare->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( DiffDlgBase::OnComboCompare ), NULL, this );
      m_radioUseRevision1->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( DiffDlgBase::OnRadioUseRevision1 ), NULL, this );
      m_textRevision1->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DiffDlgBase::OnTextRevision1 ), NULL, this );
      m_checkUseLatest1->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DiffDlgBase::OnCheckUseLatest1 ), NULL, this );
      m_radioUseDate1->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( DiffDlgBase::OnRadioUseDate1 ), NULL, this );
      m_datePicker1->Connect( wxEVT_DATE_CHANGED, wxDateEventHandler( DiffDlgBase::OnDatePicker1 ), NULL, this );
      m_checkUsePath1->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DiffDlgBase::OnUsePath1 ), NULL, this );
      m_comboPath1->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( DiffDlgBase::OnComboPath1 ), NULL, this );
      m_radioUseRevision2->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( DiffDlgBase::OnRadioUseRevision2 ), NULL, this );
      m_textRevision2->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DiffDlgBase::OnTextRevision2 ), NULL, this );
      m_checkUseLatest2->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DiffDlgBase::OnCheckUseLatest2 ), NULL, this );
      m_radioUseDate2->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( DiffDlgBase::OnRadioUseDate2 ), NULL, this );
      m_datePicker2->Connect( wxEVT_DATE_CHANGED, wxDateEventHandler( DiffDlgBase::OnDatePicker2 ), NULL, this );
      m_checkUsePath2->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DiffDlgBase::OnCheckUsePath2 ), NULL, this );
      m_comboPath2->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( DiffDlgBase::OnComboPath2 ), NULL, this );
      m_buttonOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DiffDlgBase::OnButtonOK ), NULL, this );
}

DiffDlgBase::~DiffDlgBase()
{
      // Disconnect Events
      m_comboCompare->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( DiffDlgBase::OnComboCompare ), NULL, this );
      m_radioUseRevision1->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( DiffDlgBase::OnRadioUseRevision1 ), NULL, this );
      m_textRevision1->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DiffDlgBase::OnTextRevision1 ), NULL, this );
      m_checkUseLatest1->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DiffDlgBase::OnCheckUseLatest1 ), NULL, this );
      m_radioUseDate1->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( DiffDlgBase::OnRadioUseDate1 ), NULL, this );
      m_datePicker1->Disconnect( wxEVT_DATE_CHANGED, wxDateEventHandler( DiffDlgBase::OnDatePicker1 ), NULL, this );
      m_checkUsePath1->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DiffDlgBase::OnUsePath1 ), NULL, this );
      m_comboPath1->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( DiffDlgBase::OnComboPath1 ), NULL, this );
      m_radioUseRevision2->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( DiffDlgBase::OnRadioUseRevision2 ), NULL, this );
      m_textRevision2->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DiffDlgBase::OnTextRevision2 ), NULL, this );
      m_checkUseLatest2->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DiffDlgBase::OnCheckUseLatest2 ), NULL, this );
      m_radioUseDate2->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( DiffDlgBase::OnRadioUseDate2 ), NULL, this );
      m_datePicker2->Disconnect( wxEVT_DATE_CHANGED, wxDateEventHandler( DiffDlgBase::OnDatePicker2 ), NULL, this );
      m_checkUsePath2->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DiffDlgBase::OnCheckUsePath2 ), NULL, this );
      m_comboPath2->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( DiffDlgBase::OnComboPath2 ), NULL, this );
      m_buttonOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DiffDlgBase::OnButtonOK ), NULL, this );
}

CommitLogDlgBase::CommitLogDlgBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
{
      this->SetSizeHints( wxDefaultSize, wxDefaultSize );
      
      m_mainSizer = new wxBoxSizer( wxVERTICAL );
      
      m_msgSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("This action has resulted in a commit - please enter a log message") ), wxHORIZONTAL );
      
      m_textMessage = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
      m_msgSizer->Add( m_textMessage, 1, wxEXPAND, 5 );
      
      m_mainSizer->Add( m_msgSizer, 1, wxALL|wxEXPAND, 5 );
      
      m_histSizer = new wxBoxSizer( wxHORIZONTAL );
      
      m_labelHistory = new wxStaticText( this, wxID_ANY, _("Recent entries:"), wxDefaultPosition, wxDefaultSize, 0 );
      m_labelHistory->Wrap( -1 );
      m_histSizer->Add( m_labelHistory, 0, wxALL, 5 );
      
      m_comboHistory = new wxComboBox( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_READONLY ); 
      m_histSizer->Add( m_comboHistory, 1, 0, 5 );
      
      m_mainSizer->Add( m_histSizer, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
      
      wxBoxSizer* buttonSizer;
      buttonSizer = new wxBoxSizer( wxHORIZONTAL );
      
      m_buttonOK = new wxButton( this, wxID_OK, _("OK"), wxDefaultPosition, wxDefaultSize, 0 );
      m_buttonOK->SetDefault(); 
      buttonSizer->Add( m_buttonOK, 0, wxALL, 10 );
      
      m_buttonCancel = new wxButton( this, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
      buttonSizer->Add( m_buttonCancel, 0, wxALL, 10 );
      
      m_mainSizer->Add( buttonSizer, 0, wxALIGN_RIGHT|wxLEFT|wxRIGHT, 5 );
      
      this->SetSizer( m_mainSizer );
      this->Layout();
      
      // Connect Events
      m_comboHistory->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( CommitLogDlgBase::OnComboHistory ), NULL, this );
}

CommitLogDlgBase::~CommitLogDlgBase()
{
      // Disconnect Events
      m_comboHistory->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( CommitLogDlgBase::OnComboHistory ), NULL, this );
}

CommitDlgBase::CommitDlgBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
{
      this->SetSizeHints( wxDefaultSize, wxDefaultSize );
      
      m_mainSizer = new wxBoxSizer( wxVERTICAL );
      
      m_msgSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Enter &log message") ), wxHORIZONTAL );
      
      m_textMessage = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
      m_msgSizer->Add( m_textMessage, 1, wxEXPAND, 5 );
      
      m_mainSizer->Add( m_msgSizer, 1, wxALL|wxEXPAND, 5 );
      
      m_histSizer = new wxBoxSizer( wxHORIZONTAL );
      
      m_labelHistory = new wxStaticText( this, wxID_ANY, _("&Recent entries:"), wxDefaultPosition, wxDefaultSize, 0 );
      m_labelHistory->Wrap( -1 );
      m_histSizer->Add( m_labelHistory, 0, wxALL, 5 );
      
      m_comboHistory = new wxComboBox( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_READONLY ); 
      m_histSizer->Add( m_comboHistory, 1, 0, 5 );
      
      m_mainSizer->Add( m_histSizer, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
      
      m_filesSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("&Files to commit") ), wxVERTICAL );
      
      wxArrayString m_checkListFilesChoices;
      m_checkListFiles = new wxCheckListBox( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_checkListFilesChoices, wxLB_EXTENDED );
      m_filesSizer->Add( m_checkListFiles, 1, wxEXPAND, 5 );
      
      wxBoxSizer* bSizerFileButtons;
      bSizerFileButtons = new wxBoxSizer( wxHORIZONTAL );
      
      m_buttonToggle = new wxButton( this, wxID_ANY, _("&Toggle"), wxDefaultPosition, wxDefaultSize, 0 );
      bSizerFileButtons->Add( m_buttonToggle, 0, wxALL, 5 );
      
      m_buttonDiff = new wxButton( this, wxID_ANY, _("&Diff"), wxDefaultPosition, wxDefaultSize, 0 );
      bSizerFileButtons->Add( m_buttonDiff, 0, wxALL, 5 );
      
      m_filesSizer->Add( bSizerFileButtons, 0, wxEXPAND, 5 );
      
      m_mainSizer->Add( m_filesSizer, 1, wxALL|wxEXPAND, 5 );
      
      wxBoxSizer* buttonSizer;
      buttonSizer = new wxBoxSizer( wxHORIZONTAL );
      
      m_checkRecursive = new wxCheckBox( this, wxID_ANY, _("Recursive"), wxDefaultPosition, wxDefaultSize, 0 );
      
      buttonSizer->Add( m_checkRecursive, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
      
      m_checkKeepLocks = new wxCheckBox( this, wxID_ANY, _("Keep Locks"), wxDefaultPosition, wxDefaultSize, 0 );
      
      buttonSizer->Add( m_checkKeepLocks, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
      
      m_buttonOK = new wxButton( this, wxID_OK, _("OK"), wxDefaultPosition, wxDefaultSize, 0 );
      m_buttonOK->SetDefault(); 
      buttonSizer->Add( m_buttonOK, 0, wxALL, 10 );
      
      m_buttonCancel = new wxButton( this, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
      buttonSizer->Add( m_buttonCancel, 0, wxALL, 10 );
      
      m_mainSizer->Add( buttonSizer, 0, wxALIGN_RIGHT|wxLEFT|wxRIGHT, 5 );
      
      this->SetSizer( m_mainSizer );
      this->Layout();
      
      // Connect Events
      m_comboHistory->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( CommitDlgBase::OnComboHistory ), NULL, this );
      m_checkListFiles->Connect( wxEVT_COMMAND_LISTBOX_SELECTED, wxCommandEventHandler( CommitDlgBase::OnCheckListFiles ), NULL, this );
      m_checkListFiles->Connect( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler( CommitDlgBase::OnCheckListFilesDClick ), NULL, this );
      m_checkListFiles->Connect( wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, wxCommandEventHandler( CommitDlgBase::OnCheckListFilesToggle ), NULL, this );
      m_buttonToggle->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CommitDlgBase::OnButtonToggle ), NULL, this );
      m_buttonDiff->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CommitDlgBase::OnButtonDiff ), NULL, this );
}

CommitDlgBase::~CommitDlgBase()
{
      // Disconnect Events
      m_comboHistory->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( CommitDlgBase::OnComboHistory ), NULL, this );
      m_checkListFiles->Disconnect( wxEVT_COMMAND_LISTBOX_SELECTED, wxCommandEventHandler( CommitDlgBase::OnCheckListFiles ), NULL, this );
      m_checkListFiles->Disconnect( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler( CommitDlgBase::OnCheckListFilesDClick ), NULL, this );
      m_checkListFiles->Disconnect( wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, wxCommandEventHandler( CommitDlgBase::OnCheckListFilesToggle ), NULL, this );
      m_buttonToggle->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CommitDlgBase::OnButtonToggle ), NULL, this );
      m_buttonDiff->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CommitDlgBase::OnButtonDiff ), NULL, this );
}

Generated by  Doxygen 1.6.0   Back to index