mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 22:02:49 -06:00
32 lines
536 B
C++
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();
|
|
}
|