NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
NumeReWindow.cpp File Reference
#include <stdlib.h>
#include "NumeReWindow.h"
#include <wx/wx.h>
#include <wx/dir.h>
#include <wx/string.h>
#include <wx/filedlg.h>
#include <wx/statusbr.h>
#include <wx/choicdlg.h>
#include <wx/msgdlg.h>
#include <wx/msw/wince/tbarwce.h>
#include <wx/msw/private.h>
#include <wx/print.h>
#include <wx/printdlg.h>
#include <wx/mimetype.h>
#include <wx/stdpaths.h>
#include <wx/filename.h>
#include <wx/artprov.h>
#include <fstream>
#include <wx/clipbrd.h>
#include <wx/display.h>
#include <array>
#include <math.h>
#include "NumeReNotebook.h"
#include "numeredroptarget.hpp"
#include "DirTraverser.hpp"
#include "IconManager.h"
#include "wxProportionalSplitterWindow.h"
#include "documentationbrowser.hpp"
#include "graphviewer.hpp"
#include "textsplashscreen.hpp"
#include "compositions/viewerframe.hpp"
#include "compositions/imagepanel.hpp"
#include "compositions/helpviewer.hpp"
#include "compositions/tableviewer.hpp"
#include "compositions/tableeditpanel.hpp"
#include "compositions/wxTermContainer.h"
#include "compositions/debugviewer.hpp"
#include "compositions/customwindow.hpp"
#include "editor/editor.h"
#include "editor/history.hpp"
#include "editor/NumeRePrintout.h"
#include "dialogs/OptionsDialog.h"
#include "dialogs/AboutChameleonDialog.h"
#include "dialogs/textoutputdialog.hpp"
#include "dialogs/packagedialog.hpp"
#include "dialogs/dependencydialog.hpp"
#include "dialogs/revisiondialog.hpp"
#include "dialogs/pluginrepodialog.hpp"
#include "terminal/terminal.hpp"
#include "../kernel/core/version.h"
#include "../kernel/core/utils/tools.hpp"
#include "../kernel/core/procedure/dependency.hpp"
#include "../kernel/core/datamanagement/database.hpp"
#include "../kernel/core/documentation/docgen.hpp"
#include "../kernel/core/ui/error.hpp"
#include "../kernel/core/io/logger.hpp"
#include "../kernel/core/ui/calltipprovider.hpp"
#include "../common/recycler.hpp"
#include "../common/Options.h"
#include "../common/vcsmanager.hpp"
#include "../common/filerevisions.hpp"
#include "../common/ipc.hpp"
#include "../common/http.h"
#include "../common/compareFiles.hpp"
#include "controls/treesearchctrl.hpp"
#include "controls/toolbarsearchctrl.hpp"
#include "icons/newstart1.xpm"
#include "icons/newcontinue1.xpm"
#include "icons/newstop1.xpm"
#include "icons/gtk-apply.xpm"
#include "icons/stepnext.xpm"
#include "icons/wraparound.xpm"
#include "icons/breakpoint_octagon.xpm"
#include "icons/breakpoint_octagon_crossed.xpm"
#include "icons/breakpoint_octagon_disable.xpm"

Go to the source code of this file.

Macros

#define CHAMELEON__CPP
 
#define _CRTDBG_MAP_ALLOC
 
#define _ASSERT(expr)   ((void)0)
 
#define _ASSERTE(expr)   ((void)0)
 

Functions

std::string removeMaskedStrings (const std::string &sString)
 This function removes the escape characters from the passed string. More...
 
std::string removeQuotationMarks (const std::string &)
 This function simply removes the surrounding quotation marks. More...
 
std::string prepareStringsForDialog (const std::string &sString)
 
static wxRect determineWindowSize (std::string &sWinSize)
 Static helper function to determine the window size and position if necessary. More...
 
static std::vector< std::string > tokenize (std::string sKeyList)
 Static helper function to tokenize the whitespace-separated list of keys. More...
 

Variables

const std::string sVersion = toString((int)AutoVersion::MAJOR) + "." + toString((int)AutoVersion::MINOR) + "." + toString((int)AutoVersion::BUILD) + " \"" + AutoVersion::STATUS + "\""
 
Language _guilang
 
FindReplaceDialogg_findReplace
 
double g_pixelScale = 1.0
 
wxPrintData * g_printData = (wxPrintData*) nullptr
 global print data, to remember settings during the session More...
 
wxPageSetupData * g_pageSetupData = (wxPageSetupData*) nullptr
 

Macro Definition Documentation

◆ _ASSERT

#define _ASSERT (   expr)    ((void)0)

Definition at line 30 of file NumeReWindow.cpp.

◆ _ASSERTE

#define _ASSERTE (   expr)    ((void)0)

Definition at line 32 of file NumeReWindow.cpp.

◆ _CRTDBG_MAP_ALLOC

#define _CRTDBG_MAP_ALLOC

Definition at line 25 of file NumeReWindow.cpp.

◆ CHAMELEON__CPP

#define CHAMELEON__CPP

Definition at line 23 of file NumeReWindow.cpp.

Function Documentation

◆ determineWindowSize()

static wxRect determineWindowSize ( std::string &  sWinSize)
static

Static helper function to determine the window size and position if necessary.

Parameters
sWinSizestd::string&
Returns
wxRect

Definition at line 186 of file NumeReWindow.cpp.

References g_logger, getAllArguments(), DetachedLogger::info(), min, StrToInt(), and toString().

Referenced by MyApp::OnInit().

Here is the call graph for this function:

◆ prepareStringsForDialog()

std::string prepareStringsForDialog ( const std::string &  sString)

Definition at line 129 of file NumeReWindow.cpp.

References removeMaskedStrings(), and removeQuotationMarks().

Referenced by NumeReWindow::showDirDialog(), NumeReWindow::showFileDialog(), NumeReWindow::showListDialog(), NumeReWindow::showMessageBox(), NumeReWindow::showSelectionDialog(), and NumeReWindow::showTextEntry().

Here is the call graph for this function:

◆ removeMaskedStrings()

std::string removeMaskedStrings ( const std::string &  sString)

This function removes the escape characters from the passed string.

Parameters
sStringconst std::string&
Returns
std::string

Definition at line 42 of file stringfunctions.hpp.

Referenced by prepareStringsForDialog(), and NumeReWindow::UpdatePackageMenu().

◆ removeQuotationMarks()

std::string removeQuotationMarks ( const std::string &  sString)

This function simply removes the surrounding quotation marks.

Parameters
sStringconst std::string&
Returns
std::string

Definition at line 79 of file stringfunctions.hpp.

Referenced by prepareStringsForDialog().

◆ tokenize()

static std::vector< std::string > tokenize ( std::string  sKeyList)
static

Static helper function to tokenize the whitespace-separated list of keys.

Parameters
sKeyListstd::string
Returns
std::vector<std::string>

Definition at line 5811 of file NumeReWindow.cpp.

Referenced by NumeReWindow::prepareFunctionTree().

Variable Documentation

◆ _guilang

Language _guilang

AboutChameleonDialog type definition

AboutChameleonDialog event table definition

Definition at line 135 of file NumeReWindow.cpp.

Referenced by CodeAnalyzer::analyseCommands(), CodeAnalyzer::analyseFunctions(), CodeAnalyzer::analyseIdentifiers(), CodeAnalyzer::analyseNumbers(), CodeAnalyzer::analyseOperators(), CodeAnalyzer::analysePreDefs(), CodeAnalyzer::analyseProcedures(), applyCommandHeuristics(), applyFunctionHeuristics(), CellValueShaderDialog::CellValueShaderDialog(), TableViewer::changeColType(), SearchController::CleanDocumentation(), NumeReWindow::CloseFile(), CodeAnalyzer::CodeAnalyzer(), NumeReWindow::compileLaTeX(), FindReplaceDialog::Create(), OptionsDialog::CreateAnalyzerPage(), OptionsDialog::CreateConfigPage(), AboutChameleonDialog::CreateControls(), OptionsDialog::CreateControls(), OptionsDialog::CreateDebuggerPage(), DependencyDialog::CreateDotFile(), OptionsDialog::CreateEditorPage(), CellValueShaderDialog::createIntervalExclPage(), CellValueShaderDialog::createIntervalPage(), NumeReWindow::createLaTeXFile(), CellValueShaderDialog::createLtGtPage(), TableViewer::createMenuBar(), OptionsDialog::CreateMiscPage(), GroupPanel::CreatePathInput(), OptionsDialog::CreatePathPage(), NumeReEditor::CreateProcedureFromSection(), OptionsDialog::CreateStylePage(), DuplicateCodeDialog::createTextFromList(), DebugViewer::DebugViewer(), NumeReWindow::DefaultPage(), NumeReWindow::deleteFile(), DependencyDialog::DependencyDialog(), DocumentationBrowser::DocumentationBrowser(), wxMGL::DrawCurrentObject(), DuplicateCodeDialog::DuplicateCodeDialog(), NumeReWindow::editTable(), ProcedureViewer::emptyControl(), OptionsDialog::EvaluateOptions(), NumeReEditor::FindAndOpenInclude(), NumeReEditor::FindAndOpenProcedure(), NumeReEditor::fixSymbolName(), NumeReWindow::gotoLine(), NumeReWindow::HandleModifiedFile(), ImagePanel::ImagePanel(), NumeReEditor::InitDuplicateCode(), OptionsDialog::InitializeDialog(), DebugViewer::initializeToolbar(), wxMGL::InitializeToolbar(), NumeReWindow::insertCopiedFile(), PackageDialog::loadProjectFile(), NumeReWindow::NewFile(), wxMGL::NextSlide(), NumeReEditor::NumeReEditor(), NumeReWindow::NumeReWindow(), NumeReWindow::OnAbout(), PackageDialog::OnAddItems(), NumeReWindow::OnAskForNewFile(), CellValueShaderDialog::OnButtonClick(), OptionsDialog::OnButtonClick(), DuplicateCodeDialog::OnButtonReport(), NumeReWindow::OnCalculateDependencies(), NumeReWindow::OnCompareFiles(), NumeReWindow::OnCreateNewFolder(), NumeReWindow::OnCreatePackage(), MyApp::OnExceptionInMainLoop(), DebugViewer::OnExecutionFinished(), wxMGL::OnExport(), NumeReWindow::OnFindEvent(), NumeReWindow::OnFindReplace(), MyApp::OnInit(), DependencyDialog::OnItemRightClick(), PackageDialog::OnLoadProjectFile(), DebugViewer::OnMenuEvent(), RevisionDialog::OnMenuEvent(), NumeReWindow::OnMenuEvent(), NumeReEditor::OnMouseDwell(), VariableViewer::OnNewTable(), NumeReWindow::OnPrintPage(), NumeReWindow::OnPrintPreview(), NumeReWindow::OnRemoveFolder(), VariableViewer::OnRenameTable(), NumeReEditor::OnRightClick(), NumeReHistory::OnRightClick(), VariableViewer::OnRightClick(), RevisionDialog::OnRightClick(), ImagePanel::OnSaveAs(), VariableViewer::OnSaveasTable(), PackageDialog::OnSaveProjectFile(), EditorNotebook::OnTabRightClicked(), NumeReWindow::OnTagCurrentRevision(), NumeReWindow::OnTreeItemRightClick(), NumeReWindow::OnTreeItemToolTip(), NumeReWindow::OpenFile(), PackageDialog::PackageDialog(), NumeReWindow::prepareFunctionTree(), DocumentationBrowser::prepareToolbar(), HelpViewer::Print(), ProcedureViewer::ProcedureViewer(), NumeReWindow::refreshFunctionTree(), NumeReWindow::reloadFileIfOpen(), NumeReWindow::renameFile(), NumeReEditor::RenameSymbols(), RenameSymbolsDialog::RenameSymbolsDialog(), RevisionDialog::RevisionDialog(), CodeAnalyzer::run(), NumeReWindow::runLaTeX(), NumeReWindow::SaveCurrentFile(), PackageDialog::SaveOnClose(), PackageDialog::saveProjectFile(), NumeReWindow::SaveTab(), TableViewer::saveTable(), TableViewer::SetData(), VariableViewer::setDebuggerMode(), DebugViewer::setDebugInfo(), wxMGL::SetDrawMode(), wxMGL::SetRotate(), TableViewer::SetTableReadOnly(), EditorNotebook::SetTabText(), wxMGL::SetZoom(), NumeReWindow::ShowHelp(), TableEditPanel::TableEditPanel(), TablePanel::TablePanel(), TableViewer::TableViewer(), TablePanel::update(), NumeReWindow::UpdateMenuBar(), NumeReWindow::UpdatePackageMenu(), NumeReWindow::UpdateStatusBar(), NumeReWindow::UpdateToolbar(), and VariableViewer::VariableViewer().

◆ g_findReplace

◆ g_pageSetupData

wxPageSetupData* g_pageSetupData = (wxPageSetupData*) nullptr

◆ g_pixelScale

◆ g_printData

wxPrintData* g_printData = (wxPrintData*) nullptr

global print data, to remember settings during the session

Definition at line 140 of file NumeReWindow.cpp.

Referenced by NumeReWindow::NumeReWindow(), NumeReWindow::OnPrintPage(), NumeReWindow::OnPrintPreview(), NumeReWindow::OnPrintSetup(), HelpViewer::Print(), and NumeReWindow::~NumeReWindow().

◆ sVersion