Skip to content

Commit

Permalink
Reorganised source, put methods in subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgammon committed Sep 26, 2010
1 parent d65fc5a commit 814d672
Show file tree
Hide file tree
Showing 38 changed files with 15,495 additions and 15,006 deletions.
168 changes: 148 additions & 20 deletions MUSHclient.dsp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions ProcessPreviousLine.cpp
Expand Up @@ -29,10 +29,6 @@ static inline unsigned short get_style (int style)
return style & 0x0F;
} // end of get_style

static inline CString AnsiCode (short Code)
{
return CFormat ("%c[%dm", ESC, Code);
}

// shared stuff for logging in colour

Expand Down
101 changes: 101 additions & 0 deletions doc.cpp
Expand Up @@ -7650,3 +7650,104 @@ void CMUSHclientDoc::EditFileWithEditor (CString strName)

}




void CMUSHclientDoc::OnGameEditscriptfile()
{

if (m_bEditScriptWithNotepad)
{
CTextDocument * pNewDoc =
(CTextDocument *) App.OpenDocumentFile (m_strScriptFilename);

if (pNewDoc)
{
pNewDoc->m_pRelatedWorld = this;
pNewDoc->m_iUniqueDocumentNumber = m_iUniqueDocumentNumber;
pNewDoc->SetTheFont ();
}
else
::TMessageBox("Unable to edit the script file.",
MB_ICONEXCLAMATION);
return;
} // end of using inbuilt notepad

EditFileWithEditor (m_strScriptFilename);



}

void CMUSHclientDoc::OnUpdateGameEditscriptfile(CCmdUI* pCmdUI)
{
DoFixMenus (pCmdUI); // remove accelerators from menus
pCmdUI->Enable (!m_strScriptFilename.IsEmpty ());

}

void CMUSHclientDoc::OnUpdateGameConfigureMudaddress(CCmdUI* pCmdUI)
{
DoFixMenus (pCmdUI); // remove accelerators from menus
pCmdUI->Enable (m_iConnectPhase == eConnectNotConnected ||
m_iConnectPhase == eConnectConnectedToMud); // no changing of address whilst connecting
}


void CMUSHclientDoc::OnLogNotesChanged()
{
m_bLogNotes = m_bLogNotes != 0; // make boolean
}


void CMUSHclientDoc::OnLogInputChanged()
{
m_log_input = m_log_input != 0; // make boolean
}


void CMUSHclientDoc::OnLogOutputChanged()
{
// TODO: Add notification handler code
}

void CMUSHclientDoc::OnMappingChanged()
{
// TODO: Add notification handler code

} // end of CMUSHclientDoc::OnMappingChanged

void CMUSHclientDoc::OnRemoveMapReversesChanged()
{
// TODO: Add notification handler code

} // end of CMUSHclientDoc::OnRemoveMapReversesChanged


void CMUSHclientDoc::OnGameTrace()
{

if (m_bTrace)
{
Trace ("Trace off");
m_bTrace = false;
}
else
{
// if half-filled line, flush it out
if (m_pCurrentLine && m_pCurrentLine->len > 0)
StartNewLine (true, m_pCurrentLine->flags);
m_bTrace = true;
Trace ("Trace on");
}


}

void CMUSHclientDoc::OnUpdateGameTrace(CCmdUI* pCmdUI)
{
DoFixMenus (pCmdUI); // remove accelerators from menus
pCmdUI->Enable ();
pCmdUI->SetCheck (m_bTrace);
}

2 changes: 1 addition & 1 deletion resource.h
Expand Up @@ -1562,7 +1562,7 @@
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_3D_CONTROLS 1
#define _APS_NEXT_RESOURCE_VALUE 362
#define _APS_NEXT_RESOURCE_VALUE 363
#define _APS_NEXT_COMMAND_VALUE 33054
#define _APS_NEXT_CONTROL_VALUE 2897
#define _APS_NEXT_SYMED_VALUE 312
Expand Down

0 comments on commit 814d672

Please sign in to comment.