Files
wxWidgets/utils/dialoged/src/winstyle.h
Gilles Depeyrot ab7ce33c56 disable use of #pragma interface under Mac OS X
GNU compiler included with Mac OS X 10.2 (Jaguar) as well as August Developer
Tools update contain a bug concerning #pragma interface handling that can only
be worked around by not using them (and they are not necessary anyways)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17039 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-07 12:28:46 +00:00

78 lines
1.9 KiB
C++

/////////////////////////////////////////////////////////////////////////////
// Name: winstyle.h
// Purpose: Window styles
// Author: Julian Smart
// Modified by:
// Created: 04/01/98
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _DE_WINSTYLE_H_
#define _DE_WINSTYLE_H_
#if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface "winstyle.h"
#endif
#include "wx/wx.h"
/*
* A class for storing/generating window styles.
*/
class wxWindowStyleClass;
class wxWindowStylePair
{
friend class wxWindowStyleClass;
public:
char* m_styleName;
long m_styleId;
};
class wxWindowStyleTable: public wxObject
{
public:
wxWindowStyleTable();
~wxWindowStyleTable();
// Operations
void ClearTable();
void AddStyles(const wxString& className, int n, wxWindowStylePair *styles);
wxWindowStyleClass* FindClass(const wxString& className) ;
bool GenerateStyleStrings(const wxString& className, long windowStyle, char *buf);
// Initialise with all possible styles
void Init();
// Members
protected:
wxList m_classes; // A list of wxWindowStyleClass objects, indexed by class name
};
/*
* Classes for storing all the window style identifiers associated with a particular class
*/
class wxWindowStyleClass: public wxObject
{
public:
wxWindowStyleClass(int n, wxWindowStylePair *styles);
~wxWindowStyleClass();
// Operations
void GenerateStyleStrings(long windowStyle, char *buf);
bool GenerateStyle(char *buf, long windowStyle, long flag, const wxString& strStyle);
// Members
protected:
wxWindowStylePair* m_styles; // An array of wxWindowStylePair objects
int m_styleCount;
};
#endif
// _DE_WINSTYLE_H_