~ubuntu-branches/ubuntu/maverick/codelite/maverick

« back to all changes in this revision

Viewing changes to Subversion2/diff_dialog.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-07-29 19:42:47 UTC
  • mfrom: (1.1.9 upstream) (18.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20100729194247-cuibfk03wog33nxq
Tags: 2.6.0.4189~dfsg-1
* New upstream release.
* Bump Standards.
* Refresh patches.
* Add license information about files under ./Debugger/

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "diff_dialog.h"
 
2
#include "windowattrmanager.h"
 
3
#include "imanager.h"
 
4
 
 
5
DiffDialog::DiffDialog( wxWindow* parent, IManager *manager )
 
6
        : DiffDialogBase( parent )
 
7
        , m_manager(manager)
 
8
{
 
9
        m_textCtrlFromRev->SetFocus();
 
10
        WindowAttrManager::Load(this, wxT("DiffDialog"), m_manager->GetConfigTool());
 
11
}
 
12
 
 
13
DiffDialog::~DiffDialog()
 
14
{
 
15
        WindowAttrManager::Save(this, wxT("DiffDialog"), m_manager->GetConfigTool());
 
16
}
 
17
 
 
18
wxString DiffDialog::GetFromRevision() const
 
19
{
 
20
        wxString from = m_textCtrlFromRev->GetValue();
 
21
        from.Trim().Trim(false);
 
22
 
 
23
        if(from.IsEmpty()) {
 
24
                return wxT("BASE");
 
25
        } else {
 
26
                return from;
 
27
        }
 
28
}
 
29
 
 
30
wxString DiffDialog::GetToRevision() const
 
31
{
 
32
        wxString to = m_textCtrlToRev->GetValue();
 
33
        to.Trim().Trim(false);
 
34
        return to;
 
35
}