~ubuntu-branches/ubuntu/gutsy/audacity/gutsy-backports

« back to all changes in this revision

Viewing changes to src/Theme.h

  • Committer: Bazaar Package Importer
  • Author(s): John Dong
  • Date: 2008-02-18 21:58:19 UTC
  • mfrom: (13.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080218215819-tmbcf1rx238r8gdv
Tags: 1.3.4-1.1ubuntu1~gutsy1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
#ifndef __AUDACITY_THEME__
15
15
#define __AUDACITY_THEME__
16
16
 
 
17
#include "../Audacity.h"
17
18
#include <wx/defs.h>
18
19
#include <wx/dynarray.h>
19
20
#include <wx/bitmap.h>
45
46
   resFlagInternal = 0x08  // For image manipulation.  Don't save or load.
46
47
};
47
48
 
 
49
//WX_DECLARE_EXPORTED_OBJARRAY(wxImage,  ArrayOfImages);
 
50
//WX_DECLARE_EXPORTED_OBJARRAY(wxBitmap, ArrayOfBitmaps);
 
51
//WX_DECLARE_EXPORTED_OBJARRAY(wxColour, ArrayOfColours);
 
52
 
48
53
WX_DECLARE_OBJARRAY(wxImage,  ArrayOfImages);
49
54
WX_DECLARE_OBJARRAY(wxBitmap, ArrayOfBitmaps);
50
55
WX_DECLARE_OBJARRAY(wxColour, ArrayOfColours);
51
56
 
52
 
class FlowPacker 
 
57
class AUDACITY_DLL_API FlowPacker 
53
58
{
54
59
public:
55
60
   FlowPacker(){;};
79
84
 
80
85
};
81
86
 
82
 
class ThemeBase
 
87
class AUDACITY_DLL_API ThemeBase
83
88
{
84
89
public:
85
90
   ThemeBase(void);
114
119
 
115
120
   void SetBrushColour( wxBrush & Brush, int iIndex );
116
121
   void SetPenColour(   wxPen & Pen, int iIndex );
 
122
   void SetFlags( int flags ){ mFlow.mFlags = flags;};
117
123
 
118
124
   // Utility function that combines a bitmap and a mask, both in XPM format.
119
125
   wxImage MaskedImage( char const ** pXpm, char const ** pMask );
132
138
};
133
139
 
134
140
 
135
 
class Theme : public ThemeBase
 
141
class AUDACITY_DLL_API Theme : public ThemeBase
136
142
{
137
143
public:
138
144
   Theme(void);
146
152
   bool mbInitialised;
147
153
};
148
154
 
149
 
extern Theme theTheme;
 
155
extern AUDACITY_DLL_API Theme theTheme;
150
156
 
151
157
#endif // __AUDACITY_THEME__