Changeset 30427
- Timestamp:
- 02/22/09 13:35:51 (4 years ago)
- Location:
- lang/cplusplus/i3/trunk
- Files:
-
- 17 modified
-
am/i3.am (modified) (1 diff)
-
src/CompletionWindow.cpp (modified) (1 diff)
-
src/CompletionWindow.h (modified) (2 diffs)
-
src/InputWindow.cpp (modified) (1 diff)
-
src/InputWindow.h (modified) (2 diffs)
-
src/gui-cocoa/CompletionWindowCore.cpp (modified) (2 diffs)
-
src/gui-cocoa/CompletionWindowCore.h (modified) (1 diff)
-
src/gui-cocoa/InputWindowCore.cpp (modified) (3 diffs)
-
src/gui-cocoa/InputWindowCore.h (modified) (1 diff)
-
src/gui-gnustep/CompletionWindowCore.cpp (modified) (2 diffs)
-
src/gui-gnustep/CompletionWindowCore.h (modified) (1 diff)
-
src/gui-gnustep/InputWindowCore.cpp (modified) (3 diffs)
-
src/gui-gnustep/InputWindowCore.h (modified) (1 diff)
-
src/gui-windows/CompletionWindowCore.cpp (modified) (2 diffs)
-
src/gui-windows/CompletionWindowCore.h (modified) (1 diff)
-
src/gui-windows/InputWindowCore.cpp (modified) (14 diffs)
-
src/gui-windows/InputWindowCore.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/cplusplus/i3/trunk/am/i3.am
r30423 r30427 42 42 src/${OS_DIR}/Os.cpp \ 43 43 src/${GUI_DIR}/Gui.cpp \ 44 src/${GUI_DIR}/InputWindow Core.cpp \45 src/${GUI_DIR}/CompletionWindow Core.cpp44 src/${GUI_DIR}/InputWindowPlatform.cpp \ 45 src/${GUI_DIR}/CompletionWindowPlatform.cpp 46 46 47 47 i3_SOURCES = ${i3_SOURCES_NO_MAIN} src/Main.cpp -
lang/cplusplus/i3/trunk/src/CompletionWindow.cpp
r18130 r30427 12 12 { 13 13 14 CompletionWindow::CompletionWindow(Mediator& mediator): CompletionWindow Core<CompletionWindow>(mediator)14 CompletionWindow::CompletionWindow(Mediator& mediator): CompletionWindowPlatform<CompletionWindow>(mediator) 15 15 { 16 16 } -
lang/cplusplus/i3/trunk/src/CompletionWindow.h
r26757 r30427 4 4 5 5 #pragma once 6 #include "CompletionWindow Core.h"6 #include "CompletionWindowPlatform.h" 7 7 8 8 namespace i3 … … 12 12 13 13 class CompletionWindow : 14 public CompletionWindow Core<CompletionWindow>14 public CompletionWindowPlatform<CompletionWindow> 15 15 { 16 16 public: -
lang/cplusplus/i3/trunk/src/InputWindow.cpp
r18130 r30427 7 7 using namespace mol; 8 8 9 InputWindow::InputWindow(Mediator& mediator): InputWindow Core<InputWindow>(mediator)9 InputWindow::InputWindow(Mediator& mediator): InputWindowPlatform<InputWindow>(mediator) 10 10 { 11 11 } -
lang/cplusplus/i3/trunk/src/InputWindow.h
r26757 r30427 3 3 #include <mol/GuiModule.h> 4 4 #include "Common.h" 5 #include "InputWindow Core.h"5 #include "InputWindowPlatform.h" 6 6 7 7 namespace i3 … … 11 11 12 12 class InputWindow : 13 public InputWindow Core<InputWindow>13 public InputWindowPlatform<InputWindow> 14 14 { 15 15 public: -
lang/cplusplus/i3/trunk/src/gui-cocoa/CompletionWindowCore.cpp
r20479 r30427 1 1 #include <PrecompiledHeaders.h> 2 2 #include "CompletionWindow.h" 3 #include "CompletionWindow Core.h"3 #include "CompletionWindowPlatform.h" 4 4 #include "Mediator.h" 5 5 … … 14 14 15 15 template <> 16 CompletionWindow Core<CompletionWindow>::CompletionWindowCore(Mediator& mediator): mediator(mediator)16 CompletionWindowPlatform<CompletionWindow>::CompletionWindowPlatform(Mediator& mediator): mediator(mediator) 17 17 { 18 18 } 19 19 20 20 template <> 21 CompletionWindow Core<CompletionWindow>::~CompletionWindowCore()21 CompletionWindowPlatform<CompletionWindow>::~CompletionWindowPlatform() 22 22 { 23 23 } 24 24 25 25 template <> 26 void CompletionWindow Core<CompletionWindow>::createUI()26 void CompletionWindowPlatform<CompletionWindow>::createUI() 27 27 { 28 28 } 29 29 30 30 template <> 31 void CompletionWindow Core<CompletionWindow>::run()31 void CompletionWindowPlatform<CompletionWindow>::run() 32 32 { 33 33 createUI(); -
lang/cplusplus/i3/trunk/src/gui-cocoa/CompletionWindowCore.h
r27378 r30427 13 13 14 14 template <typename Child> 15 class CompletionWindow Core:16 public mol::GuiModule<CompletionWindow Core<Child> >15 class CompletionWindowPlatform : 16 public mol::GuiModule<CompletionWindowPlatform<Child> > 17 17 { 18 18 public: 19 CompletionWindow Core(Mediator& mediator);20 ~CompletionWindow Core();19 CompletionWindowPlatform(Mediator& mediator); 20 ~CompletionWindowPlatform(); 21 21 22 22 Mediator& mediator; -
lang/cplusplus/i3/trunk/src/gui-cocoa/InputWindowCore.cpp
r30276 r30427 3 3 #include "Gui.h" 4 4 #include "Mediator.h" 5 #include "InputWindow Core.h"5 #include "InputWindowPlatform.h" 6 6 #include "InputWindow.h" 7 7 … … 12 12 13 13 template <> 14 InputWindow Core<InputWindow>::InputWindowCore(Mediator& mediator) : mediator(mediator)14 InputWindowPlatform<InputWindow>::InputWindowPlatform(Mediator& mediator) : mediator(mediator) 15 15 { 16 16 } 17 17 18 18 template <> 19 InputWindow Core<InputWindow>::~InputWindowCore()19 InputWindowPlatform<InputWindow>::~InputWindowPlatform() 20 20 { 21 21 } 22 22 23 23 template <> 24 void InputWindow Core<InputWindow>::createUI()24 void InputWindowPlatform<InputWindow>::createUI() 25 25 { 26 26 using namespace gnustep; … … 40 40 41 41 template <> 42 void InputWindow Core<InputWindow>::destroy()42 void InputWindowPlatform<InputWindow>::destroy() 43 43 { 44 44 } 45 45 46 46 template <> 47 void InputWindow Core<InputWindow>::run()47 void InputWindowPlatform<InputWindow>::run() 48 48 { 49 49 createUI(); -
lang/cplusplus/i3/trunk/src/gui-cocoa/InputWindowCore.h
r27378 r30427 10 10 11 11 template <typename Child> 12 class InputWindow Core:13 public mol::GuiModule<InputWindow Core<Child> >12 class InputWindowPlatform : 13 public mol::GuiModule<InputWindowPlatform<Child> > 14 14 { 15 15 public: 16 InputWindow Core(Mediator& mediator);17 ~InputWindow Core();16 InputWindowPlatform(Mediator& mediator); 17 ~InputWindowPlatform(); 18 18 19 19 void run(); -
lang/cplusplus/i3/trunk/src/gui-gnustep/CompletionWindowCore.cpp
r20479 r30427 1 1 #include <PrecompiledHeaders.h> 2 2 #include "CompletionWindow.h" 3 #include "CompletionWindow Core.h"3 #include "CompletionWindowPlatform.h" 4 4 #include "Mediator.h" 5 5 … … 14 14 15 15 template <> 16 CompletionWindow Core<CompletionWindow>::CompletionWindowCore(Mediator& mediator): mediator(mediator)16 CompletionWindowPlatform<CompletionWindow>::CompletionWindowPlatform(Mediator& mediator): mediator(mediator) 17 17 { 18 18 } 19 19 20 20 template <> 21 CompletionWindow Core<CompletionWindow>::~CompletionWindowCore()21 CompletionWindowPlatform<CompletionWindow>::~CompletionWindowPlatform() 22 22 { 23 23 } 24 24 25 25 template <> 26 void CompletionWindow Core<CompletionWindow>::createUI()26 void CompletionWindowPlatform<CompletionWindow>::createUI() 27 27 { 28 28 } 29 29 30 30 template <> 31 void CompletionWindow Core<CompletionWindow>::run()31 void CompletionWindowPlatform<CompletionWindow>::run() 32 32 { 33 33 createUI(); -
lang/cplusplus/i3/trunk/src/gui-gnustep/CompletionWindowCore.h
r30283 r30427 13 13 14 14 template <typename Child> 15 class CompletionWindow Core:16 public mol::GuiModule<CompletionWindow Core<Child> >15 class CompletionWindowPlatform : 16 public mol::GuiModule<CompletionWindowPlatform<Child> > 17 17 { 18 18 public: 19 CompletionWindow Core(Mediator& mediator);20 ~CompletionWindow Core();19 CompletionWindowPlatform(Mediator& mediator); 20 ~CompletionWindowPlatform(); 21 21 22 22 Mediator& mediator; -
lang/cplusplus/i3/trunk/src/gui-gnustep/InputWindowCore.cpp
r30423 r30427 1 1 #include <PrecompiledHeaders.h> 2 2 #include "Mediator.h" 3 #include "InputWindow Core.h"3 #include "InputWindowPlatform.h" 4 4 #include "InputWindow.h" 5 5 … … 66 66 67 67 template <> 68 InputWindow Core<InputWindow>::InputWindowCore(Mediator& mediator) : mediator(mediator)68 InputWindowPlatform<InputWindow>::InputWindowPlatform(Mediator& mediator) : mediator(mediator) 69 69 { 70 70 } 71 71 72 72 template <> 73 InputWindow Core<InputWindow>::~InputWindowCore()73 InputWindowPlatform<InputWindow>::~InputWindowPlatform() 74 74 { 75 75 } 76 76 77 77 template <> 78 void InputWindow Core<InputWindow>::createUI()78 void InputWindowPlatform<InputWindow>::createUI() 79 79 { 80 80 [NSApplication sharedApplication]; … … 84 84 85 85 template <> 86 void InputWindow Core<InputWindow>::destroy()86 void InputWindowPlatform<InputWindow>::destroy() 87 87 { 88 88 } 89 89 90 90 template <> 91 void InputWindow Core<InputWindow>::run()91 void InputWindowPlatform<InputWindow>::run() 92 92 { 93 93 createUI(); -
lang/cplusplus/i3/trunk/src/gui-gnustep/InputWindowCore.h
r20479 r30427 9 9 10 10 template <typename Child> 11 class InputWindow Core:12 public mol::GuiModule<InputWindow Core<Child> >11 class InputWindowPlatform : 12 public mol::GuiModule<InputWindowPlatform<Child> > 13 13 { 14 14 public: 15 InputWindow Core(Mediator& mediator);16 ~InputWindow Core();15 InputWindowPlatform(Mediator& mediator); 16 ~InputWindowPlatform(); 17 17 18 18 void run(); -
lang/cplusplus/i3/trunk/src/gui-windows/CompletionWindowCore.cpp
r18130 r30427 1 1 #include <PrecompiledHeaders.h> 2 2 #include "CompletionWindow.h" 3 #include "CompletionWindow Core.h"3 #include "CompletionWindowPlatform.h" 4 4 #include "Mediator.h" 5 5 … … 14 14 15 15 template <> 16 CompletionWindow Core<CompletionWindow>::CompletionWindowCore(Mediator& mediator): mediator(mediator)16 CompletionWindowPlatform<CompletionWindow>::CompletionWindowPlatform(Mediator& mediator): mediator(mediator) 17 17 { 18 18 } 19 19 20 20 template <> 21 CompletionWindow Core<CompletionWindow>::~CompletionWindowCore()21 CompletionWindowPlatform<CompletionWindow>::~CompletionWindowPlatform() 22 22 { 23 23 } 24 24 25 25 template <> 26 void CompletionWindow Core<CompletionWindow>::createUI()26 void CompletionWindowPlatform<CompletionWindow>::createUI() 27 27 { 28 28 } 29 29 30 30 template <> 31 void CompletionWindow Core<CompletionWindow>::run()31 void CompletionWindowPlatform<CompletionWindow>::run() 32 32 { 33 33 createUI(); -
lang/cplusplus/i3/trunk/src/gui-windows/CompletionWindowCore.h
r26757 r30427 13 13 14 14 template <typename Child> 15 class CompletionWindow Core:16 public mol::GuiModule<CompletionWindow Core<Child> >15 class CompletionWindowPlatform : 16 public mol::GuiModule<CompletionWindowPlatform<Child> > 17 17 { 18 18 public: 19 CompletionWindow Core(Mediator& mediator);20 ~CompletionWindow Core();19 CompletionWindowPlatform(Mediator& mediator); 20 ~CompletionWindowPlatform(); 21 21 22 22 Mediator& mediator; -
lang/cplusplus/i3/trunk/src/gui-windows/InputWindowCore.cpp
r29658 r30427 1 1 #include <PrecompiledHeaders.h> 2 2 #include "Mediator.h" 3 #include "InputWindow Core.h"3 #include "InputWindowPlatform.h" 4 4 #include "InputWindow.h" 5 5 #include <commctrl.h> … … 98 98 99 99 template <> 100 InputWindow Core<InputWindow>::InputWindowCore(Mediator& mediator) :100 InputWindowPlatform<InputWindow>::InputWindowPlatform(Mediator& mediator) : 101 101 mediator(mediator), 102 102 hSharedEdit(NULL), … … 108 108 109 109 template <> 110 UINT InputWindow Core<InputWindow>::OnNCHitTest(HWND hwnd, int x, int y)110 UINT InputWindowPlatform<InputWindow>::OnNCHitTest(HWND hwnd, int x, int y) 111 111 { 112 112 return HTCAPTION; … … 115 115 116 116 template <> 117 void InputWindow Core<InputWindow>::OnLButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags)118 { 119 SetMsgHandled(false); 120 } 121 122 template <> 123 void InputWindow Core<InputWindow>::OnLButtonUp(HWND hwnd, int x, int y, UINT keyFlags)117 void InputWindowPlatform<InputWindow>::OnLButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags) 118 { 119 SetMsgHandled(false); 120 } 121 122 template <> 123 void InputWindowPlatform<InputWindow>::OnLButtonUp(HWND hwnd, int x, int y, UINT keyFlags) 124 124 { 125 125 SetFocus(hEdit); … … 128 128 129 129 template <> 130 void InputWindow Core<InputWindow>::OnActivate(HWND hwnd, UINT state, HWND hwndActDeact, BOOL fMinimized)130 void InputWindowPlatform<InputWindow>::OnActivate(HWND hwnd, UINT state, HWND hwndActDeact, BOOL fMinimized) 131 131 { 132 132 if (state == WA_INACTIVE) { … … 138 138 139 139 template <> 140 void InputWindow Core<InputWindow>::OnActivateApp(HWND hwnd, BOOL fActivate, DWORD dwThreadId)141 { 142 SetMsgHandled(false); 143 } 144 145 146 template <> 147 void InputWindow Core<InputWindow>::OnMouseMove(HWND hwnd, int x, int y, UINT keyFlags)148 { 149 SetMsgHandled(false); 150 } 151 152 template <> 153 InputWindow Core<InputWindow>::~InputWindowCore()140 void InputWindowPlatform<InputWindow>::OnActivateApp(HWND hwnd, BOOL fActivate, DWORD dwThreadId) 141 { 142 SetMsgHandled(false); 143 } 144 145 146 template <> 147 void InputWindowPlatform<InputWindow>::OnMouseMove(HWND hwnd, int x, int y, UINT keyFlags) 148 { 149 SetMsgHandled(false); 150 } 151 152 template <> 153 InputWindowPlatform<InputWindow>::~InputWindowPlatform() 154 154 { 155 155 using namespace std; … … 163 163 164 164 template <> 165 void InputWindow Core<InputWindow>::OnClose(HWND hwnd)165 void InputWindowPlatform<InputWindow>::OnClose(HWND hwnd) 166 166 { 167 167 if (hEdit && IsWindow(hEdit)) { … … 176 176 177 177 template <> 178 void InputWindow Core<InputWindow>::OnDestroy(HWND hwnd)178 void InputWindowPlatform<InputWindow>::OnDestroy(HWND hwnd) 179 179 { 180 180 if (IsWindow(hEdit)) { … … 187 187 188 188 template <> 189 void InputWindow Core<InputWindow>::OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify)189 void InputWindowPlatform<InputWindow>::OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify) 190 190 { 191 191 if (hwndCtl == hEdit) … … 206 206 207 207 template <> 208 void InputWindow Core<InputWindow>::OnKeyDown(HWND hwnd, UINT vk, BOOL fDown, int cRepeat, UINT flags)208 void InputWindowPlatform<InputWindow>::OnKeyDown(HWND hwnd, UINT vk, BOOL fDown, int cRepeat, UINT flags) 209 209 { 210 210 if (vk == VK_ESCAPE) { … … 214 214 215 215 template <> 216 void InputWindow Core<InputWindow>::OnNotify(HWND hwnd, int idCtrl, LPNMHDR pnmh) {216 void InputWindowPlatform<InputWindow>::OnNotify(HWND hwnd, int idCtrl, LPNMHDR pnmh) { 217 217 if (pnmh->hwndFrom != hEdit) { 218 218 SetMsgHandled(false); … … 243 243 244 244 template <> 245 void InputWindow Core<InputWindow>::OnPaint(HWND hwnd)245 void InputWindowPlatform<InputWindow>::OnPaint(HWND hwnd) 246 246 { 247 247 PAINTSTRUCT ps = {}; … … 267 267 268 268 template <> 269 void InputWindow Core<InputWindow>::createUI()269 void InputWindowPlatform<InputWindow>::createUI() 270 270 { 271 271 if (getWindow()) { … … 387 387 388 388 template <> 389 void InputWindow Core<InputWindow>::run()389 void InputWindowPlatform<InputWindow>::run() 390 390 { 391 391 createUI(); -
lang/cplusplus/i3/trunk/src/gui-windows/InputWindowCore.h
r27636 r30427 11 11 12 12 template <typename Child = InputWindow> 13 class InputWindow Core:14 public mol::GuiModule<InputWindow Core<Child> >13 class InputWindowPlatform : 14 public mol::GuiModule<InputWindowPlatform<Child> > 15 15 { 16 16 public: … … 19 19 return *static_cast<Child*>(this); 20 20 } 21 InputWindow Core(Mediator& mediator);22 ~InputWindow Core();21 InputWindowPlatform(Mediator& mediator); 22 ~InputWindowPlatform(); 23 23 24 24 void run();
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)