From: Karsten Ballüder Date: Mon, 10 May 1999 10:44:09 +0000 (+0000) Subject: Updated for Mahogany. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b6bc5bf37ca52cb04cebabf1b02739e4a871a29f?ds=inline Updated for Mahogany. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/user/wxLayout/Mpch.h b/user/wxLayout/Mpch.h new file mode 100644 index 0000000000..c3af53687d --- /dev/null +++ b/user/wxLayout/Mpch.h @@ -0,0 +1,8 @@ +/* + This is an empty Mpch.h file to allow me to move the + wxl* files between Mahogany and the wxLayout sample + without modifying them. +*/ + +static int _mpch_dummy = 0; + diff --git a/user/wxLayout/wxllist.cpp b/user/wxLayout/wxllist.cpp index 9a67134f9c..ecf7e883d9 100644 --- a/user/wxLayout/wxllist.cpp +++ b/user/wxLayout/wxllist.cpp @@ -14,7 +14,7 @@ #pragma implementation "wxllist.h" #endif -//#include "Mpch.h" +#include "Mpch.h" #include "wx/wxprec.h" diff --git a/user/wxLayout/wxllist.h b/user/wxLayout/wxllist.h index fd2d2807c6..d758f75a01 100644 --- a/user/wxLayout/wxllist.h +++ b/user/wxLayout/wxllist.h @@ -732,6 +732,8 @@ public: inline void SetFontUnderline(bool ul) { SetFont(-1,-1,-1,-1,(int)ul); } /// set font colours by name inline void SetFontColour(char const *fg, char const *bg = NULL) { SetFont(-1,-1,-1,-1,-1,fg,bg); } + /// set font colours by colour + inline void SetFontColour(wxColour *fg, wxColour *bg = NULL) { SetFont(-1,-1,-1,-1,-1,fg,bg); } /** Returns a pointer to the default settings. This is only valid temporarily and should not be stored diff --git a/user/wxLayout/wxlparser.cpp b/user/wxLayout/wxlparser.cpp index 5b32988c65..95268ef08c 100644 --- a/user/wxLayout/wxlparser.cpp +++ b/user/wxLayout/wxlparser.cpp @@ -10,7 +10,7 @@ # pragma implementation "wxlparser.h" #endif -//#include "Mpch.h" +#include "Mpch.h" #ifdef M_PREFIX # include "gui/wxllist.h" # include "gui/wxlparser.h" diff --git a/user/wxLayout/wxlwindow.cpp b/user/wxLayout/wxlwindow.cpp index ac9c213c62..c3571af0db 100644 --- a/user/wxLayout/wxlwindow.cpp +++ b/user/wxLayout/wxlwindow.cpp @@ -16,7 +16,7 @@ #endif -//#include "Mpch.h" +#include "Mpch.h" #ifdef M_BASEDIR # ifndef USE_PCH # include "Mcommon.h" @@ -277,6 +277,9 @@ wxLayoutWindow::OnChar(wxKeyEvent& event) case 'k': m_llist->DeleteToEndOfLine(); break; + case 'v': + Paste(); + break; #ifdef WXLAYOUT_DEBUG case WXK_F1: m_llist->SetFont(-1,-1,-1,-1,true); // underlined @@ -328,6 +331,10 @@ wxLayoutWindow::OnChar(wxKeyEvent& event) case WXK_END: m_llist->MoveCursorToEndOfLine(); break; + case WXK_INSERT: + if(event.ShiftDown()) + Paste(); + break; case WXK_DELETE : m_llist->Delete(1); break;