| 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 |
*/ |
| 19 |
|
| 20 |
#ifndef wxsSCINTILLA_H |
| 21 |
#define wxsSCINTILLA_H |
| 22 |
|
| 23 |
#include <wxswidget.h> |
| 24 |
#include <wxsitemresdata.h> |
| 25 |
#include <wxsarraystringproperty.h> |
| 26 |
#include <wxsenumproperty.h> |
| 27 |
#include <wxsboolproperty.h> |
| 28 |
#include <wxsbaseproperties.h> |
| 29 |
#include <wxspositionsizeproperty.h> |
| 30 |
#include <wxscolourproperty.h> |
| 31 |
|
| 32 |
#include <wx/wxscintilla.h> |
| 33 |
|
| 34 |
class wxsScintilla : public wxsWidget |
| 35 |
{ |
| 36 |
public: |
| 37 |
wxsScintilla(wxsItemResData* Data); |
| 38 |
|
| 39 |
protected: |
| 40 |
virtual wxObject* OnBuildPreview(wxWindow* Parent,long Flags); |
| 41 |
virtual void OnBuildCreatingCode(); |
| 42 |
virtual void OnEnumWidgetProperties(long Flags); |
| 43 |
|
| 44 |
|
| 45 |
wxSize mSize; // used to check for default size |
| 46 |
wxArrayString mText; // initial text contents |
| 47 |
wxsColourData mCaretFG, mCaretBG; // line with caret background color |
| 48 |
long mViewWS; // when to view white-space |
| 49 |
long mEOL; // type of end-of-line chars |
| 50 |
bool mBuffered; // double-buffered drawing? |
| 51 |
long mTabWidth; // size of a tab in spaces |
| 52 |
long mCase; // set letter case |
| 53 |
wxsColourData mSelFG, mSelBG; // selection are colors |
| 54 |
long mBlinkRate; // caret period |
| 55 |
bool mInsert; // insert or over-write mode |
| 56 |
long mCaretWidth; // size of the insert caret |
| 57 |
long mIndent; // indent size in pixels |
| 58 |
bool mReadOnly; // allowed to modify? |
| 59 |
bool mBSUndent; // backspace un-indents? |
| 60 |
long mWrapMode; // type of wrapping to allow |
| 61 |
long mWrapIndent; // how to indent wrapped lines |
| 62 |
wxsColourData mFoldFG, mFoldBG; // fold margin colors |
| 63 |
long mMarginLeft, mMarginRight; // lef and right wrap-margins |
| 64 |
long mGutterType1, mGutterWidth1; // far-left margin |
| 65 |
long mGutterType2, mGutterWidth2; // far-left margin |
| 66 |
long mGutterType3, mGutterWidth3; // far-left margin |
| 67 |
long mEdgeMode; // how to display right edge (margin?) |
| 68 |
wxsColourData mEdgeBG; // color of the edge |
| 69 |
long mZoom; // zoom the text |
| 70 |
long mSelMode; // selection mode |
| 71 |
long mCaretStyle; // what the caret looks like |
| 72 |
long mLexer; // language lexer to use |
| 73 |
wxArrayString mKeywords1; // set of lexer keywords |
| 74 |
wxArrayString mKeywords2; // set of lexer keywords |
| 75 |
wxsPositionSizeData mVirtualSize; |
| 76 |
}; |
| 77 |
|
| 78 |
#endif // wxsSCINTILLA_H |