@@ -30,18 +30,18 @@ void DasherController::editDelete(const std::string& strText, Dasher::CDasherNod
3030 CDasherInterfaceBase::editDelete (strText, pNode);
3131}
3232
33- unsigned DasherController::ctrlMove (bool bForwards, Dasher::CControlManager:: EditDistance dist)
33+ unsigned DasherController::ctrlMove (bool bForwards, Dasher::EditDistance dist)
3434{
35- if (dist == Dasher::CControlManager:: EditDistance::EDIT_CHAR) {
35+ if (dist == Dasher::EditDistance::EDIT_CHAR) {
3636 if (bForwards) Cursor++;
3737 else Cursor--;
3838 }
3939 return Cursor;
4040}
4141
42- unsigned DasherController::ctrlDelete (bool bForwards, Dasher::CControlManager:: EditDistance dist)
42+ unsigned DasherController::ctrlDelete (bool bForwards, Dasher::EditDistance dist)
4343{
44- if (dist == Dasher::CControlManager:: EditDistance::EDIT_CHAR) {
44+ if (dist == Dasher::EditDistance::EDIT_CHAR) {
4545
4646 Buffer.erase (Cursor - (bForwards ? 0 : 1 ), 1 );
4747 }
@@ -61,9 +61,9 @@ std::string DasherController::GetAllContext()
6161 return CurrentBuffer;
6262}
6363
64- std::string DasherController::GetTextAroundCursor (Dasher::CControlManager:: EditDistance iDist) {
64+ std::string DasherController::GetTextAroundCursor (Dasher::EditDistance iDist) {
6565 if (Buffer.length () > Cursor && Buffer.length () >= 2 ) {
66- if (iDist == Dasher::CControlManager:: EditDistance::EDIT_CHAR) {
66+ if (iDist == Dasher::EditDistance::EDIT_CHAR) {
6767 return Buffer.substr (Cursor - 1 , 2 );
6868 }
6969
@@ -90,13 +90,13 @@ void DasherController::CreateModules()
9090{
9191 CDashIntfScreenMsgs::CreateModules ();
9292
93- RegisterModule (ScreenModule.get ());
93+ GetModuleManager ()-> RegisterInputDeviceModule (ScreenModule.get ());
9494
95- SocketInputModule = std::make_shared<SocketInput>(static_cast <CSettingsUser*>( this ) , this , m_pFramerate);
96- RegisterModule ( static_cast <Dasher::CInputFilter*> (SocketInputModule.get () ));
95+ SocketInputModule = std::make_shared<SocketInput>(m_pSettingsStore , this , m_pFramerate);
96+ GetModuleManager ()-> RegisterInputDeviceModule (SocketInputModule.get ());
9797 SocketInputModule->startListen ();
9898
99- SetDefaultInputDevice (SocketInputModule.get ());
99+ GetModuleManager ()-> SetDefaultInputDevice (SocketInputModule.get ());
100100}
101101
102102void DasherController::CopyToClipboard (const std::string& text)
0 commit comments