robertsim007: Made all files use tabs for spacing to be more user friendly.
This commit is contained in:
parent
7bacc6b89a
commit
f85d4ff14a
|
@ -3,4 +3,5 @@ Debug
|
|||
Release
|
||||
TorqueIDE.plg
|
||||
TorqueIDE.ncb
|
||||
TorqueIDE.opt
|
||||
TorqueIDE.opt
|
||||
TorqueIDE.aps
|
|
@ -33,19 +33,19 @@ class TorqueIDEAbout : public wxDialog
|
|||
* Constructor
|
||||
*/
|
||||
TorqueIDEAbout(wxWindow *parent);
|
||||
|
||||
|
||||
/**
|
||||
* Destructor
|
||||
*/
|
||||
virtual ~TorqueIDEAbout() { }
|
||||
|
||||
|
||||
/**
|
||||
* Sets the text on the dialog
|
||||
*/
|
||||
void SetText(const wxString& text);
|
||||
|
||||
private:
|
||||
wxStaticText *about_text;
|
||||
wxStaticText *about_text;
|
||||
wxButton *ok;
|
||||
|
||||
};
|
||||
|
|
|
@ -42,8 +42,8 @@ bool TorqueIDEApp::OnInit()
|
|||
|
||||
frame->Show(TRUE);
|
||||
|
||||
frame->Maximize(!frame->IsMaximized()); // If the frame is not maximized, maximize it.
|
||||
// TODO: Add option to choose whether or not to max the frame.
|
||||
frame->Maximize(!frame->IsMaximized()); // If the frame is not maximized, maximize it.
|
||||
// TODO: Add option to choose whether or not to max the frame.
|
||||
|
||||
SetTopWindow(frame);
|
||||
|
||||
|
|
|
@ -32,10 +32,10 @@
|
|||
class TorqueIDEApp : public wxApp
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* Think of this as the "main" method.
|
||||
*/
|
||||
virtual bool OnInit();
|
||||
/**
|
||||
* Think of this as the "main" method.
|
||||
*/
|
||||
virtual bool OnInit();
|
||||
};
|
||||
|
||||
DECLARE_APP(TorqueIDEApp);
|
||||
|
|
|
@ -67,7 +67,7 @@ TorqueIDEFrame::TorqueIDEFrame(const wxChar *title) : wxFrame((wxFrame *) NULL,
|
|||
|
||||
SetMenuBar(menubar);
|
||||
|
||||
// Scintilla initialization
|
||||
// Scintilla initialization
|
||||
scintilla->SetLexer(wxSTC_LEX_CPP); // use the C++ lexer since TorqueSCRIPT is almost C++.
|
||||
// CPP Lexer Properties
|
||||
scintilla->SetProperty("fold.comment", "1");
|
||||
|
@ -168,7 +168,7 @@ END_EVENT_TABLE()
|
|||
|
||||
void TorqueIDEFrame::OnMenuFileNew(wxCommandEvent &event)
|
||||
{
|
||||
wxLogMessage("File New Menu Selected");
|
||||
wxLogMessage("File New Menu Selected");
|
||||
}
|
||||
|
||||
void TorqueIDEFrame::OnMenuFileOpen(wxCommandEvent &event)
|
||||
|
@ -187,7 +187,7 @@ void TorqueIDEFrame::OnMenuFileOpen(wxCommandEvent &event)
|
|||
|
||||
void TorqueIDEFrame::OnMenuFileSave(wxCommandEvent &event)
|
||||
{
|
||||
if(scintilla->GetModify())
|
||||
if(scintilla->GetModify())
|
||||
{
|
||||
wxLogMessage("File is modified!");
|
||||
scintilla->SetSavePoint();
|
||||
|
@ -210,14 +210,14 @@ void TorqueIDEFrame::OnMenuFileSaveAs(wxCommandEvent &event)
|
|||
|
||||
void TorqueIDEFrame::OnMenuFileQuit(wxCommandEvent &event)
|
||||
{
|
||||
Close(FALSE);
|
||||
Close(FALSE);
|
||||
}
|
||||
|
||||
void TorqueIDEFrame::OnMenuEditUndo(wxCommandEvent &event)
|
||||
{
|
||||
if(scintilla->CanUndo())
|
||||
if(scintilla->CanUndo())
|
||||
{
|
||||
scintilla->Undo();
|
||||
scintilla->Undo();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -227,29 +227,29 @@ void TorqueIDEFrame::OnMenuEditUndo(wxCommandEvent &event)
|
|||
|
||||
void TorqueIDEFrame::OnMenuEditRedo(wxCommandEvent &event)
|
||||
{
|
||||
if(scintilla->CanRedo())
|
||||
if(scintilla->CanRedo())
|
||||
{
|
||||
scintilla->Redo();
|
||||
scintilla->Redo();
|
||||
}
|
||||
else
|
||||
{
|
||||
wxBell();
|
||||
wxBell();
|
||||
}
|
||||
}
|
||||
|
||||
void TorqueIDEFrame::OnMenuEditCut(wxCommandEvent &event)
|
||||
{
|
||||
scintilla->Cut();
|
||||
scintilla->Cut();
|
||||
}
|
||||
|
||||
void TorqueIDEFrame::OnMenuEditCopy(wxCommandEvent &event)
|
||||
{
|
||||
scintilla->Copy();
|
||||
scintilla->Copy();
|
||||
}
|
||||
|
||||
void TorqueIDEFrame::OnMenuEditPaste(wxCommandEvent &event)
|
||||
{
|
||||
if(scintilla->CanPaste())
|
||||
if(scintilla->CanPaste())
|
||||
{
|
||||
scintilla->Paste();
|
||||
}
|
||||
|
@ -261,16 +261,16 @@ void TorqueIDEFrame::OnMenuEditPaste(wxCommandEvent &event)
|
|||
|
||||
void TorqueIDEFrame::OnMenuEditClear(wxCommandEvent &event)
|
||||
{
|
||||
scintilla->Clear();
|
||||
scintilla->Clear();
|
||||
}
|
||||
|
||||
void TorqueIDEFrame::OnMenuHelpHelp(wxCommandEvent &event)
|
||||
{
|
||||
wxLogMessage("Help Help Menu Selected");
|
||||
wxLogMessage("Help Help Menu Selected");
|
||||
}
|
||||
|
||||
void TorqueIDEFrame::OnMenuHelpAbout(wxCommandEvent &event)
|
||||
{
|
||||
wxLogMessage("Help About Menu Selected");
|
||||
wxLogMessage("Help About Menu Selected");
|
||||
}
|
||||
|
||||
|
|
|
@ -31,93 +31,93 @@
|
|||
|
||||
class TorqueIDEFrame : public wxFrame
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
TorqueIDEFrame( const wxChar *title );
|
||||
public:
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
TorqueIDEFrame( const wxChar *title );
|
||||
|
||||
/**
|
||||
* Destructor
|
||||
*/
|
||||
~TorqueIDEFrame();
|
||||
/**
|
||||
* Destructor
|
||||
*/
|
||||
~TorqueIDEFrame();
|
||||
|
||||
/**
|
||||
* Processes menu File|New
|
||||
*/
|
||||
void OnMenuFileNew(wxCommandEvent &event);
|
||||
/**
|
||||
* Processes menu File|New
|
||||
*/
|
||||
void OnMenuFileNew(wxCommandEvent &event);
|
||||
|
||||
/**
|
||||
* Processes menu File|Open
|
||||
*/
|
||||
void OnMenuFileOpen(wxCommandEvent &event);
|
||||
/**
|
||||
* Processes menu File|Open
|
||||
*/
|
||||
void OnMenuFileOpen(wxCommandEvent &event);
|
||||
|
||||
/**
|
||||
* Processes menu File|Save
|
||||
*/
|
||||
void OnMenuFileSave(wxCommandEvent &event);
|
||||
/**
|
||||
* Processes menu File|Save
|
||||
*/
|
||||
void OnMenuFileSave(wxCommandEvent &event);
|
||||
|
||||
/**
|
||||
* Processes menu File|Save As
|
||||
*/
|
||||
void OnMenuFileSaveAs(wxCommandEvent &event);
|
||||
/**
|
||||
* Processes menu File|Save As
|
||||
*/
|
||||
void OnMenuFileSaveAs(wxCommandEvent &event);
|
||||
|
||||
/**
|
||||
* Processes menu File|Quit
|
||||
*/
|
||||
void OnMenuFileQuit(wxCommandEvent &event);
|
||||
/**
|
||||
* Processes menu File|Quit
|
||||
*/
|
||||
void OnMenuFileQuit(wxCommandEvent &event);
|
||||
|
||||
/**
|
||||
* Processes menu Edit|Undo
|
||||
*/
|
||||
void OnMenuEditUndo(wxCommandEvent &event);
|
||||
/**
|
||||
* Processes menu Edit|Undo
|
||||
*/
|
||||
void OnMenuEditUndo(wxCommandEvent &event);
|
||||
|
||||
/**
|
||||
* Processes menu Edit|Redo
|
||||
*/
|
||||
void OnMenuEditRedo(wxCommandEvent &event);
|
||||
/**
|
||||
* Processes menu Edit|Redo
|
||||
*/
|
||||
void OnMenuEditRedo(wxCommandEvent &event);
|
||||
|
||||
/**
|
||||
* Processes menu Edit|Cut
|
||||
*/
|
||||
void OnMenuEditCut(wxCommandEvent &event);
|
||||
/**
|
||||
* Processes menu Edit|Cut
|
||||
*/
|
||||
void OnMenuEditCut(wxCommandEvent &event);
|
||||
|
||||
/**
|
||||
* Processes menu Edit|Copy
|
||||
*/
|
||||
void OnMenuEditCopy(wxCommandEvent &event);
|
||||
/**
|
||||
* Processes menu Edit|Copy
|
||||
*/
|
||||
void OnMenuEditCopy(wxCommandEvent &event);
|
||||
|
||||
/**
|
||||
* Processes menu Edit|Paste
|
||||
*/
|
||||
void OnMenuEditPaste(wxCommandEvent &event);
|
||||
|
||||
/**
|
||||
* Processes menu Edit|Clear
|
||||
*/
|
||||
void OnMenuEditClear(wxCommandEvent &event);
|
||||
/**
|
||||
* Processes menu Edit|Paste
|
||||
*/
|
||||
void OnMenuEditPaste(wxCommandEvent &event);
|
||||
|
||||
/**
|
||||
* Processes menu Help|Help
|
||||
*/
|
||||
void OnMenuHelpHelp(wxCommandEvent &event);
|
||||
/**
|
||||
* Processes menu Edit|Clear
|
||||
*/
|
||||
void OnMenuEditClear(wxCommandEvent &event);
|
||||
|
||||
/**
|
||||
* Processes menu Help|About
|
||||
*/
|
||||
void OnMenuHelpAbout(wxCommandEvent &event);
|
||||
/**
|
||||
* Processes menu Help|Help
|
||||
*/
|
||||
void OnMenuHelpHelp(wxCommandEvent &event);
|
||||
|
||||
protected:
|
||||
DECLARE_EVENT_TABLE()
|
||||
/**
|
||||
* Processes menu Help|About
|
||||
*/
|
||||
void OnMenuHelpAbout(wxCommandEvent &event);
|
||||
|
||||
protected:
|
||||
DECLARE_EVENT_TABLE()
|
||||
|
||||
private:
|
||||
wxStyledTextCtrl *scintilla;
|
||||
wxStatusBar *statusbar;
|
||||
wxToolBar *toolbar;
|
||||
wxMenuBar *menubar;
|
||||
wxMenu *menu_file;
|
||||
wxMenu *menu_edit;
|
||||
wxMenu *menu_help;
|
||||
wxStyledTextCtrl *scintilla;
|
||||
wxStatusBar *statusbar;
|
||||
wxToolBar *toolbar;
|
||||
wxMenuBar *menubar;
|
||||
wxMenu *menu_file;
|
||||
wxMenu *menu_edit;
|
||||
wxMenu *menu_help;
|
||||
|
||||
enum
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue