wxWidgets/samples/stc/defsext.h
Vadim Zeitlin 2fb4e3cb0a Add simple tests for Scintilla annotations to the stc sample.
Show how add, remove and clear annotations and also how to update the text
width when long annotations are added.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-02-05 20:46:16 +00:00

117 lines
2.9 KiB
C

/////////////////////////////////////////////////////////////////////////////
// Name: defsext.h extensions
// Purpose: STC test declarations
// Maintainer: Wyo
// Created: 2003-09-01
// RCS-ID: $Id$
// Copyright: (c) wxGuide
// Licence: wxWindows licence
//////////////////////////////////////////////////////////////////////////////
#ifndef _WX_DEFSEXT_H_
#define _WX_DEFSEXT_H_
//----------------------------------------------------------------------------
// headers
//----------------------------------------------------------------------------
//! wxWidgets headers
#include "wx/print.h" // printing support
#include "wx/printdlg.h" // printing dialog
//============================================================================
// declarations
//============================================================================
#define DEFAULT_LANGUAGE "<default>"
#define PAGE_COMMON _("Common")
#define PAGE_LANGUAGES _("Languages")
#define PAGE_STYLE_TYPES _("Style types")
#define STYLE_TYPES_COUNT 32
// ----------------------------------------------------------------------------
// standard IDs
// ----------------------------------------------------------------------------
enum {
// menu IDs
myID_PROPERTIES = wxID_HIGHEST,
myID_EDIT_FIRST,
myID_INDENTINC = myID_EDIT_FIRST,
myID_INDENTRED,
myID_FINDNEXT,
myID_REPLACE,
myID_REPLACENEXT,
myID_BRACEMATCH,
myID_GOTO,
myID_PAGEACTIVE,
myID_DISPLAYEOL,
myID_INDENTGUIDE,
myID_LINENUMBER,
myID_LONGLINEON,
myID_WHITESPACE,
myID_FOLDTOGGLE,
myID_OVERTYPE,
myID_READONLY,
myID_WRAPMODEON,
myID_ANNOTATION_ADD,
myID_ANNOTATION_REMOVE,
myID_ANNOTATION_CLEAR,
myID_ANNOTATION_STYLE_HIDDEN,
myID_ANNOTATION_STYLE_STANDARD,
myID_ANNOTATION_STYLE_BOXED,
myID_CHANGECASE,
myID_CHANGELOWER,
myID_CHANGEUPPER,
myID_HILIGHTLANG,
myID_HILIGHTFIRST,
myID_HILIGHTLAST = myID_HILIGHTFIRST + 99,
myID_CONVERTEOL,
myID_CONVERTCR,
myID_CONVERTCRLF,
myID_CONVERTLF,
myID_USECHARSET,
myID_CHARSETANSI,
myID_CHARSETMAC,
myID_PAGEPREV,
myID_PAGENEXT,
myID_SELECTLINE,
myID_EDIT_LAST = myID_SELECTLINE,
myID_WINDOW_MINIMAL,
// other IDs
myID_STATUSBAR,
myID_TITLEBAR,
myID_ABOUTTIMER,
myID_UPDATETIMER,
// dialog find IDs
myID_DLG_FIND_TEXT,
// preferences IDs
myID_PREFS_LANGUAGE,
myID_PREFS_STYLETYPE,
myID_PREFS_KEYWORDS,
};
// ----------------------------------------------------------------------------
// global items
// ----------------------------------------------------------------------------
//! global application name
extern wxString *g_appname;
#if wxUSE_PRINTING_ARCHITECTURE
//! global print data, to remember settings during the session
extern wxPrintData *g_printData;
extern wxPageSetupDialogData *g_pageSetupData;
#endif // wxUSE_PRINTING_ARCHITECTURE
#endif // _WX_DEFSEXT_H_