~ubuntu-branches/ubuntu/hardy/codeblocks/hardy-backports

« back to all changes in this revision

Viewing changes to src/plugins/contrib/codesnippets/snippetsimages.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 Code Snippets, a plugin for Code::Blocks
 
3
        Copyright (C) 2006 Arto Jonsson
 
4
        Copyright (C) 2007 Pecan Heber
 
5
 
 
6
        This program is free software; you can redistribute it and/or
 
7
        modify it under the terms of the GNU General Public License
 
8
        as published by the Free Software Foundation; either version 2
 
9
        of the License, or (at your option) any later version.
 
10
 
 
11
        This program is distributed in the hope that it will be useful,
 
12
        but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
        GNU General Public License for more details.
 
15
 
 
16
        You should have received a copy of the GNU General Public License
 
17
        along with this program; if not, write to the Free Software
 
18
        Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
19
*/
 
20
// RCS-ID: $Id: snippetsimages.h 106 2007-12-01 18:31:55Z Pecan $
 
21
#ifndef SNIPIMAGES_H
 
22
#define SNIPIMAGES_H
 
23
 
 
24
#include <wx/imaglist.h>
 
25
 
 
26
#if not defined(SNIPPETS_TREE_IMAGE_COUNT)
 
27
    #define SNIPPETS_TREE_IMAGE_COUNT 6
 
28
    #define TREE_IMAGE_ALL_SNIPPETS 0
 
29
    #define TREE_IMAGE_CATEGORY     1
 
30
    #define TREE_IMAGE_SNIPPET      2
 
31
    #define TREE_IMAGE_SNIPPET_TEXT 3
 
32
    #define TREE_IMAGE_SNIPPET_FILE 4
 
33
    #define TREE_IMAGE_SNIPPET_URL  5
 
34
#endif
 
35
 
 
36
class SnipImages
 
37
{
 
38
    public:
 
39
        SnipImages();
 
40
       ~SnipImages();
 
41
       void RegisterImage( char** xpm_data );
 
42
       wxImageList* GetSnipImageList(){ return m_pSnippetsTreeImageList;}
 
43
       wxIcon       GetSnipListIcon(int index);
 
44
 
 
45
    protected:
 
46
 
 
47
    private:
 
48
        wxImageList* m_pSnippetsTreeImageList;
 
49
 
 
50
};
 
51
 
 
52
#endif // SNIPIMAGES_H