NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
This class is the actual NumeRe main frame. The application's logic is implemented here. More...
#include <NumeReWindow.h>
Public Member Functions | |
NumeReWindow (const wxString &title, const wxPoint &pos, const wxSize &size) | |
~NumeReWindow () | |
void | SetIntVar (int variableName, int value) |
int | GetIntVar (int variableName) |
void | NewFile (FileFilterType _filetype=FILE_NONSOURCE, const wxString &defaultfilename="") |
void | ShowRevision (const wxString &revisionName, const wxString &revisionContent) |
This member function creates a new editor page and copies the passed revision contents to this page. More... | |
void | DefaultPage () |
This member function creates a new editor page and copies the contents of the default page template to this page. More... | |
void | OpenFileByType (const wxFileName &filename) |
This member function opens the file with the passed name in the corresponding widget (either editor, ImageViewer or externally). More... | |
void | OpenFilesFromList (const wxArrayString &filenameslist) |
This member function opens a list of files depending on their type in the correct widget. More... | |
void | OpenSourceFile (wxArrayString fnames, unsigned int nLine=0, int nOpenFileFlag=OPENFILE_NOTHING) |
Opens the given list of source files in the editor. More... | |
void | openImage (wxFileName filename) |
This member function opens the selected image in the image viewer window. More... | |
void | openPDF (wxFileName filename) |
This member function opens a PDF document using the windows shell. More... | |
bool | ShowHelp (const wxString &sDocId) |
This member function displays the help page for the selected documentation ID. More... | |
void | openHTML (wxString HTMLcontent) |
This member function opens a HTML document (a documentation article) in the documentation viewer. More... | |
void | openTable (NumeRe::Container< std::string > _stringTable, const std::string &tableDisplayName, const std::string &sIntName) |
This member function displays the contents of the "string()" table or a cluster. More... | |
void | openTable (NumeRe::Table _table, const std::string &tableDisplayName, const std::string &sIntName) |
This member function displays the contents of a usual table. More... | |
void | editTable (NumeRe::Container< std::string > _stringTable, const std::string &tableDisplayName) |
This member function displays the contents of the "string()" table or a cluster and enables editing its contents. More... | |
void | editTable (NumeRe::Table _table, const std::string &tableDisplayName) |
This member function displays the contents of a usual table and enables editing its contents. More... | |
void | showTable (const wxString &tableName, const wxString &tableDisplayName) |
This member function is a wrapper for an event handler of the variable viewer to display the contents of the selected item. More... | |
void | showWindow (NumeRe::Window &window) |
This public member function handles the creation of windows requested by the kernel. More... | |
void | pass_command (const wxString &command, bool isEvent=false) |
This member function is a wrapper for the corresponding terminal function to pass a command to the kernel. More... | |
void | evaluateDebugInfo (const std::vector< std::string > &vDebugInfo) |
This function will pass the obtained debugging information to the debug viewer. If this object does not yet exist, it will be created on-the-fly. More... | |
void | createLaTeXFile () |
This member function uses the parsed contents from the current editor to create a new LaTeX file from them. More... | |
void | runLaTeX () |
This member function creates the LaTeX documentation files and uses the Windows shell to run the XeLaTeX compiler. More... | |
void | compileLaTeX () |
This function runs the XeLaTeX compiler on the TeX source in the current editor (if it is a TeX source). More... | |
void | refreshFunctionTree () |
This member function is a simple wrapper for refreshing the contents of the function tree. More... | |
NumeReEditor * | GetCurrentEditor () |
Public access method for accessing the currently viewed editor. Does only return a pointer to the top or left editor and shall not be used to modify settings. More... | |
void | PassImageList (wxImageList *imagelist) |
void | updateTipAtStartupSetting (bool bTipAtStartup) |
This function can be used to deactivate the "Tip of the day" functionality directly from the dialog. More... | |
void | EvaluateOptions () |
void | EvaluateCommandLine (wxArrayString &wxArgV) |
This member function evaluates the command line passed to this application at startup and evaluates, what to do with the passed arguments. More... | |
wxString | getProgramFolder () |
This member function returns the application's root path. More... | |
void | AddToHistory (const wxString &sCommand) |
This function is a wrapper for the corresponding function from the history widget and stores the passed string in the history file. More... | |
wxString | GetDocContent (wxString docid) |
This member function returns the HTML string containing the documentation for the selected topic/doc id. More... | |
std::vector< std::string > | GetDocIndex () |
This member function returns the documentation index as a vector. More... | |
void | forceHistoryPageDown () |
This member function is a simple helper to force that the history displays the last line at start-up. More... | |
NumeReTerminal * | getTerminal () |
std::vector< std::string > | getPathDefs () |
This member function returns the standard path definitions as a vector. More... | |
void | addToReloadBlackList (const wxString &sFilename) |
This member function adds the passed file name to the list of files, which shall not be reloaded automatically, if a file is changed from the outside. More... | |
void | removeFromReloadBlackList (const wxString &sFilename) |
This member function removes the passed file name from the list of files, which shall not be reloaded automatically. More... | |
bool | isOnReloadBlackList (wxString sFilename) |
This member function returns true , if the passed file name is currently part of the list of files, which shall not be reloaded automatically. More... | |
bool | GetFileContents (wxString fileToLoad, wxString &fileContents, wxString &fileName) |
wxTreeItemId | getDragDropSourceItem () |
This member function gets the drag-drop source item, if the source was the file tree. More... | |
wxString | getTreePath (const wxTreeItemId &itemId) |
This member function returns the paths connected to a specific file or directory in the file tree. More... | |
wxString | getTreeFolderPath (const wxTreeItemId &itemId) |
This member function returns the paths connected to a specific directory in the file tree. More... | |
void | Ready () |
This member function tells NumeRe that it shall display the "ready" state to the user. More... | |
void | Busy () |
This member function tells NumeRe that it shall display the "busy" state to the user. More... | |
void | OnPrintSetup () |
This member function displays the printing page setup dialog. More... | |
wxRect | DeterminePrintSize () |
Options * | getOptions () |
void | FindAndOpenProcedure (const wxString &procedureName) |
Wrapper for the corresponding function of the editor. More... | |
void | UpdateLocationIfOpen (const wxFileName &fname, const wxFileName &newFName) |
Updates the editor's and notebook's filename location, if it already opened and not modified. More... | |
void | reloadFileIfOpen (const wxString &fname, bool force=false) |
Reloads a file if it is open in any editor. More... | |
void | registerWindow (wxWindow *window, WindowType type) |
Registers a new window in the internal map. More... | |
void | unregisterWindow (wxWindow *window) |
Removes the passed window form the internal window list (only if it exists). More... | |
void | closeWindows (WindowType type=WT_ALL) |
Close all windows of the selected WindowType or simply use WT_ALL to close all terminal-closable floating windows at once. More... | |
wxIcon | getStandardIcon () |
This public member function returns the default icon usable by different windows. More... | |
void | notifyInstallationDone () |
Notifies all instances of the PackagRepoBrowser to refresh its internal list of installed packages and refreshes the package menu. More... | |
Public Attributes | |
MyTipProvider * | tipProvider |
bool | showTipAtStartup |
std::string | m_UnrecoverableFiles |
Private Member Functions | |
void | InitializeProgramOptions () |
This member function loads the configuration file available for the graphical user interface. More... | |
void | prepareSession () |
This member function recreates the last session by reading the session file or creates a new empty session, if the corresponding setting was set to false . More... | |
int | CopyEditorSettings (FileFilterType _fileType) |
This member function returns the settings from the current editor for the passed FileFilterType. More... | |
void | OnMenuEvent (wxCommandEvent &event) |
void | OnPluginMenuEvent (wxCommandEvent &event) |
Handles events, which originate from package menu (i.e. graphical plugins). More... | |
void | OnAskForNewFile () |
This member function catches the new file toolbar button and asks the user for a specific file type. More... | |
void | OnHelp () |
This member function displays the help root page. More... | |
void | OnAbout () |
This member function displays the "About" dialog. More... | |
void | OnPrintPreview () |
This member function displays the styled text of the current editor in the print preview window. More... | |
void | OnPrintPage () |
This member function prints the styled text of the current editor. More... | |
void | OnOptions () |
This member function displays the settings dialog and performs all necessary updates, if the user confirms his changes. More... | |
void | OnFindReplace (int id) |
This member function displays the find and replace dialog. More... | |
void | OnCopyAsPath () |
The member function copies the path of the selected tree item to the clipboard, so that it can be inserted in scripts and similar. More... | |
void | OnOpenInExplorer () |
This member function uses the Windows shell to open the selected folder in the Windows explorer. More... | |
void | OnShowRevisions () |
This method displays the revision dialog for the selected tree item. More... | |
void | OnShowRevisionsFromTab () |
This method displays the revision dialog for the selected tab item. More... | |
void | OnTagCurrentRevision () |
This method allows the user to tag the current active revision of a file. More... | |
void | OnCreateNewFolder () |
This member function creates a new folder below the currently selected folder. The name is supplied by the user via a text entry dialog. More... | |
void | OnRemoveFolder () |
This member function moves the selected directory directly to the Windows trash bin, if the user confirms the opened dialog. More... | |
void | OnSaveSourceFile (int id) |
This member function saves the file in the current editor. More... | |
void | OnOpenSourceFile (int id) |
This member function opens a file dialog to let the user choose the files to open in the editor. More... | |
void | OnExecuteFile (const std::string &sFileName, int id) |
This function executes the file in the current editor. More... | |
void | OnCalculateDependencies () |
This member function runs the dependency calculating process in the procedure library. More... | |
void | OnCreatePackage (const wxString &projectFile) |
This member function launches the package creator dialog and creates the install file, if the user confirms his selection. More... | |
void | OnCompareFiles () |
Event handler for comparing two files using the diff functionalities. More... | |
void | OnClose (wxCloseEvent &event) |
void | Test (wxCommandEvent &event) |
void | OnUpdateSaveUI () |
void | ToolbarStatusUpdate () |
void | OnIdle (wxIdleEvent &event) |
void | UpdateStatusBar () |
void | OnStatusTimer (wxTimerEvent &event) |
void | OnFileEventTimer (wxTimerEvent &event) |
This member function handles the events from the file event timer. More... | |
void | OnSplitterDoubleClick (wxSplitterEvent &event) |
void | OnTreeItemRightClick (wxTreeEvent &event) |
void | OnTreeItemActivated (wxTreeEvent &event) |
void | OnTreeItemToolTip (wxTreeEvent &event) |
This member function displays the tooltip requested for the item below the mouse cursor. More... | |
void | OnTreeDragDrop (wxTreeEvent &event) |
This member function prepares the data to be dragged from one of the both trees. More... | |
wxString | addLinebreaks (const wxString &sLine) |
This member function adds line break characters to the passed string to stick below a line length of 70 characters. Used by the tree tooltips. More... | |
wxString | getFileDetails (const wxFileName &filename) |
This member function displays extended file informations of NDAT files, if this was enabled in the settings. More... | |
void | OnPageChange (wxAuiNotebookEvent &event) |
void | OnFindEvent (wxFindDialogEvent &event) |
void | OnFileSystemEvent (wxFileSystemWatcherEvent &event) |
This member function handles all events, which result from changes in the file system. More... | |
void | CreateProcedureTree (const std::string &sProcedurePath) |
This member function finds every procedure in the default search path and adds them to the syntax autocompletion of the terminal. More... | |
void | showGraph (NumeRe::Window &window) |
This private member function displays a graph. More... | |
void | showFileDialog (NumeRe::Window &window) |
This private member function displays a file dialog. More... | |
void | showDirDialog (NumeRe::Window &window) |
This private member function displays a directory dialog. More... | |
void | showTextEntry (NumeRe::Window &window) |
This private member function displays a text entry dialog. More... | |
void | showMessageBox (NumeRe::Window &window) |
This private member function displays a message box. More... | |
void | showListDialog (NumeRe::Window &window) |
This private member function shows a list dialog. More... | |
void | showSelectionDialog (NumeRe::Window &window) |
This private member function shows a selection dialog. More... | |
wxArrayString | OpenFile (FileFilterType filterType) |
bool | SaveCurrentFile (bool saveas) |
Saves the current opened file. More... | |
bool | SaveTab (int tab) |
Saves the file in the selected editor tab. More... | |
bool | SaveAll (bool refreshLibrary) |
Saves all currently opened files to the harddisk. More... | |
void | CloseFile (int pageNr=-1, bool askforsave=true) |
Closes a given editor, based on its index in the editor notebook. More... | |
bool | CloseAllFiles () |
void | CloseTab (bool force) |
void | CloseOtherTabs () |
This member function closes all other editor tabs except of the current selected one. More... | |
void | OpenContainingFolder () |
This member function uses the Windows shell to open the containing folder of the selected tab in the Windows Explorer. More... | |
void | EvaluateTab () |
This member function executes the contents of the editor page connected to the selected tab. More... | |
void | PageHasChanged (int pageNr=-1) |
int | GetPageNum (wxFileName fn, bool compareWholePath=true, int startingTab=0) |
int | HandleModifiedFile (int pageNr, ModifiedFileAction fileAction) |
Handle user interaction when closing or reloading an editor. More... | |
void | LoadFilesToTree (wxString fromPath, FileFilterType fileType, wxTreeItemId treeid) |
This member function loads the file details to the file tree. More... | |
std::vector< std::string > | getFileForInstaller (const std::string &sLayoutFileName) |
This member function obtains the contents of a file and transforms it to be used by an installer script. More... | |
wxString | ConstructFilterString (FileFilterType filterType) |
int | FindString (const wxString &findString, int start_pos=-1, int flags=-1, bool highlight=TRUE) |
int | ReplaceAllStrings (const wxString &findString, const wxString &replaceString, int flags=-1) |
void | deleteFile () |
This member function moves the selected file from the file tree directly to the Windows trash bin, if the user confirms the opened dialog. More... | |
void | insertCopiedFile () |
This member function copies the selected file in the file tree to the target location in the file tree. More... | |
void | renameFile () |
This member function renames the selected file in the file tree with a new name provided by the user in a text entry dialog. More... | |
void | UpdateMenuBar () |
void | UpdatePackageMenu () |
Updates the package menu after an installation. More... | |
void | UpdateToolbar () |
void | UpdateTerminalNotebook () |
void | UpdateVarViewer () |
This member function gets the current variable list from the kernel and updates the variable viewer widget correspondingly. More... | |
void | UpdateWindowTitle (const wxString &filename) |
This member function updates the application's window title using the current opened file's name. More... | |
void | toggleConsole () |
This member function toggles the bottom part of the window containing the terminal and the list view widgets. More... | |
void | toggleFiletree () |
This member function toggles the left sidebar of the window containing both trees. More... | |
void | toggleHistory () |
This member function toggles the rightmost part of the lower window section containing the history and the list view widgets. More... | |
void | showConsole () |
This member function unhides the terminal, if it was hidden before. More... | |
void | gotoLine () |
This member function opens a text entry dialog, where the user can enter the target line number, he wants to jump to. After confirming, the editor jumps to this line. More... | |
void | setEditorFocus () |
This member function focuses the editor widget. More... | |
void | setViewerFocus () |
This member function focuses the last opened ImageViewer window. More... | |
void | prepareFunctionTree () |
This member function creates the contents of the symbols tree. More... | |
std::string | prepareTooltip (const std::string &sTooltiptext) |
This member function prepares the tooltip shown by the symbols tree. More... | |
wxPrintData * | setDefaultPrinterSettings () |
This member function sets the default printer settings. More... | |
int * | SelectIntVar (int variableName) |
This class is the actual NumeRe main frame. The application's logic is implemented here.
Definition at line 176 of file NumeReWindow.h.
NumeReWindow::NumeReWindow | ( | const wxString & | title, |
const wxPoint & | pos, | ||
const wxSize & | size | ||
) |
public constructor NumeReWindow Responsible for instantiating pretty much everything. It's all initialized here.
title | const wxString & The main window title |
pos | const wxPoint & Where on the screen to create the window |
size | const wxSize & How big the window should be |
Interesting Bug: obviously it is necessary to declare the paper size first
Definition at line 480 of file NumeReWindow.cpp.
References _guilang, SettingsValue::active(), NumeRe::DataBase::addData(), TreePanel::AddWindows(), NumeReDropTarget::CONSOLE, GenericTerminal::CURSORINVISIBLE, DetachedLogger::debug(), EvaluateOptions(), fileExists(), NumeReDropTarget::FILETREE, g_findReplace, g_logger, g_printData, Language::get(), NumeRe::DataBase::getColumn(), EditorNotebook::getCurrentEditor(), IconManager::GetIconIndex(), IconManager::GetImageList(), getProgramFolder(), Settings::getSetting(), getStandardIcon(), GenericTerminal::getSyntax(), NumeReTerminal::getTextHeight(), ID_CONTAINER_TERM, ID_FILEEVENTTIMER, ID_FUNCTIONTREE, ID_NOTEBOOK_ED, ID_OPTIONSDIALOG, ID_PROJECTTREE, ID_SPLITEDITOROUTPUT, ID_SPLITPROJECTEDITOR, ID_STATUSTIMER, ID_TERMINAL, DetachedLogger::info(), InitializeProgramOptions(), Language::loadStrings(), logWindow, m_appClosing, m_appStarting, m_book, m_copiedTreeItem, m_currentPage, m_currentView, m_debugViewer, m_fileEventTimer, m_fileNum, m_filePanel, m_fileTree, m_filterAllFiles, m_filterDataFiles, m_filterExecutableFiles, m_filterImageFiles, m_filterNLYTFiles, m_filterNonsource, m_filterNPRCFiles, m_filterNSCRFiles, m_filterNumeReFiles, m_filterSupportedFiles, m_filterTeXSource, m_functionPanel, m_functionTree, m_history, m_iconManager, m_loadingFilesDuringStartup, m_multiRowState, m_noteTerm, m_options, m_optionsDialog, m_procedureViewer, m_projectFileFolders, m_remoteMode, m_sessionSaved, m_setSelection, m_splitCommandHistory, m_splitEditorOutput, m_splitProjectEditor, m_statusBar, m_termContainer, m_terminal, m_treeBook, m_UnrecoverableFiles, m_updateTimer, m_varViewer, m_watcher, OnFileSystemEvent(), PageHasChanged(), prepareFunctionTree(), prepareSession(), GenericTerminal::set_mode_flag(), ProportionalSplitterWindow::SetCharHeigth(), ProcedureViewer::setCurrentEditor(), setDefaultPrinterSettings(), NumeReTerminal::SetParent(), ProportionalSplitterWindow::SetSashPositionFloat(), wxTermContainer::SetTerminal(), SETTING_B_SAVESASHS, SETTING_V_POS_SASH_H, SETTING_V_POS_SASH_T, SETTING_V_POS_SASH_V, FileSystem::setTokens(), EditorNotebook::SetTopParent(), Settings::showHints(), showTipAtStartup, tipProvider, UpdateMenuBar(), UpdateTerminalNotebook(), Settings::useCustomLangFiles(), FileSystem::ValidFileName(), and SettingsValue::value().
NumeReWindow::~NumeReWindow | ( | ) |
public destructor ~NumeReWindow Responsible for cleaning up almost everything.
Definition at line 702 of file NumeReWindow.cpp.
References g_findReplace, g_pageSetupData, g_printData, m_fileEventTimer, m_iconManager, m_options, m_optionsDialog, m_updateTimer, and m_watcher.
|
private |
This member function adds line break characters to the passed string to stick below a line length of 70 characters. Used by the tree tooltips.
sLine | const wxString& |
Definition at line 6367 of file NumeReWindow.cpp.
Referenced by OnTreeItemToolTip().
void NumeReWindow::AddToHistory | ( | const wxString & | sCommand | ) |
This function is a wrapper for the corresponding function from the history widget and stores the passed string in the history file.
sCommand | const wxString& |
Definition at line 780 of file NumeReWindow.cpp.
References NumeReHistory::AddToHistory(), and m_history.
Referenced by NumeReTerminal::pass_command(), and NumeReTerminal::pipe_command().
void NumeReWindow::addToReloadBlackList | ( | const wxString & | sFilename | ) |
This member function adds the passed file name to the list of files, which shall not be reloaded automatically, if a file is changed from the outside.
sFilename | const wxString& |
Definition at line 851 of file NumeReWindow.cpp.
References vReloadBlackList.
Referenced by OpenSourceFile().
void NumeReWindow::Busy | ( | ) |
This member function tells NumeRe that it shall display the "busy" state to the user.
Definition at line 4246 of file NumeReWindow.cpp.
References NumeReStatusbar::Busy(), ID_MENU_EXECUTE, ID_MENU_STOP_EXECUTION, and m_statusBar.
Referenced by NumeReTerminal::Busy().
|
private |
private CloseAllFiles Closes all open files
Definition at line 3599 of file NumeReWindow.cpp.
References CloseFile(), DetachedLogger::debug(), NumeReEditor::defaultPage, g_logger, NumeReEditor::getBookmarks(), EditorNotebook::getEditor(), NumeReEditor::GetFileNameAndPath(), getProgramFolder(), Options::GetSaveBookmarksInSession(), Options::GetSaveSession(), NumeReEditor::getSettings(), HandleModifiedFile(), DetachedLogger::info(), m_appClosing, m_book, m_options, m_sessionSaved, NumeReEditor::Modified(), MODIFIEDFILE_CLOSE, PageHasChanged(), toString(), and date::detail::trunc().
Referenced by OnClose(), and OnMenuEvent().
|
private |
Closes a given editor, based on its index in the editor notebook.
pageNr | int |
askforsave | bool |
Definition at line 3531 of file NumeReWindow.cpp.
References _guilang, NumeReTerminal::clearBreakpoints(), g_logger, Language::get(), EditorNotebook::getCurrentEditor(), NumeReEditor::GetFileName(), NumeReEditor::GetFileNameAndPath(), GetPageNum(), HandleModifiedFile(), DetachedLogger::info(), m_appClosing, m_book, m_fileNum, m_terminal, m_watcher, MODIFIEDFILE_CLOSE, PageHasChanged(), Filewatcher::Remove(), and NumeReEditor::ResetEditor().
Referenced by CloseAllFiles(), CloseOtherTabs(), CloseTab(), and OnMenuEvent().
|
private |
This member function closes all other editor tabs except of the current selected one.
Definition at line 3460 of file NumeReWindow.cpp.
References CloseFile(), GetIntVar(), m_book, and VN_CLICKEDTAB.
Referenced by OnMenuEvent().
|
private |
private CloseTab Closes a tab after the user right-clicks it and selects "Close"
force | bool |
Definition at line 3444 of file NumeReWindow.cpp.
References CloseFile(), GetIntVar(), m_book, and VN_CLICKEDTAB.
Referenced by OnMenuEvent().
void NumeReWindow::closeWindows | ( | WindowType | type = WT_ALL | ) |
Close all windows of the selected WindowType or simply use WT_ALL to close all terminal-closable floating windows at once.
type | WindowType |
Definition at line 6829 of file NumeReWindow.cpp.
References m_openedWindows, and WT_ALL.
Referenced by OnClose(), and NumeReTerminal::OnThreadUpdate().
void NumeReWindow::compileLaTeX | ( | ) |
This function runs the XeLaTeX compiler on the TeX source in the current editor (if it is a TeX source).
Definition at line 2638 of file NumeReWindow.cpp.
References _guilang, FILE_TEXSOURCE, fileExists(), Language::get(), EditorNotebook::getCurrentEditor(), NumeReEditor::GetFileName(), NumeReEditor::getFileType(), Options::GetLaTeXRoot(), m_book, and m_options.
Referenced by OnMenuEvent().
|
private |
private ConstructFilterString Puts together the filter that defines what files are shown in a file dialog
filterType | FileFilterType The type of filter to construct |
Definition at line 4532 of file NumeReWindow.cpp.
References FILE_ALLFILES, FILE_ALLSOURCETYPES, FILE_DATAFILES, FILE_IMAGEFILES, FILE_NONSOURCE, FILE_NPRC, FILE_NSCR, FILE_NUMERE, FILE_SUPPORTEDFILES, FILE_TEXSOURCE, m_filterAllFiles, m_filterDataFiles, m_filterExecutableFiles, m_filterImageFiles, m_filterNLYTFiles, m_filterNonsource, m_filterNPRCFiles, m_filterNSCRFiles, m_filterNumeReFiles, m_filterSupportedFiles, and m_filterTeXSource.
Referenced by OpenFile(), and SaveCurrentFile().
|
private |
This member function returns the settings from the current editor for the passed FileFilterType.
_fileType | FileFilterType |
Definition at line 3286 of file NumeReWindow.cpp.
References FILE_MATLAB, FILE_NPRC, FILE_NSCR, FILE_PLUGIN, FILE_XML, EditorNotebook::getCurrentEditor(), NumeReEditor::getSettings(), m_book, m_loadingFilesDuringStartup, NumeReEditor::SETTING_INDENTONTYPE, NumeReEditor::SETTING_USEANALYZER, and NumeReEditor::SETTING_USETXTADV.
Referenced by NewFile(), and OpenSourceFile().
void NumeReWindow::createLaTeXFile | ( | ) |
This member function uses the parsed contents from the current editor to create a new LaTeX file from them.
Definition at line 2581 of file NumeReWindow.cpp.
References _guilang, DocumentationGenerator::createDocumentation(), Language::get(), EditorNotebook::getCurrentEditor(), NumeReEditor::GetFileNameAndPath(), NumeReTerminal::getPathSettings(), GenericTerminal::getSyntax(), m_book, m_terminal, and SAVEPATH.
Referenced by OnMenuEvent().
|
private |
This member function finds every procedure in the default search path and adds them to the syntax autocompletion of the terminal.
sProcedurePath | const std::string& |
Definition at line 2006 of file NumeReWindow.cpp.
References getFileList(), getFolderList(), NumeReTerminal::getKernelSettings(), GenericTerminal::getSyntax(), m_terminal, and NumeReSyntax::setProcedureTree().
Referenced by EvaluateOptions(), OnFileEventTimer(), and SaveAll().
void NumeReWindow::DefaultPage | ( | ) |
This member function creates a new editor page and copies the contents of the default page template to this page.
Definition at line 3321 of file NumeReWindow.cpp.
References _guilang, EditorNotebook::createEditor(), NumeReEditor::defaultPage, NumeReDropTarget::EDITOR, Language::get(), GetFileContents(), getProgramFolder(), NumeReEditor::LoadFileText(), m_book, m_currentPage, m_fileNum, m_options, NumeReEditor::SETTING_USETXTADV, NumeReEditor::ToggleSettings(), and Settings::useCustomLangFiles().
Referenced by NewFile().
|
private |
This member function moves the selected file from the file tree directly to the Windows trash bin, if the user confirms the opened dialog.
Definition at line 2669 of file NumeReWindow.cpp.
References _guilang, FileNameTreeData::filename, Language::get(), m_clickedTreeItem, m_copiedTreeItem, m_fileTree, and Recycler::recycle().
Referenced by OnMenuEvent().
wxRect NumeReWindow::DeterminePrintSize | ( | ) |
private DeterminePrintSize Returns an appropriate size for printing
Definition at line 6669 of file NumeReWindow.cpp.
Referenced by OnPrintPreview(), and HelpViewer::Print().
void NumeReWindow::editTable | ( | NumeRe::Container< std::string > | _stringTable, |
const std::string & | tableDisplayName | ||
) |
This member function displays the contents of the "string()" table or a cluster and enables editing its contents.
_stringTable | NumeRe::Container<std::string> |
tableDisplayName | const std::string& |
Definition at line 2201 of file NumeReWindow.cpp.
References _guilang, Language::get(), TableViewer::GetHeight(), getStandardIcon(), TableViewer::GetWidth(), TablePanel::grid, m_terminal, max, min, TableViewer::SetData(), and TablePanel::SetTerminal().
Referenced by NumeReTerminal::OnThreadUpdate().
void NumeReWindow::editTable | ( | NumeRe::Table | _table, |
const std::string & | tableDisplayName | ||
) |
This member function displays the contents of a usual table and enables editing its contents.
_table | NumeRe::Table |
tableDisplayName | const std::string& |
Definition at line 2225 of file NumeReWindow.cpp.
References _guilang, Language::get(), TableViewer::GetHeight(), getStandardIcon(), TableViewer::GetWidth(), TablePanel::grid, m_terminal, max, min, TableViewer::SetData(), and TablePanel::SetTerminal().
void NumeReWindow::EvaluateCommandLine | ( | wxArrayString & | wxArgV | ) |
This member function evaluates the command line passed to this application at startup and evaluates, what to do with the passed arguments.
wxArgV | wxArrayString& |
Definition at line 2939 of file NumeReWindow.cpp.
References g_logger, DetachedLogger::info(), m_terminal, OnCreatePackage(), OpenSourceFile(), NumeReTerminal::pass_command(), replacePathSeparator(), and toLowerCase().
Referenced by DDE::Connection::OnDisconnect(), and MyApp::OnInit().
void NumeReWindow::evaluateDebugInfo | ( | const std::vector< std::string > & | vDebugInfo | ) |
This function will pass the obtained debugging information to the debug viewer. If this object does not yet exist, it will be created on-the-fly.
vDebugInfo | const std::vector<std::string>& |
Definition at line 2545 of file NumeReWindow.cpp.
References getStandardIcon(), m_debugViewer, m_options, m_terminal, DebugViewer::setDebugInfo(), and DebugViewer::setTerminal().
Referenced by NumeReTerminal::OnThreadUpdate().
void NumeReWindow::EvaluateOptions | ( | ) |
public EvaluateOptions Updates the GUI and other program options after the user has closed the options dialog. Called even if the user canceled the dialog because the authorization code could have been changed.
Definition at line 5080 of file NumeReWindow.cpp.
References SettingsValue::active(), NumeReEditor::AnalyseCode(), CreateProcedureTree(), FILE_DATAFILES, FILE_IMAGEFILES, FILE_NPRC, FILE_NSCR, Options::GetCaretBlinkTime(), EditorNotebook::getEditor(), NumeReTerminal::getPathSettings(), Settings::getSetting(), Options::GetTerminalHistorySize(), Settings::isEnabled(), LoadFilesToTree(), LOADPATH, m_book, m_debugViewer, m_fileTree, m_options, m_projectFileFolders, m_splitEditorOutput, m_splitProjectEditor, m_termContainer, m_terminal, m_treeBook, m_watcher, PLOTPATH, PROCPATH, SAVEPATH, SCRIPTPATH, wxTermContainer::SetCaretBlinkTime(), Filewatcher::SetDefaultPaths(), EditorNotebook::SetShowPathsOrIconsOnTabs(), wxTermContainer::SetTerminalHistory(), SETTING_B_ICONSONTABS, SETTING_B_PATHSONTABS, SETTING_B_USETABS, SETTING_V_POS_SASH_V, DebugViewer::updateSettings(), NumeReEditor::UpdateSyntaxHighlighting(), UpdateToolbar(), UpdateWindowTitle(), and SettingsValue::value().
Referenced by NumeReWindow(), OnOptions(), and NumeReTerminal::OnThreadUpdate().
|
private |
This member function executes the contents of the editor page connected to the selected tab.
Definition at line 3504 of file NumeReWindow.cpp.
References EditorNotebook::getEditor(), NumeReEditor::GetFileName(), GetIntVar(), HandleModifiedFile(), NumeReEditor::HasBeenSaved(), m_book, NumeReEditor::Modified(), MODIFIEDFILE_COMPILE, OnExecuteFile(), replacePathSeparator(), and VN_CLICKEDTAB.
Referenced by OnMenuEvent().
void NumeReWindow::FindAndOpenProcedure | ( | const wxString & | procedureName | ) |
Wrapper for the corresponding function of the editor.
procedureName | const wxString& |
Definition at line 6692 of file NumeReWindow.cpp.
References NumeReEditor::FindAndOpenProcedure(), EditorNotebook::getFocusedEditor(), and m_book.
Referenced by DependencyDialog::OnItemActivate().
|
private |
private FindString Looks for a given string in the current editor
findString | const wxString & The string to find |
start_pos | int [=-1] The offset to begin searching (-1 for the whole document) |
flags | int [=-1] The selected find/replace options |
highlight | bool [=1] Whether or not to select the found text |
Definition at line 6551 of file NumeReWindow.cpp.
References NumeReEditor::EnsureLineVisibility(), FindString(), EditorNotebook::getFocusedEditor(), m_book, and wxFR_WRAPAROUND.
Referenced by FindString(), OnFindEvent(), and ReplaceAllStrings().
void NumeReWindow::forceHistoryPageDown | ( | ) |
This member function is a simple helper to force that the history displays the last line at start-up.
Definition at line 822 of file NumeReWindow.cpp.
References m_history.
Referenced by MyApp::OnInit().
NumeReEditor * NumeReWindow::GetCurrentEditor | ( | ) |
Public access method for accessing the currently viewed editor. Does only return a pointer to the top or left editor and shall not be used to modify settings.
Definition at line 5797 of file NumeReWindow.cpp.
References EditorNotebook::getCurrentEditor(), and m_book.
Referenced by NumeReDropTarget::OnData(), and ToolBarSearchCtrl::selectItem().
wxString NumeReWindow::GetDocContent | ( | wxString | docid | ) |
This member function returns the HTML string containing the documentation for the selected topic/doc id.
docid | wxString |
Definition at line 795 of file NumeReWindow.cpp.
References NumeReTerminal::getDocumentation(), and m_terminal.
Referenced by DocumentationBrowser::createNewPage(), HelpViewer::HistoryGoBack(), HelpViewer::HistoryGoForward(), HelpViewer::Print(), and HelpViewer::ShowPageOnItem().
std::vector< std::string > NumeReWindow::GetDocIndex | ( | ) |
This member function returns the documentation index as a vector.
Definition at line 808 of file NumeReWindow.cpp.
References NumeReTerminal::getDocIndex(), and m_terminal.
Referenced by DocumentationBrowser::fillDocTree().
wxTreeItemId NumeReWindow::getDragDropSourceItem | ( | ) |
This member function gets the drag-drop source item, if the source was the file tree.
Definition at line 4127 of file NumeReWindow.cpp.
References m_dragDropSourceItem.
Referenced by NumeReDropTarget::OnData().
bool NumeReWindow::GetFileContents | ( | wxString | fileToLoad, |
wxString & | fileContents, | ||
wxString & | fileName | ||
) |
private GetFileContents Gets the text of a source file. Abstracts out opening local / remote files.
fileToLoad | wxString The name of the file to open |
fileContents | wxString & Gets the contents of the opened file |
fileName | wxString & Gets the name of the file (no path) |
Definition at line 4098 of file NumeReWindow.cpp.
Referenced by DefaultPage(), NumeReEditor::getTemplateContent(), NewFile(), OnCreatePackage(), OpenSourceFile(), and reloadFileIfOpen().
|
private |
This member function displays extended file informations of NDAT files, if this was enabled in the settings.
filename | const wxFileName& |
Definition at line 6442 of file NumeReWindow.cpp.
References getFileInfo(), m_options, and Settings::showExtendedFileInfo().
Referenced by OnTreeItemToolTip().
|
private |
This member function obtains the contents of a file and transforms it to be used by an installer script.
sFileName | const std::string& |
Definition at line 4468 of file NumeReWindow.cpp.
References NumeReTerminal::getPathSettings(), LOADPATH, m_terminal, PATH_LAST, PLOTPATH, PROCPATH, SAVEPATH, and SCRIPTPATH.
Referenced by OnCreatePackage().
int NumeReWindow::GetIntVar | ( | int | variableName | ) |
public GetIntVar A "one-size-fits-all" integer Get routine, to avoid pointless duplication
variableName | int The ID of the member variable to return |
Definition at line 5007 of file NumeReWindow.cpp.
References SelectIntVar().
Referenced by CloseOtherTabs(), CloseTab(), EvaluateTab(), OnMenuEvent(), OnShowRevisionsFromTab(), and OpenContainingFolder().
|
inline |
Definition at line 245 of file NumeReWindow.h.
References m_options.
Referenced by EditorNotebook::createEditor(), MyApp::OnInit(), VariableViewer::setDebuggerMode(), and EditorNotebook::split().
|
private |
private GetPageNum Searches through the open editors to find an editor with the given name
fn | wxFileName The editor's filename to find |
compareWholePath | bool [=true] Compare the entire filename + path, or just the name? |
startingTab | int [=0] The index of the first tab to search |
Definition at line 3675 of file NumeReWindow.cpp.
References EditorNotebook::getEditor(), NumeReEditor::GetFileName(), NumeReEditor::GetFilenameString(), and m_book.
Referenced by CloseFile(), OpenSourceFile(), and UpdateLocationIfOpen().
std::vector< std::string > NumeReWindow::getPathDefs | ( | ) |
This member function returns the standard path definitions as a vector.
Definition at line 835 of file NumeReWindow.cpp.
References NumeReTerminal::getPathSettings(), and m_terminal.
Referenced by VersionControlSystemManager::getRevisionPath(), NumeReDropTarget::OnData(), and EditorNotebook::SetTabText().
wxString NumeReWindow::getProgramFolder | ( | ) |
This member function returns the application's root path.
Definition at line 761 of file NumeReWindow.cpp.
Referenced by CloseAllFiles(), DefaultPage(), getStandardIcon(), NumeReEditor::getTemplateContent(), NumeReHistory::loadHistory(), NewFile(), NumeReWindow(), OnCreatePackage(), openImage(), prepareSession(), NumeReHistory::saveHistory(), and SaveTab().
wxIcon NumeReWindow::getStandardIcon | ( | ) |
This public member function returns the default icon usable by different windows.
Definition at line 6856 of file NumeReWindow.cpp.
References getProgramFolder().
Referenced by NumeReEditor::CreateProcedureFromSection(), editTable(), evaluateDebugInfo(), NumeReEditor::InitDuplicateCode(), NumeReWindow(), OnAskForNewFile(), openImage(), openTable(), showDirDialog(), showFileDialog(), showGraph(), showListDialog(), showSelectionDialog(), and showTextEntry().
|
inline |
Definition at line 228 of file NumeReWindow.h.
References m_terminal.
Referenced by EditorNotebook::createEditor(), NumeReDropTarget::OnData(), and EditorNotebook::split().
wxString NumeReWindow::getTreeFolderPath | ( | const wxTreeItemId & | itemId | ) |
This member function returns the paths connected to a specific directory in the file tree.
itemId | const wxTreeItemId& |
Definition at line 4180 of file NumeReWindow.cpp.
References FileNameTreeData::filename, NumeReTerminal::getPathSettings(), FileNameTreeData::isDir, m_fileTree, m_projectFileFolders, m_terminal, and PLOTPATH.
Referenced by OnCreateNewFolder(), NumeReDropTarget::OnData(), and OnOpenInExplorer().
wxString NumeReWindow::getTreePath | ( | const wxTreeItemId & | itemId | ) |
This member function returns the paths connected to a specific file or directory in the file tree.
itemId | const wxTreeItemId& |
Definition at line 4144 of file NumeReWindow.cpp.
References FileNameTreeData::filename, NumeReTerminal::getPathSettings(), m_fileTree, m_projectFileFolders, m_terminal, and PLOTPATH.
Referenced by OnCopyAsPath().
|
private |
This member function opens a text entry dialog, where the user can enter the target line number, he wants to jump to. After confirming, the editor jumps to this line.
Definition at line 5710 of file NumeReWindow.cpp.
References _guilang, Language::get(), EditorNotebook::getFocusedEditor(), m_book, StrToInt(), and toString().
Referenced by OnMenuEvent().
|
private |
Handle user interaction when closing or reloading an editor.
pageNr | int |
fileAction | ModifiedFileAction |
Definition at line 3735 of file NumeReWindow.cpp.
References _guilang, SettingsValue::active(), Language::get(), EditorNotebook::getCurrentEditor(), EditorNotebook::getEditor(), NumeReEditor::GetFileNameAndPath(), Settings::getSetting(), m_book, m_options, NumeReEditor::Modified(), MODIFIEDFILE_CLOSE, MODIFIEDFILE_COMPILE, MODIFIEDFILE_RELOAD, SaveCurrentFile(), selection(), and SETTING_B_AUTOSAVEEXECUTION.
Referenced by CloseAllFiles(), CloseFile(), EvaluateTab(), and OnMenuEvent().
|
private |
This member function loads the configuration file available for the graphical user interface.
If no configuration file is available or if the config file is of an older version, default values are used.
Definition at line 920 of file NumeReWindow.cpp.
References Settings::getSettings(), m_options, m_terminal, Options::readAnalyzerOptionsFromConfig(), Options::readColoursFromConfig(), Options::SetCaretBlinkTime(), Options::SetDebuggerFocusLine(), Options::SetEditorFont(), NumeReTerminal::setKernelSettings(), Options::SetLaTeXRoot(), Options::SetPrintStyle(), Options::SetTerminalHistorySize(), SETTING_B_FOLDLOADEDFILE, SETTING_B_FORMATBEFORESAVING, SETTING_B_GLOBALVARS, SETTING_B_HIGHLIGHTLOCALS, SETTING_B_LINESINSTACK, SETTING_B_MODULESINSTACK, SETTING_B_PATHSONTABS, SETTING_B_PRINTLINENUMBERS, SETTING_B_PROCEDUREARGS, SETTING_B_SAVEBOOKMARKS, SETTING_B_SAVESESSION, SETTING_B_TOOLBARTEXT, SETTING_B_USEREVISIONS, wxSTC_PRINT_BLACKONWHITE, and wxSTC_PRINT_COLOURONWHITE.
Referenced by NumeReWindow().
|
private |
This member function copies the selected file in the file tree to the target location in the file tree.
Definition at line 2692 of file NumeReWindow.cpp.
References _guilang, FileNameTreeData::filename, Language::get(), m_clickedTreeItem, m_copiedTreeItem, and m_fileTree.
Referenced by OnMenuEvent().
bool NumeReWindow::isOnReloadBlackList | ( | wxString | sFilename | ) |
This member function returns true
, if the passed file name is currently part of the list of files, which shall not be reloaded automatically.
sFilename | wxString |
Definition at line 895 of file NumeReWindow.cpp.
References replacePathSeparator(), and vReloadBlackList.
Referenced by OnFileEventTimer().
|
private |
This member function loads the file details to the file tree.
fromPath | wxString |
fileType | FileFilterType |
treeid | wxTreeItemId |
Definition at line 6461 of file NumeReWindow.cpp.
References g_logger, DetachedLogger::info(), m_fileTree, and m_iconManager.
Referenced by EvaluateOptions(), and OnFileEventTimer().
void NumeReWindow::NewFile | ( | FileFilterType | _filetype = FILE_NONSOURCE , |
const wxString & | defaultfilename = "" |
||
) |
private NewFile Creates a new empty editor and adds it to the editor notebook
Definition at line 3030 of file NumeReWindow.cpp.
References _guilang, CopyEditorSettings(), EditorNotebook::createEditor(), DefaultPage(), NumeReDropTarget::EDITOR, FILE_DIFF, FILE_NLYT, FILE_NONSOURCE, FILE_NPRC, FILE_NSCR, FILE_PLUGIN, Language::get(), GetFileContents(), NumeReEditor::GetFileNameAndPath(), NumeReTerminal::getPathSettings(), getProgramFolder(), getTimeStamp(), NumeReEditor::GotoPipe(), m_book, m_currentPage, m_fileNum, m_options, m_terminal, PROCPATH, SAVEPATH, SCRIPTPATH, NumeReEditor::SetFilename(), EditorNotebook::SetTabText(), NumeReEditor::SetUnsaved(), NumeReEditor::ToggleSettings(), NumeReEditor::UpdateSyntaxHighlighting(), and Settings::useCustomLangFiles().
Referenced by NumeReEditor::FindAndOpenInclude(), NumeReEditor::FindAndOpenProcedure(), OnAskForNewFile(), OnCreatePackage(), OnMenuEvent(), prepareSession(), and ShowRevision().
void NumeReWindow::notifyInstallationDone | ( | ) |
Notifies all instances of the PackagRepoBrowser to refresh its internal list of installed packages and refreshes the package menu.
Definition at line 6871 of file NumeReWindow.cpp.
References PACKAGE_REPO_BROWSER_TITLE, and UpdatePackageMenu().
Referenced by NumeReTerminal::OnThreadUpdate().
|
private |
This member function displays the "About" dialog.
Definition at line 7497 of file NumeReWindow.cpp.
References _guilang, and Language::get().
Referenced by OnMenuEvent().
|
private |
This member function catches the new file toolbar button and asks the user for a specific file type.
Definition at line 7413 of file NumeReWindow.cpp.
References _guilang, FILE_NLYT, FILE_NPRC, FILE_NSCR, FILE_PLUGIN, Language::get(), getStandardIcon(), and NewFile().
Referenced by OnMenuEvent().
|
private |
This member function runs the dependency calculating process in the procedure library.
Definition at line 7034 of file NumeReWindow.cpp.
References _guilang, SyntaxError::errorcode, FILE_NPRC, Language::get(), EditorNotebook::getCurrentEditor(), NumeReEditor::GetFileNameAndPath(), NumeReEditor::GetFilenameString(), NumeReEditor::getFileType(), SyntaxError::getIndices(), NumeReTerminal::getKernel(), NumeReKernel::getProcedureLibrary(), SyntaxError::getToken(), m_book, m_terminal, and toString().
Referenced by OnMenuEvent().
|
private |
private OnClose Called whenever the main frame is about to close. Handles initial resource cleanup.
event | wxCloseEvent & The close event generated by wxWindows |
Definition at line 1173 of file NumeReWindow.cpp.
References SettingsValue::active(), CloseAllFiles(), closeWindows(), Settings::copySettings(), NumeReTerminal::EndKernelTask(), g_logger, EditorNotebook::getCurrentEditor(), NumeReTerminal::getKernelSettings(), Settings::getSetting(), ProportionalSplitterWindow::GetSplitPercentage(), DetachedLogger::info(), NumeReTerminal::IsWorking(), m_appClosing, m_book, m_debugViewer, m_fileEventTimer, m_history, m_options, m_splitCommandHistory, m_splitEditorOutput, m_splitProjectEditor, m_terminal, m_updateTimer, NumeReEditor::Modified(), NumeReHistory::saveHistory(), NumeReTerminal::setKernelSettings(), SETTING_B_SAVESASHS, SETTING_B_SAVEWINDOWSIZE, SETTING_S_WINDOWSIZE, SETTING_V_POS_SASH_H, SETTING_V_POS_SASH_T, SETTING_V_POS_SASH_V, SettingsValue::stringval(), SettingsValue::value(), and WT_ALL.
|
private |
Event handler for comparing two files using the diff functionalities.
Definition at line 7205 of file NumeReWindow.cpp.
References _guilang, compareFiles(), Language::get(), and ShowRevision().
Referenced by OnMenuEvent().
|
private |
The member function copies the path of the selected tree item to the clipboard, so that it can be inserted in scripts and similar.
Definition at line 2768 of file NumeReWindow.cpp.
References getTreePath(), m_clickedTreeItem, and replacePathSeparator().
Referenced by OnMenuEvent().
|
private |
This member function creates a new folder below the currently selected folder. The name is supplied by the user via a text entry dialog.
Definition at line 2884 of file NumeReWindow.cpp.
References _guilang, Language::get(), getTreeFolderPath(), and m_clickedTreeItem.
Referenced by OnMenuEvent().
|
private |
This member function launches the package creator dialog and creates the install file, if the user confirms his selection.
projectFile | const wxString& |
Definition at line 7066 of file NumeReWindow.cpp.
References _guilang, NumeReEditor::ApplyAutoIndentation(), SyntaxError::errorcode, FILE_NPRC, FILE_NSCR, Language::get(), EditorNotebook::getCurrentEditor(), PackageDialog::getDocFile(), NumeReEditor::getEditorSetting(), GetFileContents(), getFileForInstaller(), NumeReEditor::GetFileName(), NumeReEditor::GetFileNameAndPath(), NumeReEditor::getFileType(), SyntaxError::getIndices(), PackageDialog::getInstallInfo(), PackageDialog::getPackageIdentifier(), PackageDialog::getPackageName(), NumeReTerminal::getPathSettings(), PackageDialog::getProcedures(), getProgramFolder(), SyntaxError::getToken(), PackageDialog::includeDocs(), PackageDialog::loadProjectFile(), m_book, m_iconManager, m_terminal, NewFile(), PROCPATH, replaceAll(), PackageDialog::setMainFile(), NumeReEditor::SETTING_INDENTONTYPE, NumeReEditor::ToggleSettings(), toString(), NumeReTerminal::updatePackage(), and NumeReEditor::UpdateSyntaxHighlighting().
Referenced by EvaluateCommandLine(), OnMenuEvent(), and OpenFileByType().
|
private |
This function executes the file in the current editor.
sFileName | const std::string& |
id | int |
Definition at line 6954 of file NumeReWindow.cpp.
References SettingsValue::active(), NumeReTerminal::getPathSettings(), Settings::getSetting(), ID_MENU_OPEN_FILE_FROM_TREE_TO_TABLE, m_options, m_terminal, NumeReTerminal::pass_command(), PROCPATH, replacePathSeparator(), SaveAll(), SCRIPTPATH, SETTING_B_AUTOSAVEEXECUTION, and showConsole().
Referenced by EvaluateTab(), and OnMenuEvent().
|
private |
This member function handles the events from the file event timer.
event | wxTimerEvent& |
This timer is started by the file system event handler to catch a list of events before processing them (which happens here)
Definition at line 4641 of file NumeReWindow.cpp.
References CreateProcedureTree(), DetachedLogger::debug(), FILE_DATAFILES, FILE_IMAGEFILES, FILE_NPRC, FILE_NSCR, g_logger, EditorNotebook::getFocusedEditor(), Options::GetKeepBackupFile(), NumeReTerminal::getPathSettings(), VersionControlSystemManager::getRevisions(), VersionControlSystemManager::hasRevisions(), DetachedLogger::info(), isOnReloadBlackList(), LoadFilesToTree(), LOADPATH, m_book, m_filesLastSaveTime, m_fileTree, m_modifiedFiles, m_options, m_projectFileFolders, m_terminal, PATH_LAST, PROCPATH, reloadFileIfOpen(), replacePathSeparator(), selection(), toString(), and NumeReTerminal::UpdateLibrary().
|
private |
This member function handles all events, which result from changes in the file system.
event | wxFileSystemWatcherEvent& |
Because it is likely that multiple of them are fired, if whole folders are moved, we only cache the paths and the event types here and start a one shot timer. If this timer has ran (it will be resetted for each incoming event), the cached changes will be processed.
Definition at line 1974 of file NumeReWindow.cpp.
References m_appStarting, m_dragDropSourceItem, m_fileEventTimer, m_fileTree, and m_modifiedFiles.
Referenced by NumeReWindow().
|
private |
private OnFindEvent Handles find/replace events
event | wxFindDialogEvent & The generated find/replace event |
Definition at line 6480 of file NumeReWindow.cpp.
References _guilang, FindString(), g_findReplace, Language::get(), EditorNotebook::getFocusedEditor(), m_book, ReplaceAllStrings(), FindReplaceDialog::toggleSkipFocus(), toLowerCase(), and toString().
|
private |
This member function displays the find and replace dialog.
id | int |
Definition at line 7243 of file NumeReWindow.cpp.
References _guilang, g_findReplace, Language::get(), EditorNotebook::getFocusedEditor(), ID_MENU_FIND, ID_MENU_REPLACE, m_book, m_findData, FindReplaceDialog::SetFocus(), and wxFR_WRAPAROUND.
Referenced by OnMenuEvent().
|
private |
This member function displays the help root page.
Definition at line 7468 of file NumeReWindow.cpp.
References ShowHelp().
Referenced by OnMenuEvent().
|
private |
private OnIdle Initiates the UI update timer as needed
event | wxIdleEvent & The generated program idle event |
Definition at line 4598 of file NumeReWindow.cpp.
References m_updateTimer.
|
private |
private OnMenuEvent Responsible for handling 95% of the menu and button-related events.
event | wxCommandEvent & The event generated by the button/menu click |
Definition at line 1270 of file NumeReWindow.cpp.
References _guilang, SettingsValue::active(), NumeReEditor::AddProcedureDocumentation(), NumeReEditor::ApplyAutoFormat(), NumeReEditor::ApplyAutoIndentation(), NumeReTerminal::CancelCalculation(), NumeReEditor::clearBookmarks(), CloseAllFiles(), CloseFile(), CloseOtherTabs(), CloseTab(), compileLaTeX(), NumeReTerminal::copyText(), createLaTeXFile(), NumeReTerminal::cutText(), deleteFile(), EvaluateTab(), FILE_NLYT, FILE_NPRC, FILE_NSCR, FILE_PLUGIN, FILE_TEXSOURCE, FileNameTreeData::filename, NumeReEditor::FoldAll(), Language::get(), EditorNotebook::getCurrentEditor(), NumeReEditor::getEditorSetting(), NumeReEditor::GetFileName(), NumeReEditor::getFileType(), EditorNotebook::getFocusedEditor(), GetIntVar(), NumeReTerminal::getKernelSettings(), NumeReTerminal::getPathSettings(), Settings::getSetting(), gotoLine(), HandleModifiedFile(), NumeReEditor::HasBeenSaved(), ID_MENU_ABOUT, ID_MENU_ABSTRAHIZE_SECTION, ID_MENU_ADDEDITORBREAKPOINT, ID_MENU_AUTOFORMAT, ID_MENU_AUTOINDENT, ID_MENU_BOOKMARK_CLEARMENU, ID_MENU_BOOKMARK_NEXT, ID_MENU_BOOKMARK_PREVIOUS, ID_MENU_BOOKMARK_TOGGLE, ID_MENU_CLEAREDITORBREAKPOINTS, ID_MENU_CLOSEALL, ID_MENU_CLOSEOTHERS, ID_MENU_CLOSEPAGE, ID_MENU_CLOSETAB, ID_MENU_CLOSETABFORCE, ID_MENU_COMPARE_FILES, ID_MENU_COMPILE_LATEX, ID_MENU_COPY, ID_MENU_COPY_AS_PATH, ID_MENU_COPY_FILE_FROM_TREE, ID_MENU_CREATE_DOCUMENTATION, ID_MENU_CREATE_LATEX_FILE, ID_MENU_CREATE_PACKAGE, ID_MENU_CUT, ID_MENU_DELETE_FILE_FROM_TREE, ID_MENU_DISPCTRLCHARS, ID_MENU_EDIT_FILE_FROM_TREE, ID_MENU_EXECUTE, ID_MENU_EXPORT_AS_HTML, ID_MENU_EXPORT_FORMATTED, ID_MENU_FIND, ID_MENU_FIND_DUPLICATES, ID_MENU_FIND_INCLUDE, ID_MENU_FIND_PROCEDURE, ID_MENU_FOLD_ALL, ID_MENU_GOTOLINE, ID_MENU_HELP, ID_MENU_HELP_ON_ITEM, ID_MENU_INDENTONTYPE, ID_MENU_INSERT_FILE_INTO_TREE, ID_MENU_INSERT_IN_CONSOLE_FROM_TREE, ID_MENU_INSERT_IN_EDITOR_FROM_TREE, ID_MENU_INSTALLPLUGINFROMFILE, ID_MENU_LINEWRAP, ID_MENU_NEW_ASK, ID_MENU_NEW_EMPTY, ID_MENU_NEW_FOLDER_IN_TREE, ID_MENU_NEW_LAYOUT, ID_MENU_NEW_PLUGIN, ID_MENU_NEW_PROCEDURE, ID_MENU_NEW_SCRIPT, ID_MENU_OPEN_FILE_FROM_TREE, ID_MENU_OPEN_FILE_FROM_TREE_TO_TABLE, ID_MENU_OPEN_FOLDER, ID_MENU_OPEN_IMAGE_FROM_TREE, ID_MENU_OPEN_IN_EXPLORER, ID_MENU_OPEN_SOURCE_LOCAL, ID_MENU_OPEN_SOURCE_REMOTE, ID_MENU_OPTIONS, ID_MENU_PASTE, ID_MENU_PLUGINBROWSER, ID_MENU_PRINT_PAGE, ID_MENU_PRINT_PREVIEW, ID_MENU_PRINT_SETUP, ID_MENU_QUIT, ID_MENU_REDO, ID_MENU_REMOVE_FOLDER_FROM_TREE, ID_MENU_REMOVEEDITORBREAKPOINT, ID_MENU_RENAME_FILE_IN_TREE, ID_MENU_RENAME_SYMBOL, ID_MENU_REPLACE, ID_MENU_RUN_FROM_TAB, ID_MENU_RUN_LATEX, ID_MENU_SAVE, ID_MENU_SAVE_SOURCE_LOCAL, ID_MENU_SAVE_SOURCE_REMOTE, ID_MENU_SELECTION_DOWN, ID_MENU_SELECTION_UP, ID_MENU_SHOW_DEPENDENCY_REPORT, ID_MENU_SHOW_DESCRIPTION, ID_MENU_SHOW_REVISIONS, ID_MENU_SHOW_REVISIONS_FROM_TAB, ID_MENU_SORT_SELECTION_ASC, ID_MENU_SORT_SELECTION_DESC, ID_MENU_SPLIT_TAB_H, ID_MENU_SPLIT_TAB_V, ID_MENU_STOP_EXECUTION, ID_MENU_STRIP_SPACES_BACK, ID_MENU_STRIP_SPACES_BOTH, ID_MENU_STRIP_SPACES_FRONT, ID_MENU_TAG_CURRENT_REVISION, ID_MENU_TOGGLE_COMMENT_LINE, ID_MENU_TOGGLE_COMMENT_SELECTION, ID_MENU_TOGGLE_CONSOLE, ID_MENU_TOGGLE_DEBUGGER, ID_MENU_TOGGLE_FILETREE, ID_MENU_TOGGLE_HISTORY, ID_MENU_TOGGLE_NOTEBOOK_MULTIROW, ID_MENU_TRANSPOSESELECTION, ID_MENU_UNDO, ID_MENU_UNFOLD_ALL, ID_MENU_UNHIDE_ALL, ID_MENU_UNSPLIT_TAB, ID_MENU_USEANALYZER, ID_MENU_USESECTIONS, ID_MENU_USETXTADV, ID_NEW_PROJECT, NumeReEditor::InitDuplicateCode(), insertCopiedFile(), FileNameTreeData::isCommand, FileNameTreeData::isConstant, FileNameTreeData::isFunction, FileNameTreeData::isMethod, NumeReEditor::JumpToBookmark(), m_book, m_clickedTreeItem, m_copiedTreeItem, m_fileTree, m_functionTree, m_iconManager, m_menuItems, m_multiRowState, m_options, m_termContainer, m_terminal, NumeReEditor::Modified(), MODIFIEDFILE_COMPILE, NumeReEditor::MoveSelection(), NewFile(), OnAbout(), NumeReEditor::OnAbstrahizeSectionFromMenu(), NumeReEditor::OnAddBreakpoint(), OnAskForNewFile(), OnCalculateDependencies(), NumeReEditor::OnClearBreakpoints(), OnCompareFiles(), OnCopyAsPath(), OnCreateNewFolder(), OnCreatePackage(), OnExecuteFile(), NumeReEditor::OnExtractAsHTML(), NumeReEditor::OnExtractFormatted(), NumeReEditor::OnFindIncludeFromMenu(), NumeReEditor::OnFindProcedureFromMenu(), OnFindReplace(), OnHelp(), OnOpenInExplorer(), OnOpenSourceFile(), OnOptions(), OnPrintPage(), OnPrintPreview(), OnPrintSetup(), NumeReEditor::OnRemoveBreakpoint(), OnRemoveFolder(), NumeReEditor::OnRenameSymbolsFromMenu(), OnSaveSourceFile(), OnShowRevisions(), OnShowRevisionsFromTab(), OnTagCurrentRevision(), NumeReEditor::OnTranspose(), NumeReEditor::OnUnhideAllFromMenu(), OpenContainingFolder(), openImage(), OpenSourceFile(), PageHasChanged(), NumeReTerminal::pass_command(), NumeReTerminal::pasteText(), NumeReTerminal::ProcessInput(), NumeReEditor::removeWhiteSpaces(), renameFile(), replacePathSeparator(), RM_WS_BACK, RM_WS_BOTH, RM_WS_FRONT, runLaTeX(), SaveCurrentFile(), SCRIPTPATH, NumeReTerminal::setKernelSettings(), SETTING_B_DEBUGGER, NumeReEditor::SETTING_DISPCTRLCHARS, NumeReEditor::SETTING_INDENTONTYPE, NumeReEditor::SETTING_USEANALYZER, NumeReEditor::SETTING_USESECTIONS, NumeReEditor::SETTING_USETXTADV, NumeReEditor::SETTING_WRAPEOL, showConsole(), ShowHelp(), NumeReEditor::sortSelection(), EditorNotebook::split(), NumeReEditor::toggleBookmark(), NumeReEditor::ToggleCommentLine(), NumeReEditor::ToggleCommentSelection(), toggleConsole(), toggleFiletree(), toggleHistory(), NumeReEditor::ToggleSettings(), ToolTipTreeData::tooltip, NumeReEditor::UnfoldAll(), EditorNotebook::unsplit(), Settings::useDebugger(), and VN_CLICKEDTAB.
|
private |
This member function uses the Windows shell to open the selected folder in the Windows explorer.
Definition at line 2789 of file NumeReWindow.cpp.
References getTreeFolderPath(), and m_clickedTreeItem.
Referenced by OnMenuEvent().
|
private |
This member function opens a file dialog to let the user choose the files to open in the editor.
id | int |
Definition at line 6912 of file NumeReWindow.cpp.
References FILE_SUPPORTEDFILES, ID_MENU_OPEN_SOURCE_LOCAL, ID_MENU_OPEN_SOURCE_REMOTE, m_remoteMode, OpenFile(), and OpenFilesFromList().
Referenced by OnMenuEvent().
|
private |
This member function displays the settings dialog and performs all necessary updates, if the user confirms his changes.
Definition at line 7278 of file NumeReWindow.cpp.
References SyntaxStyles::background, Options::CONSOLE_STD, Settings::copySettings(), EvaluateOptions(), EditorNotebook::getCurrentEditor(), EditorNotebook::getEditor(), Options::GetEditorFont(), NumeReTerminal::getKernelSettings(), Settings::getSetting(), ProportionalSplitterWindow::GetSplitPercentage(), Options::GetSyntaxStyle(), OptionsDialog::InitializeDialog(), m_book, m_history, m_options, m_optionsDialog, m_splitCommandHistory, m_splitEditorOutput, m_termContainer, m_terminal, ProportionalSplitterWindow::SetCharHeigth(), NumeReEditor::SetEditorFont(), NumeReTerminal::SetFont(), NumeReTerminal::setKernelSettings(), ProportionalSplitterWindow::SetSashPositionFloat(), SETTING_S_TERMINALFONT, SettingsValue::stringval(), Options::toFont(), NumeReTerminal::UpdateColors(), NumeReEditor::UpdateSyntaxHighlighting(), and NumeReHistory::UpdateSyntaxHighlighting().
Referenced by OnMenuEvent().
|
private |
private OnPageChange Event handler called when the user clicks a different tab
event | wxNotebookEvent & The notebook event (not used) |
Definition at line 3715 of file NumeReWindow.cpp.
References m_setSelection, PageHasChanged(), and ToolbarStatusUpdate().
|
private |
Handles events, which originate from package menu (i.e. graphical plugins).
event | wxCommandEvent& |
Definition at line 1948 of file NumeReWindow.cpp.
References m_pluginMenuMap, m_terminal, and NumeReTerminal::pass_command().
|
private |
This member function prints the styled text of the current editor.
Definition at line 7327 of file NumeReWindow.cpp.
References _guilang, g_printData, Language::get(), EditorNotebook::getCurrentEditor(), Options::GetPrintStyle(), m_book, m_options, and OnPrintSetup().
Referenced by OnMenuEvent().
|
private |
This member function displays the styled text of the current editor in the print preview window.
Definition at line 7359 of file NumeReWindow.cpp.
References _guilang, DeterminePrintSize(), g_printData, Language::get(), EditorNotebook::getCurrentEditor(), Options::GetPrintStyle(), m_book, m_options, and OnPrintSetup().
Referenced by OnMenuEvent().
void NumeReWindow::OnPrintSetup | ( | ) |
This member function displays the printing page setup dialog.
Definition at line 7395 of file NumeReWindow.cpp.
References g_pageSetupData, and g_printData.
Referenced by OnMenuEvent(), OnPrintPage(), OnPrintPreview(), and HelpViewer::Print().
|
private |
This member function moves the selected directory directly to the Windows trash bin, if the user confirms the opened dialog.
Definition at line 2913 of file NumeReWindow.cpp.
References _guilang, FileNameTreeData::filename, Language::get(), m_clickedTreeItem, m_copiedTreeItem, m_fileTree, and Recycler::recycle().
Referenced by OnMenuEvent().
|
private |
This member function saves the file in the current editor.
id | int |
Definition at line 6934 of file NumeReWindow.cpp.
References ID_MENU_SAVE_SOURCE_LOCAL, ID_MENU_SAVE_SOURCE_REMOTE, m_remoteMode, and SaveCurrentFile().
Referenced by OnMenuEvent().
|
private |
This method displays the revision dialog for the selected tree item.
Definition at line 2805 of file NumeReWindow.cpp.
References FileNameTreeData::filename, VersionControlSystemManager::getRevisions(), m_clickedTreeItem, and m_fileTree.
Referenced by OnMenuEvent().
|
private |
This method displays the revision dialog for the selected tab item.
Definition at line 2828 of file NumeReWindow.cpp.
References EditorNotebook::getEditor(), NumeReEditor::GetFileNameAndPath(), GetIntVar(), VersionControlSystemManager::getRevisions(), m_book, and VN_CLICKEDTAB.
Referenced by OnMenuEvent().
|
private |
private OnSplitterDoubleClick Cancels the ability to "close" a split window by double-clicking the splitter bar
event | wxSplitterEvent & The generated splitter event |
Definition at line 6897 of file NumeReWindow.cpp.
|
private |
private OnStatusTimer Initiates UI updates based on the internal timer
event | wxTimerEvent & The generated timer event |
Definition at line 4619 of file NumeReWindow.cpp.
References m_updateTimer, OnUpdateSaveUI(), ToolbarStatusUpdate(), and UpdateStatusBar().
|
private |
This method allows the user to tag the current active revision of a file.
Definition at line 2851 of file NumeReWindow.cpp.
References _guilang, FileNameTreeData::filename, Language::get(), VersionControlSystemManager::getRevisions(), m_clickedTreeItem, and m_fileTree.
Referenced by OnMenuEvent().
|
private |
This member function prepares the data to be dragged from one of the both trees.
event | wxTreeEvent& |
Definition at line 6295 of file NumeReWindow.cpp.
References FileNameTreeData::filename, ID_FUNCTIONTREE, FileNameTreeData::isCommand, FileNameTreeData::isConstant, FileNameTreeData::isDir, FileNameTreeData::isFunction, FileNameTreeData::isMethod, m_dragDropSourceItem, m_fileTree, m_functionTree, and ToolTipTreeData::tooltip.
|
private |
private OnTreeItemActivated Attempts to open a file when an item is double-clicked in the project tree
event | wxTreeEvent & The generated tree event |
Definition at line 6134 of file NumeReWindow.cpp.
References FileNameTreeData::filename, EditorNotebook::getCurrentEditor(), EditorNotebook::getFocusedEditor(), ID_PROJECTTREE, FileNameTreeData::isCommand, FileNameTreeData::isConstant, FileNameTreeData::isDir, FileNameTreeData::isFunction, FileNameTreeData::isMethod, m_book, m_fileTree, m_functionTree, m_projectFileFolders, OpenFileByType(), and ToolTipTreeData::tooltip.
|
private |
private OnTreeItemRightClick Pops up a menu with appropriate items when the project tree is right-clicked. Also sets the last selected tree item and file type for use in other functions.
event | wxTreeEvent & The generated tree event |
Definition at line 6025 of file NumeReWindow.cpp.
References _guilang, FileNameTreeData::filename, Language::get(), VersionControlSystemManager::hasRevisions(), ID_MENU_COPY_AS_PATH, ID_MENU_COPY_FILE_FROM_TREE, ID_MENU_DELETE_FILE_FROM_TREE, ID_MENU_EDIT_FILE_FROM_TREE, ID_MENU_HELP_ON_ITEM, ID_MENU_INSERT_FILE_INTO_TREE, ID_MENU_INSERT_IN_CONSOLE_FROM_TREE, ID_MENU_INSERT_IN_EDITOR_FROM_TREE, ID_MENU_NEW_FOLDER_IN_TREE, ID_MENU_OPEN_FILE_FROM_TREE, ID_MENU_OPEN_FILE_FROM_TREE_TO_TABLE, ID_MENU_OPEN_IMAGE_FROM_TREE, ID_MENU_OPEN_IN_EXPLORER, ID_MENU_REMOVE_FOLDER_FROM_TREE, ID_MENU_RENAME_FILE_IN_TREE, ID_MENU_SHOW_REVISIONS, ID_MENU_TAG_CURRENT_REVISION, ID_PROJECTTREE, FileNameTreeData::isCommand, FileNameTreeData::isDir, m_clickedTreeItem, m_copiedTreeItem, m_fileTree, and m_functionTree.
|
private |
This member function displays the tooltip requested for the item below the mouse cursor.
event | wxTreeEvent& |
Definition at line 6218 of file NumeReWindow.cpp.
References _guilang, NumeRe::addLinebreaks(), addLinebreaks(), FileNameTreeData::filename, NumeRe::FindProcedureDefinition(), Language::get(), getFileDetails(), VersionControlSystemManager::getRevisions(), VersionControlSystemManager::hasRevisions(), ID_FUNCTIONTREE, FileNameTreeData::isCommand, FileNameTreeData::isConstant, FileNameTreeData::isDir, FileNameTreeData::isFunction, FileNameTreeData::isMethod, m_functionTree, NumeRe::CallTip::sDefinition, NumeRe::CallTip::sDocumentation, ToolTipTreeData::tooltip, and toUpperCase().
|
private |
private OnUpdateSaveUI Updates the status of the active tab if modified, as well as enabling the save items.
Definition at line 4934 of file NumeReWindow.cpp.
References EditorNotebook::getCurrentEditor(), ID_MENU_SAVE, m_book, NumeReEditor::Modified(), and UpdateWindowTitle().
Referenced by OnStatusTimer().
|
private |
This member function uses the Windows shell to open the containing folder of the selected tab in the Windows Explorer.
Definition at line 3487 of file NumeReWindow.cpp.
References EditorNotebook::getEditor(), NumeReEditor::GetFileName(), GetIntVar(), m_book, and VN_CLICKEDTAB.
Referenced by OnMenuEvent().
|
private |
private OpenFile Shows a file dialog and returns a list of files to open. Abstracts out local/remote file dialogs.
filterType | FileFilterType The type of files to show in the file dialog |
Definition at line 3854 of file NumeReWindow.cpp.
References _guilang, ConstructFilterString(), Language::get(), EditorNotebook::getCurrentEditor(), and m_book.
Referenced by OnOpenSourceFile().
void NumeReWindow::OpenFileByType | ( | const wxFileName & | filename | ) |
This member function opens the file with the passed name in the corresponding widget (either editor, ImageViewer or externally).
filename | const wxFileName& |
Definition at line 3885 of file NumeReWindow.cpp.
References m_terminal, OnCreatePackage(), openImage(), openPDF(), OpenSourceFile(), NumeReTerminal::pass_command(), replacePathSeparator(), setEditorFocus(), setViewerFocus(), and showConsole().
Referenced by DDE::Connection::OnDisconnect(), OnTreeItemActivated(), and OpenFilesFromList().
void NumeReWindow::OpenFilesFromList | ( | const wxArrayString & | filenameslist | ) |
This member function opens a list of files depending on their type in the correct widget.
filenameslist | const wxArrayString& |
Definition at line 3944 of file NumeReWindow.cpp.
References OpenFileByType().
Referenced by OnOpenSourceFile().
void NumeReWindow::openHTML | ( | wxString | HTMLcontent | ) |
This member function opens a HTML document (a documentation article) in the documentation viewer.
HTMLcontent | wxString |
Definition at line 2123 of file NumeReWindow.cpp.
void NumeReWindow::openImage | ( | wxFileName | filename | ) |
This member function opens the selected image in the image viewer window.
filename | wxFileName |
Definition at line 2060 of file NumeReWindow.cpp.
References getProgramFolder(), ImagePanel::getRelation(), getStandardIcon(), m_currentView, registerWindow(), and WT_IMAGEVIEWER.
Referenced by OnMenuEvent(), NumeReTerminal::OnThreadUpdate(), and OpenFileByType().
void NumeReWindow::openPDF | ( | wxFileName | filename | ) |
This member function opens a PDF document using the windows shell.
filename | wxFileName |
Definition at line 2108 of file NumeReWindow.cpp.
Referenced by OpenFileByType().
void NumeReWindow::OpenSourceFile | ( | wxArrayString | fnames, |
unsigned int | nLine = 0 , |
||
int | nOpenFileFlag = OPENFILE_NOTHING |
||
) |
Opens the given list of source files in the editor.
fnames | wxArrayString |
nLine | unsigned int The line to jump to |
nOpenFileFlag | int |
Definition at line 3963 of file NumeReWindow.cpp.
References Filewatcher::Add(), addToReloadBlackList(), CopyEditorSettings(), EditorNotebook::createEditor(), NumeReEditor::defaultPage, NumeReDropTarget::EDITOR, FILE_NOTYPE, FILE_NPRC, FILE_NSCR, FILE_XML, NumeReEditor::FocusOnLine(), NumeReEditor::FoldAll(), g_logger, EditorNotebook::getCurrentEditor(), EditorNotebook::getEditor(), GetFileContents(), NumeReEditor::GetFileNameAndPath(), EditorNotebook::getFocusedEditor(), Options::GetFoldDuringLoading(), GetPageNum(), NumeReEditor::HasBeenSaved(), DetachedLogger::info(), NumeReEditor::LoadFileText(), m_book, m_currentPage, m_options, m_remoteMode, m_setSelection, m_watcher, NumeReEditor::Modified(), OPENFILE_BLACKLIST_ADD, OPENFILE_BLACKLIST_REMOVE, OPENFILE_FORCE, PageHasChanged(), removeFromReloadBlackList(), NumeReEditor::SetFilename(), EditorNotebook::SetTabText(), NumeReEditor::ToggleSettings(), and NumeReEditor::UpdateSyntaxHighlighting().
Referenced by EvaluateCommandLine(), NumeReEditor::FindAndOpenInclude(), NumeReEditor::FindAndOpenProcedure(), NumeReDropTarget::OnData(), OnMenuEvent(), NumeReTerminal::OnThreadUpdate(), OpenFileByType(), and prepareSession().
void NumeReWindow::openTable | ( | NumeRe::Container< std::string > | _stringTable, |
const std::string & | tableDisplayName, | ||
const std::string & | sIntName | ||
) |
This member function displays the contents of the "string()" table or a cluster.
_stringTable | NumeRe::Container<std::string> |
tableDisplayName | const std::string& |
sIntName | const std::string& |
Definition at line 2152 of file NumeReWindow.cpp.
References TableViewer::GetHeight(), getStandardIcon(), TableViewer::GetWidth(), max, min, registerWindow(), TableViewer::SetData(), and WT_TABLEVIEWER.
Referenced by NumeReTerminal::OnThreadUpdate(), and showTable().
void NumeReWindow::openTable | ( | NumeRe::Table | _table, |
const std::string & | tableDisplayName, | ||
const std::string & | sIntName | ||
) |
This member function displays the contents of a usual table.
_table | NumeRe::Table |
tableDisplayName | const std::string& |
sIntName | const std::string& |
Definition at line 2176 of file NumeReWindow.cpp.
References TableViewer::GetHeight(), getStandardIcon(), TableViewer::GetWidth(), TablePanel::grid, m_terminal, max, min, registerWindow(), TableViewer::SetData(), TablePanel::SetTerminal(), and WT_TABLEVIEWER.
|
private |
private PageHasChanged Called whenever the active tab has changed, updating the active editor pointer
pageNr | int [=-1] The index of the newly selected page |
Definition at line 3358 of file NumeReWindow.cpp.
References NumeReEditor::AdvCallTipCancel(), EditorNotebook::getCurrentEditor(), EditorNotebook::getEditor(), NumeReEditor::getEditorSetting(), ID_MENU_DISPCTRLCHARS, ID_MENU_INDENTONTYPE, ID_MENU_LINEWRAP, ID_MENU_USEANALYZER, ID_MENU_USESECTIONS, ID_MENU_USETXTADV, m_appClosing, m_book, m_currentPage, m_loadingFilesDuringStartup, m_menuItems, m_procedureViewer, ProcedureViewer::setCurrentEditor(), NumeReEditor::SETTING_DISPCTRLCHARS, NumeReEditor::SETTING_INDENTONTYPE, NumeReEditor::SETTING_USEANALYZER, NumeReEditor::SETTING_USESECTIONS, NumeReEditor::SETTING_USETXTADV, NumeReEditor::SETTING_WRAPEOL, and UpdateWindowTitle().
Referenced by CloseAllFiles(), CloseFile(), NumeReWindow(), OnMenuEvent(), OnPageChange(), and OpenSourceFile().
void NumeReWindow::pass_command | ( | const wxString & | command, |
bool | isEvent = false |
||
) |
This member function is a wrapper for the corresponding terminal function to pass a command to the kernel.
command | const wxString& |
Definition at line 2529 of file NumeReWindow.cpp.
References m_terminal, and NumeReTerminal::pass_command().
Referenced by CustomWindow::handleEvent(), VariableViewer::OnEditTable(), VariableViewer::OnNewTable(), VariableViewer::OnRemoveTable(), VariableViewer::OnRenameTable(), VariableViewer::OnSaveasTable(), and VariableViewer::OnSaveTable().
void NumeReWindow::PassImageList | ( | wxImageList * | imagelist | ) |
public PassImageList Allows the RemoteFileDialog to pass along its imagelist for use in the project tree
imagelist | wxImageList * The imagelist to use |
Definition at line 5064 of file NumeReWindow.cpp.
References m_fileTree.
|
private |
This member function creates the contents of the symbols tree.
Definition at line 5835 of file NumeReWindow.cpp.
References _guilang, Language::addToLanguage(), Language::get(), NumeReTerminal::getFunctionLanguageStrings(), IconManager::GetIconIndex(), Language::getList(), NumeReTerminal::getPluginLanguageStrings(), FileNameTreeData::isCommand, FileNameTreeData::isConstant, FileNameTreeData::isDir, FileNameTreeData::isFunction, FileNameTreeData::isMethod, m_functionTree, m_iconManager, m_terminal, prepareTooltip(), tokenize(), ToolTipTreeData::tooltip, and toUpperCase().
Referenced by NumeReWindow(), and refreshFunctionTree().
|
private |
This member function recreates the last session by reading the session file or creates a new empty session, if the corresponding setting was set to false
.
Definition at line 1009 of file NumeReWindow.cpp.
References g_logger, EditorNotebook::getCurrentEditor(), getProgramFolder(), Options::GetSaveBookmarksInSession(), Options::GetSaveSession(), DetachedLogger::info(), m_book, m_loadingFilesDuringStartup, m_options, m_UnrecoverableFiles, NewFile(), OpenSourceFile(), NumeReEditor::setBookmarks(), NumeReEditor::SetUnsaved(), StrToInt(), NumeReEditor::ToggleSettings(), and toIntVector().
Referenced by NumeReWindow().
|
private |
This member function prepares the tooltip shown by the symbols tree.
sTooltiptext | const std::string& |
Definition at line 5973 of file NumeReWindow.cpp.
Referenced by prepareFunctionTree().
void NumeReWindow::Ready | ( | ) |
This member function tells NumeRe that it shall display the "ready" state to the user.
Definition at line 4215 of file NumeReWindow.cpp.
References EditorNotebook::getEditor(), ID_MENU_EXECUTE, ID_MENU_STOP_EXECUTION, m_book, m_debugViewer, m_statusBar, MARKER_FOCUSEDLINE, DebugViewer::OnExecutionFinished(), NumeReStatusbar::Ready(), and UpdateVarViewer().
Referenced by MyApp::OnInit(), and NumeReTerminal::Ready().
void NumeReWindow::refreshFunctionTree | ( | ) |
This member function is a simple wrapper for refreshing the contents of the function tree.
Definition at line 5767 of file NumeReWindow.cpp.
References _guilang, g_logger, EditorNotebook::getEditor(), DetachedLogger::info(), Language::loadStrings(), m_book, m_functionTree, m_history, m_options, prepareFunctionTree(), NumeReEditor::UpdateSyntaxHighlighting(), NumeReHistory::UpdateSyntaxHighlighting(), and Settings::useCustomLangFiles().
Referenced by NumeReTerminal::OnThreadUpdate().
void NumeReWindow::registerWindow | ( | wxWindow * | window, |
WindowType | type | ||
) |
Registers a new window in the internal map.
window | wxWindow* |
type | WindowType |
Definition at line 6798 of file NumeReWindow.cpp.
References m_openedWindows.
Referenced by openImage(), openTable(), showGraph(), ShowHelp(), and showWindow().
void NumeReWindow::reloadFileIfOpen | ( | const wxString & | fname, |
bool | force = false |
||
) |
Reloads a file if it is open in any editor.
fname | const wxString& |
force | bool |
Definition at line 6736 of file NumeReWindow.cpp.
References _guilang, g_logger, Language::get(), EditorNotebook::getCurrentEditor(), EditorNotebook::getEditor(), GetFileContents(), NumeReEditor::GetFileNameAndPath(), EditorNotebook::getFocusedEditor(), DetachedLogger::info(), NumeReEditor::LoadFileText(), m_book, m_filesLastSaveTime, and MARKER_SAVED.
Referenced by OnFileEventTimer(), and RevisionDialog::OnMenuEvent().
void NumeReWindow::removeFromReloadBlackList | ( | const wxString & | sFilename | ) |
This member function removes the passed file name from the list of files, which shall not be reloaded automatically.
sFilename | const wxString& |
Definition at line 872 of file NumeReWindow.cpp.
References vReloadBlackList.
Referenced by OpenSourceFile().
|
private |
This member function renames the selected file in the file tree with a new name provided by the user in a text entry dialog.
If the file has internal revisions, the version control system manager keeps track on the renaming of the corresponding revisions file.
Definition at line 2725 of file NumeReWindow.cpp.
References _guilang, FileNameTreeData::filename, Language::get(), VersionControlSystemManager::getRevisionPath(), VersionControlSystemManager::getRevisions(), VersionControlSystemManager::hasRevisions(), m_clickedTreeItem, m_fileTree, and UpdateLocationIfOpen().
Referenced by OnMenuEvent().
|
private |
private ReplaceAllStrings Replaces all occurrences of the given string in the current editor
findString | const wxString & The string to find and replace |
replaceString | const wxString & The string to insert |
flags | int [=-1] The selected find/replace flags |
Definition at line 6623 of file NumeReWindow.cpp.
References FindString(), EditorNotebook::getFocusedEditor(), m_book, and wxFR_WRAPAROUND.
Referenced by OnFindEvent().
void NumeReWindow::runLaTeX | ( | ) |
This member function creates the LaTeX documentation files and uses the Windows shell to run the XeLaTeX compiler.
Definition at line 2603 of file NumeReWindow.cpp.
References _guilang, DocumentationGenerator::createFullDocumentation(), fileExists(), Language::get(), EditorNotebook::getCurrentEditor(), NumeReEditor::GetFileNameAndPath(), Options::GetLaTeXRoot(), NumeReTerminal::getPathSettings(), GenericTerminal::getSyntax(), m_book, m_options, m_terminal, and SAVEPATH.
Referenced by OnMenuEvent().
|
private |
Saves all currently opened files to the harddisk.
refreshLibrary | bool |
Definition at line 4418 of file NumeReWindow.cpp.
References CreateProcedureTree(), EditorNotebook::getEditor(), NumeReTerminal::getPathSettings(), NumeReEditor::HasBeenSaved(), m_book, m_terminal, NumeReEditor::Modified(), PROCPATH, SaveCurrentFile(), SaveTab(), NumeReTerminal::UpdateLibrary(), and UpdateWindowTitle().
Referenced by OnExecuteFile().
|
private |
Saves the current opened file.
saveas | True if this is explicitly a "Save-As" command and a file dialog must be shown |
Definition at line 4266 of file NumeReWindow.cpp.
References _guilang, Filewatcher::Add(), ConstructFilterString(), FILE_DATAFILES, FILE_NONSOURCE, FILE_NPRC, FILE_NSCR, FILE_TEXSOURCE, Language::get(), EditorNotebook::getCurrentEditor(), NumeReEditor::GetFileName(), NumeReEditor::GetFilenameString(), NumeReEditor::getFileType(), NumeReTerminal::getPathSettings(), NumeReEditor::HasBeenSaved(), m_book, m_remoteMode, m_terminal, m_watcher, PROCPATH, Filewatcher::Remove(), SAVEPATH, SaveTab(), SCRIPTPATH, NumeReEditor::SetFilename(), and UpdateWindowTitle().
Referenced by HandleModifiedFile(), OnMenuEvent(), OnSaveSourceFile(), and SaveAll().
|
private |
Saves the file in the selected editor tab.
tab | int |
Definition at line 4380 of file NumeReWindow.cpp.
References _guilang, Language::get(), EditorNotebook::getEditor(), NumeReEditor::GetFileNameAndPath(), getProgramFolder(), m_book, m_filesLastSaveTime, replacePathSeparator(), NumeReEditor::SaveFile(), FileSystem::setPath(), EditorNotebook::SetTabText(), and NumeReEditor::UpdateSyntaxHighlighting().
Referenced by SaveAll(), and SaveCurrentFile().
|
private |
private SelectIntVar Internal utility routine used by GetIntVar / SetIntVar
variableName | int The ID of the variable to be get or set |
Definition at line 5032 of file NumeReWindow.cpp.
References m_clickedTabNum, m_currentPage, m_numPages, VN_CLICKEDTAB, VN_CURRENTPAGE, and VN_NUMPAGES.
Referenced by GetIntVar(), and SetIntVar().
|
private |
This member function sets the default printer settings.
Definition at line 6002 of file NumeReWindow.cpp.
Referenced by NumeReWindow().
|
private |
This member function focuses the editor widget.
Definition at line 5740 of file NumeReWindow.cpp.
References EditorNotebook::getCurrentEditor(), and m_book.
Referenced by OpenFileByType().
void NumeReWindow::SetIntVar | ( | int | variableName, |
int | value | ||
) |
public SetIntVar A "one-size-fits-all" integer Set routine, to avoid pointless duplication
variableName | int The ID of the member variable to set |
value | int The value to set it to |
Definition at line 4984 of file NumeReWindow.cpp.
References SelectIntVar().
Referenced by EditorNotebook::OnButtonClicked(), EditorNotebook::OnTabMiddleClicked(), and EditorNotebook::OnTabRightClicked().
|
private |
This member function focuses the last opened ImageViewer window.
Definition at line 5753 of file NumeReWindow.cpp.
References m_currentView.
Referenced by OpenFileByType().
|
private |
This member function unhides the terminal, if it was hidden before.
Definition at line 5694 of file NumeReWindow.cpp.
References m_termContainer, and toggleConsole().
Referenced by OnExecuteFile(), OnMenuEvent(), and OpenFileByType().
|
private |
This private member function displays a directory dialog.
window | NumeRe::Window& |
Definition at line 2361 of file NumeReWindow.cpp.
References getNextArgument(), getStandardIcon(), NumeRe::Window::getWindowSettings(), prepareStringsForDialog(), NumeRe::WindowSettings::sExpression, NumeRe::STATUS_CANCEL, NumeRe::STATUS_OK, NumeRe::WindowSettings::sTitle, and NumeRe::Window::updateWindowInformation().
Referenced by showWindow().
|
private |
This private member function displays a file dialog.
window | NumeRe::Window& |
Definition at line 2336 of file NumeReWindow.cpp.
References getNextArgument(), getStandardIcon(), NumeRe::Window::getWindowSettings(), prepareStringsForDialog(), NumeRe::WindowSettings::sExpression, NumeRe::STATUS_CANCEL, NumeRe::STATUS_OK, NumeRe::WindowSettings::sTitle, and NumeRe::Window::updateWindowInformation().
Referenced by showWindow().
|
private |
This private member function displays a graph.
window | NumeRe::Window& |
Definition at line 2317 of file NumeReWindow.cpp.
References NumeRe::Window::getGraph(), getStandardIcon(), GraphHelper::getTitle(), m_terminal, registerWindow(), and WT_GRAPH.
Referenced by showWindow().
bool NumeReWindow::ShowHelp | ( | const wxString & | sDocId | ) |
This member function displays the help page for the selected documentation ID.
sDocId | const wxString& |
Definition at line 7482 of file NumeReWindow.cpp.
References _guilang, Language::get(), registerWindow(), DocumentationBrowser::SetStartPage(), and WT_DOCVIEWER.
Referenced by OnHelp(), NumeReEditor::OnHelpOnSelection(), OnMenuEvent(), NumeReTerminal::OnThreadUpdate(), and ToolBarSearchCtrl::selectItem().
|
private |
This private member function shows a list dialog.
window | NumeRe::Window& |
Definition at line 2454 of file NumeReWindow.cpp.
References getNextArgument(), getStandardIcon(), NumeRe::Window::getWindowSettings(), prepareStringsForDialog(), NumeRe::WindowSettings::sExpression, NumeRe::WindowSettings::sMessage, NumeRe::STATUS_CANCEL, NumeRe::STATUS_OK, NumeRe::WindowSettings::sTitle, and NumeRe::Window::updateWindowInformation().
Referenced by showWindow().
|
private |
This private member function displays a message box.
window | NumeRe::Window& |
Definition at line 2407 of file NumeReWindow.cpp.
References NumeRe::CTRL_CANCELBUTTON, NumeRe::CTRL_ICONERROR, NumeRe::CTRL_ICONINFORMATION, NumeRe::CTRL_ICONQUESTION, NumeRe::CTRL_ICONWARNING, NumeRe::CTRL_OKBUTTON, NumeRe::CTRL_YESNOBUTTON, NumeRe::Window::getWindowSettings(), NumeRe::WindowSettings::nControls, prepareStringsForDialog(), NumeRe::WindowSettings::sMessage, NumeRe::STATUS_CANCEL, NumeRe::STATUS_OK, NumeRe::WindowSettings::sTitle, and NumeRe::Window::updateWindowInformation().
Referenced by showWindow().
void NumeReWindow::ShowRevision | ( | const wxString & | revisionName, |
const wxString & | revisionContent | ||
) |
This member function creates a new editor page and copies the passed revision contents to this page.
revisionName | const wxString& |
revisionContent | const wxString& |
Definition at line 3266 of file NumeReWindow.cpp.
References FILE_DIFF, EditorNotebook::getCurrentEditor(), m_book, NewFile(), NumeReEditor::SetUnsaved(), and NumeReEditor::UpdateSyntaxHighlighting().
Referenced by RevisionDialog::compareRevisions(), OnCompareFiles(), and RevisionDialog::showRevision().
|
private |
This private member function shows a selection dialog.
window | NumeRe::Window& |
Definition at line 2485 of file NumeReWindow.cpp.
References getNextArgument(), getStandardIcon(), NumeRe::Window::getWindowSettings(), prepareStringsForDialog(), NumeRe::WindowSettings::sExpression, NumeRe::WindowSettings::sMessage, NumeRe::STATUS_CANCEL, NumeRe::STATUS_OK, NumeRe::WindowSettings::sTitle, and NumeRe::Window::updateWindowInformation().
Referenced by showWindow().
void NumeReWindow::showTable | ( | const wxString & | tableName, |
const wxString & | tableDisplayName | ||
) |
This member function is a wrapper for an event handler of the variable viewer to display the contents of the selected item.
tableName | const wxString& |
tableDisplayName | const wxString& |
Definition at line 2249 of file NumeReWindow.cpp.
References NumeReTerminal::getStringTable(), NumeReTerminal::getTable(), m_terminal, and openTable().
Referenced by VariableViewer::OnShowTable().
|
private |
This private member function displays a text entry dialog.
window | NumeRe::Window& |
Definition at line 2383 of file NumeReWindow.cpp.
References getNextArgument(), getStandardIcon(), NumeRe::Window::getWindowSettings(), prepareStringsForDialog(), NumeRe::WindowSettings::sExpression, NumeRe::WindowSettings::sMessage, NumeRe::STATUS_CANCEL, NumeRe::STATUS_OK, NumeRe::WindowSettings::sTitle, and NumeRe::Window::updateWindowInformation().
Referenced by showWindow().
void NumeReWindow::showWindow | ( | NumeRe::Window & | window | ) |
This public member function handles the creation of windows requested by the kernel.
window | NumeRe::Window& |
Definition at line 2267 of file NumeReWindow.cpp.
References NumeRe::CTRL_FILEDIALOG, NumeRe::CTRL_FOLDERDIALOG, NumeRe::CTRL_LISTDIALOG, NumeRe::CTRL_MESSAGEBOX, NumeRe::CTRL_SELECTIONDIALOG, NumeRe::CTRL_TEXTENTRY, NumeRe::Window::getType(), NumeRe::Window::getWindowSettings(), NumeRe::WindowSettings::nControls, registerWindow(), showDirDialog(), showFileDialog(), showGraph(), showListDialog(), showMessageBox(), showSelectionDialog(), showTextEntry(), NumeRe::WINDOW_CUSTOM, NumeRe::WINDOW_GRAPH, NumeRe::WINDOW_MODAL, and WT_CUSTOM.
Referenced by NumeReTerminal::OnThreadUpdate().
|
private |
Definition at line 4583 of file NumeReWindow.cpp.
|
private |
This member function toggles the bottom part of the window containing the terminal and the list view widgets.
Definition at line 5607 of file NumeReWindow.cpp.
References Settings::getSetting(), ProportionalSplitterWindow::GetSplitPercentage(), m_book, m_noteTerm, m_options, m_splitCommandHistory, m_splitEditorOutput, m_termContainer, m_terminal, SETTING_V_POS_SASH_H, ProportionalSplitterWindow::SplitHorizontally(), NumeReTerminal::UpdateSize(), and SettingsValue::value().
Referenced by OnMenuEvent(), and showConsole().
|
private |
This member function toggles the left sidebar of the window containing both trees.
Definition at line 5638 of file NumeReWindow.cpp.
References Settings::getSetting(), m_book, m_options, m_splitEditorOutput, m_splitProjectEditor, m_terminal, m_treeBook, SETTING_V_POS_SASH_V, NumeReTerminal::UpdateSize(), and SettingsValue::value().
Referenced by OnMenuEvent().
|
private |
This member function toggles the rightmost part of the lower window section containing the history and the list view widgets.
Definition at line 5667 of file NumeReWindow.cpp.
References Settings::getSetting(), ProportionalSplitterWindow::GetSplitPercentage(), m_noteTerm, m_options, m_splitCommandHistory, m_termContainer, m_terminal, SETTING_V_POS_SASH_T, ProportionalSplitterWindow::SplitVertically(), NumeReTerminal::UpdateSize(), and SettingsValue::value().
Referenced by OnMenuEvent().
|
private |
private OnUpdateDebugUI Updates the debug-related toolbar items
Definition at line 4803 of file NumeReWindow.cpp.
References FILE_CPP, FILE_MATLAB, FILE_NPRC, FILE_NSCR, EditorNotebook::getCurrentEditor(), NumeReEditor::getEditorSetting(), NumeReEditor::GetFileName(), NumeReEditor::getFileType(), ID_MENU_ADDEDITORBREAKPOINT, ID_MENU_CLEAREDITORBREAKPOINTS, ID_MENU_EXECUTE, ID_MENU_INDENTONTYPE, ID_MENU_LINEWRAP, ID_MENU_REMOVEEDITORBREAKPOINT, ID_MENU_STOP_EXECUTION, ID_MENU_USEANALYZER, m_book, NumeReEditor::SETTING_INDENTONTYPE, NumeReEditor::SETTING_USEANALYZER, and NumeReEditor::SETTING_WRAPEOL.
Referenced by OnPageChange(), OnStatusTimer(), and UpdateToolbar().
void NumeReWindow::unregisterWindow | ( | wxWindow * | window | ) |
Removes the passed window form the internal window list (only if it exists).
window | wxWindow* |
Definition at line 6813 of file NumeReWindow.cpp.
References m_openedWindows.
void NumeReWindow::UpdateLocationIfOpen | ( | const wxFileName & | fname, |
const wxFileName & | newFName | ||
) |
Updates the editor's and notebook's filename location, if it already opened and not modified.
fname | const wxFileName& |
newFName | const wxFileName& |
Definition at line 6708 of file NumeReWindow.cpp.
References EditorNotebook::getEditor(), NumeReEditor::GetFileNameAndPath(), GetPageNum(), m_book, NumeReEditor::Modified(), NumeReEditor::SetFilename(), EditorNotebook::SetTabText(), and UpdateWindowTitle().
Referenced by NumeReDropTarget::OnData(), and renameFile().
|
private |
private UpdateMenuBar Recreates the menus, based on the current permissions
Definition at line 5161 of file NumeReWindow.cpp.
References _guilang, EVENTID_PLUGIN_MENU_END, Language::get(), EditorNotebook::getCurrentEditor(), NumeReEditor::getEditorSetting(), NumeReTerminal::getKernelSettings(), ID_MENU_ABOUT, ID_MENU_ABSTRAHIZE_SECTION, ID_MENU_AUTOFORMAT, ID_MENU_AUTOINDENT, ID_MENU_BOOKMARK_CLEARMENU, ID_MENU_BOOKMARK_NEXT, ID_MENU_BOOKMARK_PREVIOUS, ID_MENU_BOOKMARK_TOGGLE, ID_MENU_CLOSEALL, ID_MENU_CLOSEPAGE, ID_MENU_COMPARE_FILES, ID_MENU_COMPILE_LATEX, ID_MENU_COPY, ID_MENU_CREATE_DOCUMENTATION, ID_MENU_CREATE_LATEX_FILE, ID_MENU_CREATE_PACKAGE, ID_MENU_CUT, ID_MENU_DISPCTRLCHARS, ID_MENU_EXECUTE, ID_MENU_EXPORT_AS_HTML, ID_MENU_EXPORT_FORMATTED, ID_MENU_FIND, ID_MENU_FIND_DUPLICATES, ID_MENU_FIND_INCLUDE, ID_MENU_FIND_PROCEDURE, ID_MENU_FOLD_ALL, ID_MENU_GOTOLINE, ID_MENU_HELP, ID_MENU_INDENTONTYPE, ID_MENU_INSTALLPLUGINFROMFILE, ID_MENU_LINEWRAP, ID_MENU_NEW_EMPTY, ID_MENU_NEW_LAYOUT, ID_MENU_NEW_PLUGIN, ID_MENU_NEW_PROCEDURE, ID_MENU_NEW_SCRIPT, ID_MENU_OPEN_SOURCE_LOCAL, ID_MENU_OPTIONS, ID_MENU_PASTE, ID_MENU_PLUGINBROWSER, ID_MENU_PRINT_PAGE, ID_MENU_PRINT_PREVIEW, ID_MENU_PRINT_SETUP, ID_MENU_QUIT, ID_MENU_REDO, ID_MENU_RENAME_SYMBOL, ID_MENU_REPLACE, ID_MENU_RUN_LATEX, ID_MENU_SAVE, ID_MENU_SAVE_SOURCE_LOCAL, ID_MENU_SELECTION_DOWN, ID_MENU_SELECTION_UP, ID_MENU_SHOW_DEPENDENCY_REPORT, ID_MENU_SORT_SELECTION_ASC, ID_MENU_SORT_SELECTION_DESC, ID_MENU_STRIP_SPACES_BACK, ID_MENU_STRIP_SPACES_BOTH, ID_MENU_STRIP_SPACES_FRONT, ID_MENU_TOGGLE_COMMENT_LINE, ID_MENU_TOGGLE_COMMENT_SELECTION, ID_MENU_TOGGLE_CONSOLE, ID_MENU_TOGGLE_DEBUGGER, ID_MENU_TOGGLE_FILETREE, ID_MENU_TOGGLE_HISTORY, ID_MENU_TRANSPOSESELECTION, ID_MENU_UNDO, ID_MENU_UNFOLD_ALL, ID_MENU_UNHIDE_ALL, ID_MENU_USEANALYZER, ID_MENU_USESECTIONS, ID_MENU_USETXTADV, m_appStarting, m_book, m_menuItems, m_terminal, NumeReEditor::SETTING_DISPCTRLCHARS, NumeReEditor::SETTING_INDENTONTYPE, NumeReEditor::SETTING_USEANALYZER, NumeReEditor::SETTING_USESECTIONS, NumeReEditor::SETTING_USETXTADV, NumeReEditor::SETTING_WRAPEOL, UpdatePackageMenu(), and Settings::useDebugger().
Referenced by NumeReWindow().
|
private |
Updates the package menu after an installation.
Definition at line 5374 of file NumeReWindow.cpp.
References _guilang, EVENTID_PLUGIN_MENU_END, EVENTID_PLUGIN_MENU_START, Language::get(), NumeReTerminal::getMenuMap(), m_pluginMenuMap, m_terminal, and removeMaskedStrings().
Referenced by notifyInstallationDone(), and UpdateMenuBar().
|
private |
private UpdateStatusBar Updates the status bar text as needed
Definition at line 4858 of file NumeReWindow.cpp.
References _guilang, NumeReEditor::defaultPage, Language::get(), EditorNotebook::getCurrentEditor(), NumeReEditor::getEditorSetting(), NumeReEditor::GetFileNameAndPath(), EditorNotebook::getFocusedEditor(), NumeReTerminal::getKernelSettings(), m_book, m_statusBar, m_terminal, NumeReStatusbar::SetStatus(), NumeReEditor::SETTING_USEANALYZER, NumeReStatusbar::STATUS_CARETPOSITION, NumeReStatusbar::STATUS_DEBUGGER, NumeReStatusbar::STATUS_FILETYPE, NumeReStatusbar::STATUS_PATH, NumeReStatusbar::STATUS_RWMODE, toUpperCase(), and Settings::useDebugger().
Referenced by OnStatusTimer().
|
private |
private UpdateTerminalNotebook Recreates the notebook containing the terminal and other related widgets
Definition at line 5538 of file NumeReWindow.cpp.
References Settings::getSetting(), m_appStarting, m_book, m_noteTerm, m_options, m_splitCommandHistory, m_splitEditorOutput, m_termContainer, m_terminal, SETTING_V_POS_SASH_H, SETTING_V_POS_SASH_T, ProportionalSplitterWindow::SplitHorizontally(), ProportionalSplitterWindow::SplitVertically(), NumeReTerminal::UpdateSize(), and SettingsValue::value().
Referenced by NumeReWindow().
void NumeReWindow::updateTipAtStartupSetting | ( | bool | bTipAtStartup | ) |
This function can be used to deactivate the "Tip of the day" functionality directly from the dialog.
bTipAtStartup | bool |
Definition at line 747 of file NumeReWindow.cpp.
References SettingsValue::active(), Settings::getSetting(), m_options, m_terminal, NumeReTerminal::setKernelSettings(), and SETTING_B_SHOWHINTS.
Referenced by MyApp::OnInit().
|
private |
private UpdateToolbar Recreates the toolbar, based on the current permissions
Definition at line 5425 of file NumeReWindow.cpp.
References _guilang, NumeRe::DataBase::addData(), fileExists(), Language::get(), NumeReTerminal::getKernelSettings(), Options::GetShowToolbarText(), ID_MENU_ADDEDITORBREAKPOINT, ID_MENU_CLEAREDITORBREAKPOINTS, ID_MENU_COPY, ID_MENU_CUT, ID_MENU_EXECUTE, ID_MENU_FIND, ID_MENU_INDENTONTYPE, ID_MENU_LINEWRAP, ID_MENU_NEW_ASK, ID_MENU_NEW_EMPTY, ID_MENU_NEW_LAYOUT, ID_MENU_NEW_PLUGIN, ID_MENU_NEW_PROCEDURE, ID_MENU_NEW_SCRIPT, ID_MENU_OPEN_SOURCE_LOCAL, ID_MENU_PASTE, ID_MENU_REDO, ID_MENU_REMOVEEDITORBREAKPOINT, ID_MENU_REPLACE, ID_MENU_SAVE, ID_MENU_STOP_EXECUTION, ID_MENU_TOGGLE_DEBUGGER, ID_MENU_UNDO, ID_MENU_USEANALYZER, m_options, m_terminal, ToolbarStatusUpdate(), Settings::useCustomLangFiles(), Settings::useDebugger(), and FileSystem::ValidFileName().
Referenced by EvaluateOptions().
|
private |
This member function gets the current variable list from the kernel and updates the variable viewer widget correspondingly.
Definition at line 5574 of file NumeReWindow.cpp.
References NumeReTerminal::getVariableList(), m_terminal, m_varViewer, NumeReVariables::nClusters, NumeReVariables::nNumerics, NumeReVariables::nStrings, NumeReVariables::nTables, VariableViewer::UpdateVariables(), and NumeReVariables::vVariables.
Referenced by Ready().
|
private |
This member function updates the application's window title using the current opened file's name.
filename | const wxString& |
Definition at line 5593 of file NumeReWindow.cpp.
References sVersion.
Referenced by EvaluateOptions(), OnUpdateSaveUI(), PageHasChanged(), SaveAll(), SaveCurrentFile(), and UpdateLocationIfOpen().
|
private |
Displays the output from wxLogDebug calls
Definition at line 370 of file NumeReWindow.h.
Referenced by NumeReWindow().
|
private |
Definition at line 456 of file NumeReWindow.h.
Referenced by CloseAllFiles(), CloseFile(), NumeReWindow(), OnClose(), and PageHasChanged().
|
private |
Definition at line 460 of file NumeReWindow.h.
Referenced by NumeReWindow(), OnFileSystemEvent(), UpdateMenuBar(), and UpdateTerminalNotebook().
|
private |
Main editor notebook
Definition at line 374 of file NumeReWindow.h.
Referenced by CloseAllFiles(), CloseFile(), CloseOtherTabs(), CloseTab(), compileLaTeX(), CopyEditorSettings(), createLaTeXFile(), DefaultPage(), EvaluateOptions(), EvaluateTab(), FindAndOpenProcedure(), FindString(), GetCurrentEditor(), GetPageNum(), gotoLine(), HandleModifiedFile(), NewFile(), NumeReWindow(), OnCalculateDependencies(), OnClose(), OnCreatePackage(), OnFileEventTimer(), OnFindEvent(), OnFindReplace(), OnMenuEvent(), OnOptions(), OnPrintPage(), OnPrintPreview(), OnShowRevisionsFromTab(), OnTreeItemActivated(), OnUpdateSaveUI(), OpenContainingFolder(), OpenFile(), OpenSourceFile(), PageHasChanged(), prepareSession(), Ready(), refreshFunctionTree(), reloadFileIfOpen(), ReplaceAllStrings(), runLaTeX(), SaveAll(), SaveCurrentFile(), SaveTab(), setEditorFocus(), ShowRevision(), toggleConsole(), toggleFiletree(), ToolbarStatusUpdate(), UpdateLocationIfOpen(), UpdateMenuBar(), UpdateStatusBar(), and UpdateTerminalNotebook().
|
private |
The last clicked tab in the editor notebook
Definition at line 453 of file NumeReWindow.h.
Referenced by SelectIntVar().
|
private |
The last clicked item in the project tree
Definition at line 436 of file NumeReWindow.h.
Referenced by deleteFile(), insertCopiedFile(), OnCopyAsPath(), OnCreateNewFolder(), OnMenuEvent(), OnOpenInExplorer(), OnRemoveFolder(), OnShowRevisions(), OnTagCurrentRevision(), OnTreeItemRightClick(), and renameFile().
|
private |
Definition at line 419 of file NumeReWindow.h.
|
private |
Definition at line 420 of file NumeReWindow.h.
|
private |
The last copied item in the project tree
Definition at line 438 of file NumeReWindow.h.
Referenced by deleteFile(), insertCopiedFile(), NumeReWindow(), OnMenuEvent(), OnRemoveFolder(), and OnTreeItemRightClick().
|
private |
Definition at line 461 of file NumeReWindow.h.
|
private |
Tracks the active editor tab
Definition at line 449 of file NumeReWindow.h.
Referenced by DefaultPage(), NewFile(), NumeReWindow(), OpenSourceFile(), PageHasChanged(), and SelectIntVar().
|
private |
Definition at line 386 of file NumeReWindow.h.
Referenced by NumeReWindow(), openImage(), and setViewerFocus().
|
private |
The debug I/O widget container
Definition at line 412 of file NumeReWindow.h.
|
private |
Definition at line 444 of file NumeReWindow.h.
Referenced by evaluateDebugInfo(), EvaluateOptions(), NumeReWindow(), OnClose(), and Ready().
|
private |
Definition at line 441 of file NumeReWindow.h.
Referenced by getDragDropSourceItem(), OnFileSystemEvent(), and OnTreeDragDrop().
|
private |
Definition at line 428 of file NumeReWindow.h.
Referenced by NumeReWindow(), OnClose(), OnFileSystemEvent(), and ~NumeReWindow().
|
private |
Tracks the number of new files created - used to identify <untitled> files
Definition at line 451 of file NumeReWindow.h.
Referenced by CloseFile(), DefaultPage(), NewFile(), and NumeReWindow().
|
private |
Definition at line 390 of file NumeReWindow.h.
Referenced by NumeReWindow().
|
private |
Definition at line 482 of file NumeReWindow.h.
Referenced by OnFileEventTimer(), reloadFileIfOpen(), and SaveTab().
|
private |
Definition at line 483 of file NumeReWindow.h.
|
private |
Displays the files in the current project
Definition at line 388 of file NumeReWindow.h.
Referenced by deleteFile(), EvaluateOptions(), getTreeFolderPath(), getTreePath(), insertCopiedFile(), LoadFilesToTree(), NumeReWindow(), OnFileEventTimer(), OnFileSystemEvent(), OnMenuEvent(), OnRemoveFolder(), OnShowRevisions(), OnTagCurrentRevision(), OnTreeDragDrop(), OnTreeItemActivated(), OnTreeItemRightClick(), PassImageList(), and renameFile().
|
private |
Definition at line 477 of file NumeReWindow.h.
Referenced by ConstructFilterString(), and NumeReWindow().
|
private |
Definition at line 475 of file NumeReWindow.h.
Referenced by ConstructFilterString(), and NumeReWindow().
|
private |
Definition at line 474 of file NumeReWindow.h.
Referenced by ConstructFilterString(), and NumeReWindow().
|
private |
Definition at line 476 of file NumeReWindow.h.
Referenced by ConstructFilterString(), and NumeReWindow().
|
private |
Definition at line 472 of file NumeReWindow.h.
Referenced by ConstructFilterString(), and NumeReWindow().
|
private |
Definition at line 479 of file NumeReWindow.h.
Referenced by ConstructFilterString(), and NumeReWindow().
|
private |
Definition at line 471 of file NumeReWindow.h.
Referenced by ConstructFilterString(), and NumeReWindow().
|
private |
Definition at line 470 of file NumeReWindow.h.
Referenced by ConstructFilterString(), and NumeReWindow().
|
private |
Definition at line 473 of file NumeReWindow.h.
Referenced by ConstructFilterString(), and NumeReWindow().
|
private |
Definition at line 480 of file NumeReWindow.h.
Referenced by ConstructFilterString(), and NumeReWindow().
|
private |
Definition at line 478 of file NumeReWindow.h.
Referenced by ConstructFilterString(), and NumeReWindow().
|
private |
Used to hold data for the find/replace dialogs
Definition at line 431 of file NumeReWindow.h.
Referenced by OnFindReplace().
|
private |
Definition at line 391 of file NumeReWindow.h.
Referenced by NumeReWindow().
|
private |
Displays functions and commands
Definition at line 397 of file NumeReWindow.h.
Referenced by NumeReWindow(), OnMenuEvent(), OnTreeDragDrop(), OnTreeItemActivated(), OnTreeItemRightClick(), OnTreeItemToolTip(), prepareFunctionTree(), and refreshFunctionTree().
|
private |
Pointer to the currently active editor
Definition at line 382 of file NumeReWindow.h.
Referenced by AddToHistory(), forceHistoryPageDown(), NumeReWindow(), OnClose(), OnOptions(), and refreshFunctionTree().
|
private |
Definition at line 445 of file NumeReWindow.h.
Referenced by LoadFilesToTree(), NumeReWindow(), OnCreatePackage(), OnMenuEvent(), prepareFunctionTree(), and ~NumeReWindow().
|
private |
Definition at line 463 of file NumeReWindow.h.
Referenced by CopyEditorSettings(), NumeReWindow(), PageHasChanged(), and prepareSession().
|
private |
Definition at line 464 of file NumeReWindow.h.
Referenced by OnMenuEvent(), PageHasChanged(), and UpdateMenuBar().
|
private |
Definition at line 465 of file NumeReWindow.h.
Referenced by OnFileEventTimer(), and OnFileSystemEvent().
|
private |
Definition at line 462 of file NumeReWindow.h.
Referenced by NumeReWindow(), and OnMenuEvent().
|
private |
Notebook for the terminal and debug-related widgets
Definition at line 376 of file NumeReWindow.h.
Referenced by NumeReWindow(), toggleConsole(), toggleHistory(), and UpdateTerminalNotebook().
|
private |
Definition at line 447 of file NumeReWindow.h.
Referenced by SelectIntVar().
|
private |
Definition at line 466 of file NumeReWindow.h.
Referenced by closeWindows(), registerWindow(), and unregisterWindow().
|
private |
Definition at line 443 of file NumeReWindow.h.
Referenced by CloseAllFiles(), compileLaTeX(), DefaultPage(), evaluateDebugInfo(), EvaluateOptions(), getFileDetails(), getOptions(), HandleModifiedFile(), InitializeProgramOptions(), NewFile(), NumeReWindow(), OnClose(), OnExecuteFile(), OnFileEventTimer(), OnMenuEvent(), OnOptions(), OnPrintPage(), OnPrintPreview(), OpenSourceFile(), prepareSession(), refreshFunctionTree(), runLaTeX(), toggleConsole(), toggleFiletree(), toggleHistory(), UpdateTerminalNotebook(), updateTipAtStartupSetting(), UpdateToolbar(), and ~NumeReWindow().
|
private |
Definition at line 424 of file NumeReWindow.h.
Referenced by NumeReWindow(), OnOptions(), and ~NumeReWindow().
|
private |
Displays the output from the compiler
Definition at line 408 of file NumeReWindow.h.
|
private |
Definition at line 467 of file NumeReWindow.h.
Referenced by OnPluginMenuEvent(), and UpdatePackageMenu().
|
private |
Definition at line 384 of file NumeReWindow.h.
Referenced by NumeReWindow(), and PageHasChanged().
|
private |
The IDs for the file type folders in the project tree
Definition at line 434 of file NumeReWindow.h.
Referenced by EvaluateOptions(), getTreeFolderPath(), getTreePath(), NumeReWindow(), OnFileEventTimer(), and OnTreeItemActivated().
|
private |
The file type that corresponds to the last clicked project folder
Definition at line 440 of file NumeReWindow.h.
|
private |
Definition at line 459 of file NumeReWindow.h.
Referenced by NumeReWindow(), OnOpenSourceFile(), OnSaveSourceFile(), OpenSourceFile(), and SaveCurrentFile().
|
private |
Definition at line 457 of file NumeReWindow.h.
Referenced by CloseAllFiles(), and NumeReWindow().
|
private |
Definition at line 458 of file NumeReWindow.h.
Referenced by NumeReWindow(), OnPageChange(), and OpenSourceFile().
|
private |
Holds the command window and the history window
Definition at line 404 of file NumeReWindow.h.
Referenced by NumeReWindow(), OnClose(), OnOptions(), toggleConsole(), toggleHistory(), and UpdateTerminalNotebook().
|
private |
Holds the editor/project group and the output notebook
Definition at line 402 of file NumeReWindow.h.
Referenced by EvaluateOptions(), NumeReWindow(), OnClose(), OnOptions(), toggleConsole(), toggleFiletree(), and UpdateTerminalNotebook().
|
private |
Holds the project tree and the editor notebook
Definition at line 406 of file NumeReWindow.h.
Referenced by EvaluateOptions(), NumeReWindow(), OnClose(), and toggleFiletree().
|
private |
Definition at line 454 of file NumeReWindow.h.
|
private |
The status bar
Definition at line 399 of file NumeReWindow.h.
Referenced by Busy(), NumeReWindow(), Ready(), and UpdateStatusBar().
|
private |
The main terminal widget container
Definition at line 410 of file NumeReWindow.h.
Referenced by EvaluateOptions(), NumeReWindow(), OnMenuEvent(), OnOptions(), showConsole(), toggleConsole(), toggleHistory(), and UpdateTerminalNotebook().
|
private |
The actual terminal widget
Definition at line 416 of file NumeReWindow.h.
Referenced by CloseFile(), createLaTeXFile(), CreateProcedureTree(), editTable(), EvaluateCommandLine(), evaluateDebugInfo(), EvaluateOptions(), GetDocContent(), GetDocIndex(), getFileForInstaller(), getPathDefs(), getTerminal(), getTreeFolderPath(), getTreePath(), InitializeProgramOptions(), NewFile(), NumeReWindow(), OnCalculateDependencies(), OnClose(), OnCreatePackage(), OnExecuteFile(), OnFileEventTimer(), OnMenuEvent(), OnOptions(), OnPluginMenuEvent(), OpenFileByType(), openTable(), pass_command(), prepareFunctionTree(), runLaTeX(), SaveAll(), SaveCurrentFile(), showGraph(), showTable(), toggleConsole(), toggleFiletree(), toggleHistory(), UpdateMenuBar(), UpdatePackageMenu(), UpdateStatusBar(), UpdateTerminalNotebook(), updateTipAtStartupSetting(), UpdateToolbar(), and UpdateVarViewer().
|
private |
Notebook for the tree controls on the right side
Definition at line 378 of file NumeReWindow.h.
Referenced by EvaluateOptions(), NumeReWindow(), and toggleFiletree().
std::string NumeReWindow::m_UnrecoverableFiles |
Definition at line 226 of file NumeReWindow.h.
Referenced by NumeReWindow(), MyApp::OnInit(), and prepareSession().
|
private |
Used to initiate UI updates
Definition at line 427 of file NumeReWindow.h.
Referenced by NumeReWindow(), OnClose(), OnIdle(), OnStatusTimer(), and ~NumeReWindow().
|
private |
Definition at line 383 of file NumeReWindow.h.
Referenced by NumeReWindow(), and UpdateVarViewer().
|
private |
Definition at line 389 of file NumeReWindow.h.
Referenced by CloseFile(), EvaluateOptions(), NumeReWindow(), OpenSourceFile(), SaveCurrentFile(), and ~NumeReWindow().
|
private |
Displays watched variables
Definition at line 414 of file NumeReWindow.h.
|
private |
Definition at line 418 of file NumeReWindow.h.
|
private |
Definition at line 421 of file NumeReWindow.h.
bool NumeReWindow::showTipAtStartup |
Definition at line 215 of file NumeReWindow.h.
Referenced by NumeReWindow(), and MyApp::OnInit().
MyTipProvider* NumeReWindow::tipProvider |
Definition at line 214 of file NumeReWindow.h.
Referenced by NumeReWindow(), and MyApp::OnInit().
|
private |
Definition at line 394 of file NumeReWindow.h.
Referenced by addToReloadBlackList(), isOnReloadBlackList(), and removeFromReloadBlackList().