Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
76 lines (58 sloc) 1.95 KB
* Copyright (C) 2009, Alexander Stigsen,
* This software is licensed under the Open Company License as described
* in the file license.txt, which you should have received as part of this
* distribution. The terms are also available at
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
#ifndef __STATUSBAR_H__
#define __STATUSBAR_H__
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include <wx/statusbr.h>
#include "SymbolRef.h"
#include "EditorChangeState.h"
#include <vector>
class EditorFrame;
class EditorCtrl;
class ITmGetSyntaxes;
class StatusBar : public wxStatusBar {
StatusBar(EditorFrame& parent, wxWindowID id, const ITmGetSyntaxes* syntax_handler);
void UpdateBarFromActiveEditor();
void UpdateTabs(EditorCtrl* editorCtrl);
void PopupSyntaxMenu(wxRect& menuPos);
void SetPanelTextIfDifferent(const wxString& newText, const int panelIndex);
void OnIdle(wxIdleEvent& event);
void OnMouseLeftDown(wxMouseEvent& event);
void OnMenuTabs2(wxCommandEvent& event);
void OnMenuTabs3(wxCommandEvent& event);
void OnMenuTabs4(wxCommandEvent& event);
void OnMenuTabs8(wxCommandEvent& event);
void OnMenuTabsOther(wxCommandEvent& event);
void OnMenuTabsSoft(wxCommandEvent& event);
void OnMenuGotoSymbol(wxCommandEvent& event);
// Member variables
EditorFrame& m_parentFrame;
const ITmGetSyntaxes* m_syntax_handler;
unsigned int m_line;
unsigned int m_column;
unsigned int m_tabWidth;
bool m_isSoftTabs;
// Editor state
EditorCtrl* m_editorCtrl;
EditorChangeState m_editorChangeState;
int m_editorCtrlId;
unsigned int m_changeToken;
unsigned int m_pos;
std::vector<SymbolRef> m_symbols;
#endif // __STATUSBAR_H__