~ubuntu-branches/ubuntu/oneiric/codeblocks/oneiric

« back to all changes in this revision

Viewing changes to src/plugins/contrib/wxSmith/wxsresourcetreeitemdata.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Casadevall
  • Date: 2008-07-17 04:39:23 UTC
  • Revision ID: james.westby@ubuntu.com-20080717043923-gmsy5cwkdjswghkm
Tags: upstream-8.02
ImportĀ upstreamĀ versionĀ 8.02

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
* This file is part of wxSmith plugin for Code::Blocks Studio
 
3
* Copyright (C) 2006-2007  Bartlomiej Swiecki
 
4
*
 
5
* wxSmith is free software; you can redistribute it and/or modify
 
6
* it under the terms of the GNU General Public License as published by
 
7
* the Free Software Foundation; either version 3 of the License, or
 
8
* (at your option) any later version.
 
9
*
 
10
* wxSmith is distributed in the hope that it will be useful,
 
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 
13
* GNU General Public License for more details.
 
14
*
 
15
* You should have received a copy of the GNU General Public License
 
16
* along with wxSmith. If not, see <http://www.gnu.org/licenses/>.
 
17
*
 
18
* $Revision: 4850 $
 
19
* $Id: wxsresourcetreeitemdata.h 4850 2008-01-29 21:45:49Z byo $
 
20
* $HeadURL: svn://svn.berlios.de/codeblocks/tags/8.02/src/plugins/contrib/wxSmith/wxsresourcetreeitemdata.h $
 
21
*/
 
22
 
 
23
#ifndef WXSRESOURCETREEITEMDATA_H
 
24
#define WXSRESOURCETREEITEMDATA_H
 
25
 
 
26
#include <wx/treectrl.h>
 
27
#include <wx/menu.h>
 
28
 
 
29
/** \brief Data used by resource tree */
 
30
class wxsResourceTreeItemData: public wxTreeItemData
 
31
{
 
32
    public:
 
33
 
 
34
        /** \brief Ctor */
 
35
        wxsResourceTreeItemData();
 
36
 
 
37
        /** \brief Dctor */
 
38
        virtual ~wxsResourceTreeItemData();
 
39
 
 
40
    protected:
 
41
 
 
42
        /** \brief Called when corresponding tree item has been selected */
 
43
        virtual void OnSelect() {}
 
44
 
 
45
        /** \brief Called when right click was made on item */
 
46
        virtual void OnRightClick() {}
 
47
 
 
48
        /** \brief Called when popup menu generated event with given id
 
49
         *  \return true when event was processed, false otherwise
 
50
         */
 
51
        virtual bool OnPopup(long Id) { return false; }
 
52
 
 
53
 
 
54
        /** \brief Function to properly display popup menu */
 
55
        void PopupMenu(wxMenu* Menu);
 
56
 
 
57
    private:
 
58
 
 
59
        friend class wxsResourceTree;
 
60
};
 
61
 
 
62
#endif