- Timestamp:
- 11/03/08 19:07:16 (11 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Halite.sln
r582 r617 18 18 EndProjectSection 19 19 EndProject 20 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{2DE93320-DEB5-4CB1-AB8C-17875DFF3184}" 21 ProjectSection(SolutionItems) = preProject 22 Halite.vsmdi = Halite.vsmdi 23 LocalTestRun.testrunconfig = LocalTestRun.testrunconfig 24 EndProjectSection 25 EndProject 20 26 Global 27 GlobalSection(TestCaseManagementSettings) = postSolution 28 CategoryFile = Halite.vsmdi 29 EndGlobalSection 21 30 GlobalSection(SolutionConfigurationPlatforms) = preSolution 22 31 Debug|Mixed Platforms = Debug|Mixed Platforms -
trunk/src/HaliteListView.cpp
r616 r617 48 48 AddColumn(names[i].c_str(), i, visible[i], widths[i]); 49 49 } 50 51 52 53 50 54 51 SafeLoadFromIni(); … … 335 332 } 336 333 334 LRESULT HaliteListViewCtrl::OnSetManaged(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled) 335 { 336 foreach(const list_value_type val, std::make_pair(is_selected_begin(), is_selected_end())) 337 { 338 hal::bittorrent().get(std::wstring(winstl::c_str_ptr(val))).managed = true; 339 } 340 DeleteAllItems(); 341 halWindow_.issueUiUpdate(); 342 343 return 0; 344 } 345 346 LRESULT HaliteListViewCtrl::OnSetUnmanaged(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled) 347 { 348 foreach(const list_value_type val, std::make_pair(is_selected_begin(), is_selected_end())) 349 { 350 hal::bittorrent().get(std::wstring(winstl::c_str_ptr(val))).managed = false; 351 } 352 DeleteAllItems(); 353 halWindow_.issueUiUpdate(); 354 355 return 0; 356 } 357 358 LRESULT HaliteListViewCtrl::OnAdjustQueuePosition(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled) 359 { 360 foreach(const list_value_type val, std::make_pair(is_selected_begin(), is_selected_end())) 361 { 362 hal::bit::torrent t = hal::bittorrent().get(std::wstring(winstl::c_str_ptr(val))); 363 364 switch (wID) 365 { 366 case HAL_QUEUE_MOVE_TOP: 367 t.adjust_queue_position(hal::bit::move_to_top); 368 break; 369 case HAL_QUEUE_MOVE_UP: 370 t.adjust_queue_position(hal::bit::move_up); 371 break; 372 case HAL_QUEUE_MOVE_DOWN: 373 t.adjust_queue_position(hal::bit::move_down); 374 break; 375 case HAL_QUEUE_MOVE_BOTTOM: 376 t.adjust_queue_position(hal::bit::move_to_bottom); 377 break; 378 }; 379 } 380 381 return 0; 382 } 383 337 384 LRESULT HaliteListViewCtrl::OnQueueView(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled) 338 385 { … … 389 436 int ret = EnableGroupView(false); 390 437 } 438 halWindow_.issueUiUpdate(); 391 439 392 440 MENUITEMINFO minfo = {sizeof(MENUITEMINFO)}; -
trunk/src/HaliteListView.hpp
r616 r617 393 393 COMMAND_ID_HANDLER(ID_LVM_EDIT_FOLDERS, OnEditFolders) 394 394 395 COMMAND_ID_HANDLER(HAL_AUTO_MANAGED, OnSetManaged) 396 COMMAND_ID_HANDLER(HAL_UNMANAGED, OnSetUnmanaged) 397 COMMAND_RANGE_HANDLER(HAL_QUEUE_MOVE_TOP, HAL_QUEUE_MOVE_BOTTOM, OnAdjustQueuePosition) 395 398 COMMAND_ID_HANDLER(HAL_LVM_QUEUE_VIEW, OnQueueView) 396 399 … … 417 420 LRESULT OnDownloadFolder(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); 418 421 LRESULT OnEditFolders(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); 422 423 LRESULT OnSetManaged(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); 424 LRESULT OnSetUnmanaged(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); 425 LRESULT OnAdjustQueuePosition(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); 419 426 LRESULT OnQueueView(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled); 420 427 -
trunk/src/halTorrent.hpp
r616 r617 792 792 return torrent(); 793 793 } 794 795 torrent get_wstr(const std::wstring& filename); 794 796 795 797 bool listen_on(std::pair<int, int> const& portRange); … … 886 888 bit(); 887 889 boost::scoped_ptr<bit_impl> pimpl; 888 889 torrent get_wstr(const std::wstring& filename);890 890 891 891 void remove_torrent_wstr(const std::wstring& filename);
Note: See TracChangeset
for help on using the changeset viewer.