Changeset 34909 for lang/objective-cplusplus
- Timestamp:
- 08/19/09 08:00:06 (4 years ago)
- Location:
- lang/objective-cplusplus/i3/trunk/src
- Files:
-
- 9 modified
-
CompletionWindow.cpp (modified) (1 diff)
-
CompletionWindow.h (modified) (1 diff)
-
InputWindow.cpp (modified) (2 diffs)
-
InputWindow.h (modified) (1 diff)
-
OutputWindow.h (modified) (1 diff)
-
gui-windows/CompletionWindowPlatform.cpp (modified) (1 diff)
-
gui-windows/CompletionWindowPlatform.h (modified) (1 diff)
-
gui-windows/InputWindowPlatform.cpp (modified) (5 diffs)
-
gui-windows/InputWindowPlatform.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/objective-cplusplus/i3/trunk/src/CompletionWindow.cpp
r34447 r34909 11 11 namespace i3 { 12 12 13 CompletionWindow::CompletionWindow(Mediator& mediator): CompletionWindowPlatform<CompletionWindow>(mediator) {13 CompletionWindow::CompletionWindow(Mediator& mediator): mediator(mediator) { 14 14 } 15 15 -
lang/objective-cplusplus/i3/trunk/src/CompletionWindow.h
r34863 r34909 13 13 public CompletionWindowPlatform<CompletionWindow> { 14 14 public: 15 Mediator& mediator; 16 15 17 CompletionWindow(Mediator& mediator); 16 18 ~CompletionWindow(); -
lang/objective-cplusplus/i3/trunk/src/InputWindow.cpp
r34863 r34909 6 6 using namespace mil; 7 7 8 InputWindow::InputWindow(Mediator& mediator): InputWindowPlatform<InputWindow>(mediator) {8 InputWindow::InputWindow(Mediator& mediator): mediator(mediator) { 9 9 local_input_cache.reserve(2345); 10 10 input_cache.write(local_input_cache); … … 14 14 } 15 15 16 void InputWindow::run() {17 createGui();18 loop();19 20 ExitEvent e;21 mediator.getCompletionWindow().post(e, *this);22 mediator.getOutputWindow().post(e, *this);23 mediator.getDelegate().post(e, *this);24 }25 16 26 17 } -
lang/objective-cplusplus/i3/trunk/src/InputWindow.h
r34863 r34909 12 12 class InputWindow : public InputWindowPlatform<InputWindow> { 13 13 public: 14 Mediator& mediator; 15 14 16 InputWindow(Mediator& mediator); 15 17 ~InputWindow(); -
lang/objective-cplusplus/i3/trunk/src/OutputWindow.h
r34863 r34909 13 13 class OutputWindow : public mil::GuiModule<OutputWindow> { 14 14 public: 15 Mediator& mediator; 16 15 17 OutputWindow(Mediator& mediator); 16 18 ~OutputWindow(); -
lang/objective-cplusplus/i3/trunk/src/gui-windows/CompletionWindowPlatform.cpp
r34447 r34909 13 13 14 14 template <> 15 CompletionWindowPlatform<CompletionWindow>::CompletionWindowPlatform( Mediator& mediator): mediator(mediator) {15 CompletionWindowPlatform<CompletionWindow>::CompletionWindowPlatform() { 16 16 } 17 17 -
lang/objective-cplusplus/i3/trunk/src/gui-windows/CompletionWindowPlatform.h
r34447 r34909 15 15 public mil::GuiModule<CompletionWindowPlatform<Child> > { 16 16 public: 17 CompletionWindowPlatform( Mediator& mediator);17 CompletionWindowPlatform(); 18 18 ~CompletionWindowPlatform(); 19 19 20 Mediator& mediator;21 20 void run(); 22 21 void createUI(); -
lang/objective-cplusplus/i3/trunk/src/gui-windows/InputWindowPlatform.cpp
r34863 r34909 81 81 ///int result = GetWindowText(e.hEdit, data, _countof(data)); 82 82 std::vector<TCHAR> data; 83 mediator.getInputWindow().input_cache.read(data);83 getChild().mediator.getInputWindow().input_cache.read(data); 84 84 85 85 if (data[0]) { … … 94 94 95 95 BOOST_STATIC_ASSERT(sizeof(HICON) == sizeof(DWORD_PTR)); 96 HICON old = mediator.getInputWindow().hSharedIcon.exchange(new_icon);96 HICON old = getChild().mediator.getInputWindow().hSharedIcon.exchange(new_icon); 97 97 if (old) { 98 98 DestroyIcon(old); 99 99 } 100 HWND hWnd = mediator.getInputWindow().getWindow();100 HWND hWnd = getChild().mediator.getInputWindow().getWindow(); 101 101 RECT r = {0, 0, 20, 20}; 102 102 InvalidateRect(hWnd, &r, TRUE); … … 105 105 106 106 template <> 107 InputWindowPlatform<InputWindow>::InputWindowPlatform(Mediator& mediator) : 108 mediator(mediator), 107 InputWindowPlatform<InputWindow>::InputWindowPlatform() : 109 108 //hSharedEdit(NULL), 110 109 hSharedIcon(NULL), … … 337 336 338 337 EditChangedEvent e = {}; 339 mediator.getDelegate().post(e, *this);338 getChild().mediator.getDelegate().post(e, *this); 340 339 } 341 340 break; … … 368 367 } else if (filter->wParam == VK_RETURN) { 369 368 ExecuteEvent e; 370 mediator.getDelegate().post(e, *this);369 getChild().mediator.getDelegate().post(e, *this); 371 370 } 372 371 } -
lang/objective-cplusplus/i3/trunk/src/gui-windows/InputWindowPlatform.h
r34863 r34909 14 14 public: 15 15 MIL_CRTP_CLASS_MEMBERS; 16 InputWindowPlatform( Mediator& mediator);16 InputWindowPlatform(); 17 17 ~InputWindowPlatform(); 18 Mediator& mediator;19 18 20 19 void createGui();
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)