~ubuntu-branches/ubuntu/precise/amule-adunanza/precise

« back to all changes in this revision

Viewing changes to src/DirectoryTreeCtrl.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-02-18 21:16:23 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100218211623-gptwe60zx1knfkmu
Tags: 2010.1+2.2.6-0ubuntu1
* New upstream release (LP: #524697)
  - Drop manpages_spelling_fixes.diff fixed by upstream
  - Drop cryptopp-reference.diff fixed by upstream
  - Bump Standards-Version no changes required
  - Update install files (amule -> amuleadunanza)
  - debian/rules: amule.xpm -> amuleadunanza.xpm
  - Add README.Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//
2
2
// This file is part of the aMule Project.
3
3
//
4
 
// Copyright (c) 2003-2008 aMule Team ( admin@amule.org / http://www.amule.org )
 
4
// Copyright (c) 2003-2009 aMule Team ( admin@amule.org / http://www.amule.org )
5
5
// Copyright (c) 2002 Robert Rostek ( tecxx@rrs.at )
6
6
//
7
7
// Any parts of this program derived from the xMule, lMule or eMule project,
42
42
 
43
43
        // get all shared directories
44
44
        void GetSharedDirectories(PathList* list);
45
 
        // set shared directories
 
45
        // set list of shared directories
46
46
        void SetSharedDirectories(PathList* list);
47
47
        
48
48
        // User made any changes to list?
49
49
        bool HasChanged;
50
50
 
51
 
private:
52
51
        // initialize control
53
52
        void Init();
54
53
 
 
54
private:
55
55
        // add a new item
56
56
        void AddChildItem(wxTreeItemId hBranch, const CPath& item);
57
57
        // add subdirectory items
64
64
        void CheckChanged(wxTreeItemId hItem, bool bChecked);
65
65
        // returns true if a subdirectory of strDir is shared
66
66
        bool HasSharedSubdirectory(const CPath& path);
 
67
        // set shared directories according to list
 
68
        void UpdateSharedDirectories();
67
69
        // when sharing a directory, make all parent directories red
68
70
        void UpdateParentItems(wxTreeItemId hChild, bool add);
69
71
 
78
80
        void OnItemActivated(wxTreeEvent& evt);
79
81
 
80
82
        PathList m_lstShared;
 
83
 
 
84
        bool m_IsInit;
81
85
        
82
86
        
83
87
        DECLARE_EVENT_TABLE()