ultimatepp/uppsrc/ide/Browser/Reference.cpp
cxl a1f17348e4 LoadFrom/StoreTo fixed to work with operator%, fix in Format, usvn now keeps commit messages if no commit performed
git-svn-id: svn://ultimatepp.org/upp/trunk@622 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-11-07 15:48:48 +00:00

32 lines
536 B
C++

#include "Browser.h"
void ReferenceDlg::EnterItem()
{
reference <<= GetCodeRef();
}
void ReferenceDlg::EnterItemOk()
{
if(item.IsCursor()) {
EnterItem();
Break(IDOK);
}
}
void ReferenceDlg::Set(const String& s)
{
Goto(s, Null);
reference <<= s;
}
ReferenceDlg::ReferenceDlg()
{
CtrlLayoutOKCancel(*this, "Reference");
Breaker(classlist, IDYES);
item.WhenEnterRow = THISBACK(EnterItem);
item.WhenLeftDouble = THISBACK(EnterItemOk);
Sizeable().Zoomable();
Icon(TopicImg::Topic());
display.showtopic = true;
Load();
}