Skip to content

Commit 814d672

Browse files
committed
Reorganised source, put methods in subdirectory
1 parent d65fc5a commit 814d672

38 files changed

+15495
-15006
lines changed

MUSHclient.dsp

Lines changed: 148 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ProcessPreviousLine.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ static inline unsigned short get_style (int style)
2929
return style & 0x0F;
3030
} // end of get_style
3131

32-
static inline CString AnsiCode (short Code)
33-
{
34-
return CFormat ("%c[%dm", ESC, Code);
35-
}
3632

3733
// shared stuff for logging in colour
3834

doc.cpp

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7650,3 +7650,104 @@ void CMUSHclientDoc::EditFileWithEditor (CString strName)
76507650

76517651
}
76527652

7653+
7654+
7655+
7656+
void CMUSHclientDoc::OnGameEditscriptfile()
7657+
{
7658+
7659+
if (m_bEditScriptWithNotepad)
7660+
{
7661+
CTextDocument * pNewDoc =
7662+
(CTextDocument *) App.OpenDocumentFile (m_strScriptFilename);
7663+
7664+
if (pNewDoc)
7665+
{
7666+
pNewDoc->m_pRelatedWorld = this;
7667+
pNewDoc->m_iUniqueDocumentNumber = m_iUniqueDocumentNumber;
7668+
pNewDoc->SetTheFont ();
7669+
}
7670+
else
7671+
::TMessageBox("Unable to edit the script file.",
7672+
MB_ICONEXCLAMATION);
7673+
return;
7674+
} // end of using inbuilt notepad
7675+
7676+
EditFileWithEditor (m_strScriptFilename);
7677+
7678+
7679+
7680+
}
7681+
7682+
void CMUSHclientDoc::OnUpdateGameEditscriptfile(CCmdUI* pCmdUI)
7683+
{
7684+
DoFixMenus (pCmdUI); // remove accelerators from menus
7685+
pCmdUI->Enable (!m_strScriptFilename.IsEmpty ());
7686+
7687+
}
7688+
7689+
void CMUSHclientDoc::OnUpdateGameConfigureMudaddress(CCmdUI* pCmdUI)
7690+
{
7691+
DoFixMenus (pCmdUI); // remove accelerators from menus
7692+
pCmdUI->Enable (m_iConnectPhase == eConnectNotConnected ||
7693+
m_iConnectPhase == eConnectConnectedToMud); // no changing of address whilst connecting
7694+
}
7695+
7696+
7697+
void CMUSHclientDoc::OnLogNotesChanged()
7698+
{
7699+
m_bLogNotes = m_bLogNotes != 0; // make boolean
7700+
}
7701+
7702+
7703+
void CMUSHclientDoc::OnLogInputChanged()
7704+
{
7705+
m_log_input = m_log_input != 0; // make boolean
7706+
}
7707+
7708+
7709+
void CMUSHclientDoc::OnLogOutputChanged()
7710+
{
7711+
// TODO: Add notification handler code
7712+
}
7713+
7714+
void CMUSHclientDoc::OnMappingChanged()
7715+
{
7716+
// TODO: Add notification handler code
7717+
7718+
} // end of CMUSHclientDoc::OnMappingChanged
7719+
7720+
void CMUSHclientDoc::OnRemoveMapReversesChanged()
7721+
{
7722+
// TODO: Add notification handler code
7723+
7724+
} // end of CMUSHclientDoc::OnRemoveMapReversesChanged
7725+
7726+
7727+
void CMUSHclientDoc::OnGameTrace()
7728+
{
7729+
7730+
if (m_bTrace)
7731+
{
7732+
Trace ("Trace off");
7733+
m_bTrace = false;
7734+
}
7735+
else
7736+
{
7737+
// if half-filled line, flush it out
7738+
if (m_pCurrentLine && m_pCurrentLine->len > 0)
7739+
StartNewLine (true, m_pCurrentLine->flags);
7740+
m_bTrace = true;
7741+
Trace ("Trace on");
7742+
}
7743+
7744+
7745+
}
7746+
7747+
void CMUSHclientDoc::OnUpdateGameTrace(CCmdUI* pCmdUI)
7748+
{
7749+
DoFixMenus (pCmdUI); // remove accelerators from menus
7750+
pCmdUI->Enable ();
7751+
pCmdUI->SetCheck (m_bTrace);
7752+
}
7753+

resource.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1562,7 +1562,7 @@
15621562
#ifdef APSTUDIO_INVOKED
15631563
#ifndef APSTUDIO_READONLY_SYMBOLS
15641564
#define _APS_3D_CONTROLS 1
1565-
#define _APS_NEXT_RESOURCE_VALUE 362
1565+
#define _APS_NEXT_RESOURCE_VALUE 363
15661566
#define _APS_NEXT_COMMAND_VALUE 33054
15671567
#define _APS_NEXT_CONTROL_VALUE 2897
15681568
#define _APS_NEXT_SYMED_VALUE 312

0 commit comments

Comments
 (0)