Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends

wxsItemEditor Class Reference

This is root class for editing wxWidgets window resources. More...

#include <wxsitemeditor.h>

Inheritance diagram for wxsItemEditor:
Inheritance graph
[legend]
Collaboration diagram for wxsItemEditor:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void Activate ()
 Activate this editor.
virtual bool CanSelectAll () const
virtual void ClearHistory ()
virtual bool Close ()
 Close this editor.
virtual void DisplayContextMenu (const wxPoint &position, ModuleType type=mtUnknown)
 Display context menu.
virtual const wxString & GetFilename () const
 Get the editor's filename (if applicable).
wxsResourceGetResource ()
 Getting current resouce.
virtual const wxString & GetShortName () const
 Returns the editor's short name.
virtual const wxString & GetTitle ()
 The editor's title.
virtual void GotoLine (int line, bool centerOnScreen=true)
virtual void GotoNextBookmark ()
virtual void GotoNextBreakpoint ()
virtual void GotoNextChanged ()
virtual void GotoPreviousBookmark ()
virtual void GotoPreviousBreakpoint ()
virtual void GotoPreviousChanged ()
virtual bool HasBookmark (int line) const
virtual bool HasBreakpoint (int line) const
virtual bool IsBuiltinEditor () const
 Is this a built-in editor?
virtual bool IsContextMenuOpened () const
virtual bool QueryClose ()
 Can this be closed (destroyed)?
virtual bool Save ()
 Saving resource.
virtual bool SaveAs ()
 Save editor contents under a different filename.
virtual void SelectAll ()
virtual void SetChangeCollection (bool collectChange)
virtual void SetDebugLine (int line)
 Mark the debugger's active line.
virtual void SetErrorLine (int line)
 Mark line as error.
virtual void SetFilename (const wxString &filename)
 Sets the editor's filename.
virtual void SetModified (bool modified=true)
 Set the modification status.
virtual void SetTitle (const wxString &newTitle)
 Set the editor's title.
virtual bool ThereAreOthers () const
 Are there other editors besides this?
virtual void ToggleBookmark (int line=-1)
virtual void ToggleBreakpoint (int line=-1, bool notifyDebugger=true)
virtual bool VisibleToTree () const
 wxsItemEditor (wxWindow *parent, wxsItemRes *ItemRes)
 Ctor.
virtual ~wxsItemEditor ()
 Dctor.

Static Public Member Functions

static void ConfigChanged ()
 Notifying that configuration has been changed.

Protected Member Functions

virtual void AddToContextMenu (wxMenu *popup, ModuleType type, bool pluginsdone)
virtual bool CanPaste () const
 Checking if we can paste.
virtual bool CanRedo () const
 Ckecing if can Redo.
virtual bool CanUndo () const
 Checking if can Undo.
virtual void Copy ()
 Copying.
virtual wxMenu * CreateContextSubMenu (int id)
virtual wxString CreateUniqueFilename ()
virtual void Cut ()
 Cutting.
virtual bool GetModified () const
 Returns true if resource is modified, false otherwise.
virtual bool HasSelection () const
 Checking if we can cut.
virtual void InitFilename (const wxString &filename)
virtual bool IsReadOnly () const
 testing if current resource is read-only
virtual void OnAfterBuildContextMenu (ModuleType type)
virtual bool OnBeforeBuildContextMenu (const wxPoint &position, ModuleType type)
virtual void Paste ()
 Pasting.
virtual void Redo ()
 Redoing.
virtual void Undo ()
 Undoing.

Protected Attributes

wxString m_Filename
bool m_IsBuiltinEditor
EditorBaseInternalDatam_pData
 Use this to add new vars/functions w/out breaking the ABI.
wxString m_Shortname

Private Member Functions

void BuildInsTypeIcon (wxBitmapButton *Btn, const wxImage &Original, int ButtonType)
 Building icon for one button.
void BuildPalette (wxNotebook *Palette)
 Building palette.
const wxString & GetHdrFileName ()
wxsItemResGetItemRes ()
wxsItemGetReferenceItem (int &InsertionType)
 Getting item which will be used as reference item when adding new items.
const wxString & GetSrcFileName ()
const wxString & GetWxsFileName ()
const wxString & GetXrcFileName ()
void InitializeResourceData ()
void InitializeVisualStuff ()
void InsertRequest (const wxString &Name)
 Function inserting new item.
void OnButton (wxCommandEvent &event)
void OnDelete (wxCommandEvent &event)
void OnInsAfter (wxCommandEvent &event)
void OnInsBefore (wxCommandEvent &event)
void OnInsInto (wxCommandEvent &event)
void OnInsPoint (wxCommandEvent &event)
void OnKeyDown (wxKeyEvent &event)
void OnMouseClick (wxMouseEvent &event)
void OnPopup (wxCommandEvent &event)
void OnPreview (wxCommandEvent &event)
void OnQuickProps (wxCommandEvent &event)
void RebuildIcons ()
 Rebuilding all icons.
void RebuildInsTypeIcons ()
 Rebuilding pictures on insertion type buttons.
void RebuildPreview ()
 Rebuilding preview (and updating selection inside preview)
void RebuildQuickProps (wxsItem *Selection)
 Refreshing content of Quick Props panel.
void RebuildQuickPropsIcon ()
 Rebuilding picture on Quick Props button.
void SetInsertionType (int Type)
 Setting new insertion type.
void SetInsertionTypeMask (int Mask)
 Setting mask for insertion type.
void ShowPopup (wxsItem *Item, wxMenu *Menu)
 Showing popup menu.
void StartInsertPointSequence (const wxsItemInfo *Info)
 Starting sequence of adding new item when inserting by pointing with mouse.
void ToggleQuickPropsPanel (bool Open)
 Opening or closiung Quick Props panel.
void UpdateModified ()
 Updating editor's title applying asterix before name of file when modified.
void UpdateSelection ()
 Updating things related to current selection.
 WX_DECLARE_HASH_SET (wxsItemEditor *, wxPointerHash, wxPointerEqual, WindowSet)

Static Private Member Functions

static void InitializeImages ()
 Initializing editor images.
static void RefreshContents ()
 Causing editor's content to refresh.
static void ReloadImages ()
 Reloading images in all editors.

Private Attributes

wxsItemEditorContentm_Content
 Window with content area.
wxsItemResDatam_Data
 Data managment object.
wxBitmapButton * m_DelBtn
wxBoxSizer * m_HorizSizer
 Horizontal sizer managing items below palette.
wxBitmapButton * m_InsAfterBtn
wxBitmapButton * m_InsBeforeBtn
wxBitmapButton * m_InsIntoBtn
wxBitmapButton * m_InsPointBtn
int m_InsType
 Current insertion type.
int m_InsTypeMask
 Current insertion type mask.
wxBoxSizer * m_OpsSizer
 Sizer for operations pane.
wxsItemm_PopupCaller
 Item which requested popup to be shown.
wxPanel * m_PreviewBackground
 Background panel used as background for peview.
wxBitmapButton * m_PreviewBtn
wxScrolledWindow * m_QPArea
 Scrolled window containing all QuickProps sturr.
wxBoxSizer * m_QPSizer
 Sizer for quick properties.
wxBitmapButton * m_QuickPanelBtn
bool m_QuickPropsOpen
 Set to true if quick properties panel is opened.
wxsToolSpacem_ToolSpace
 Space for tools in resource.
wxWindow * m_TopPreview
 Top window of preview.
wxBoxSizer * m_VertSizer
 Root sizer of this editor.
wxNotebook * m_WidgetsSet
 Notebook with all widgets inside.

Static Private Attributes

static const int itAfter = 0x04
static const int itBefore = 0x02
static const int itInto = 0x08
static const int itPoint = 0x01
static WindowSet m_AllEditors
static wxImage m_DelImg
static bool m_ImagesLoaded = false
static wxImage m_InsAfterImg
static wxImage m_InsBeforeImg
static wxImage m_InsIntoImg
static wxImage m_InsPointImg
static wxImage m_PreviewImg
static wxImage m_QuickPropsImgClose
static wxImage m_QuickPropsImgOpen
static wxImage m_SelectedImg

Friends

class wxsItem
class wxsItemEditorContent
class wxsItemResData

Detailed Description

This is root class for editing wxWidgets window resources.

Definition at line 43 of file wxsitemeditor.h.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index