UniversalIndentGUI 1.2.0
|
Is the main window of UniversalIndentGUI. More...
#include <MainWindow.h>
Public Member Functions | |
MainWindow (QString file2OpenOnStart="", QWidget *parent=NULL) | |
Constructor. | |
~MainWindow () | |
Protected Member Functions | |
void | closeEvent (QCloseEvent *event) |
Is always called when the program is quit. Calls the saveSettings function before really quits. | |
bool | eventFilter (QObject *obj, QEvent *event) |
This function is setup to capture tooltip events. | |
Private Slots | |
void | callIndenter () |
Calls the selected indenter with the currently loaded source code to retrieve the formatted source code. | |
void | clearRecentlyOpenedList () |
This slot empties the list of recently opened files. | |
void | encodingChanged (QAction *encodingAction) |
This slot is called whenever an encoding is selected in the settings menu. | |
void | exportToHTML () |
Opens a dialog to save the current source code as a HTML document. | |
void | exportToPDF () |
Opens a dialog to save the current source code as a PDF document. | |
void | indentSettingsChangedSlot () |
This slot is called whenever one of the indenter _settings are changed. | |
void | languageChanged (int languageIndex) |
This slot is called whenever a language is selected in the menu. It tries to find the corresponding action in the languageInfoList and sets the language. | |
void | numberOfLinesChanged () |
This slot is called whenever the number of lines in the editor changes and adapts the margin for the displayed line numbers. | |
void | openFileFromRecentlyOpenedList (QAction *recentlyOpenedAction) |
This slot is called if an entry from the list of recently opened files is being selected. | |
void | openSourceFileDialog (QString fileName="") |
Calls the source file open dialog to load a source file for the formatting preview. | |
void | previewTurnedOnOff (bool turnOn) |
This slot is called whenever the preview button is turned on or off. | |
void | saveAsOtherEncoding (QAction *chosenEncodingAction) |
This slot calls the save dialog to save the current source file with another encoding. | |
bool | saveasSourceFileDialog (QAction *chosenEncodingAction=NULL) |
Calls the source file save as dialog to save a source file under a chosen name. | |
bool | saveSourceFile () |
Saves the currently shown source code to the last save or opened source file. | |
void | setStatusBarCursorPosInfo (int line, int column) |
Sets the label in the status bar to show the line and column number. | |
void | setWhiteSpaceVisibility (bool visible) |
Is called whenever the white space visibility is being changed in the menu. | |
void | showAboutDialog () |
If the dropped in object contains urls/paths to a file, open that file. | |
void | sourceCodeChangedHelperSlot () |
Added this slot to avoid multiple calls because of changed text. | |
void | sourceCodeChangedSlot () |
Is emitted whenever the text inside the source view window changes. Calls the indenter to format the changed source code. | |
void | turnHighlightOnOff (bool turnOn) |
Switches the syntax highlighting corresponding to the value turnOn either on or off. | |
void | updateRecentlyOpenedList () |
Updates the list of recently opened files. | |
void | updateSourceView () |
Updates the displaying of the source code. | |
Private Member Functions | |
void | changeEvent (QEvent *event) |
Catches language change events and retranslates all needed widgets. | |
void | createEncodingMenu () |
Creates a menu entries in the file menu for opening and saving a file with different encodings. | |
void | createHighlighterMenu () |
Creates a menu entry under the settings menu for all available text encodings. | |
void | dragEnterEvent (QDragEnterEvent *event) |
If the dragged in object contains urls/paths to a file, accept the drag. | |
void | dropEvent (QDropEvent *event) |
If the dropped in object contains urls/paths to a file, open that file. | |
bool | initApplicationLanguage () |
Initializes the language of UniversalIndentGUI. | |
void | initIndenter () |
Creates and initializes the indenter. | |
void | initMainWindow () |
Initializes the main window by creating the main gui and make some _settings. | |
void | initSyntaxHighlighter () |
Create and init the syntax _highlighter and set it to use the QScintilla edit component. | |
void | initTextEditor () |
Create and initialize the text editor component. It uses the QScintilla widget. | |
void | initToolBar () |
Creates and inits the tool bar. It is added to the main window. | |
QString | loadFile (QString filePath) |
Tries to load the by filePath defined file and returns its content as QString. | |
void | loadLastOpenedFile () |
Loads the last opened file if this option is enabled in the _settings. | |
bool | maybeSave () |
Is called at application exit and asks whether to save the source code file, if it has been changed. | |
QString | openFileDialog (QString dialogHeaderStr, QString startPath, QString fileMaskStr) |
Shows a file open dialog. | |
void | saveSettings () |
Saves the _settings for the main application to the file "UniversalIndentGUI.ini". | |
void | updateWindowTitle () |
This slot updates the main window title to show the currently opened source code filename. | |
Private Attributes | |
AboutDialog * | _aboutDialog |
AboutDialogGraphicsView * | _aboutDialogGraphicsView |
QString | _currentEncoding |
int | _currentIndenterID |
QString | _currentSourceFile |
QString | _currentSourceFileExtension |
QActionGroup * | _encodingActionGroup |
QStringList | _encodingsList |
UiGuiHighlighter * | _highlighter |
QActionGroup * | _highlighterActionGroup |
IndentHandler * | _indentHandler |
bool | _indentSettingsChanged |
bool | _isFirstRunOfThisVersion |
bool | _loadLastSourceCodeFileOnStartup |
Ui::MainWindowUi * | _mainWindowForm |
bool | _previewToggled |
QsciScintilla * | _qSciSourceCodeEditor |
QTranslator * | _qTTranslator |
QString | _savedSourceContent |
QActionGroup * | _saveEncodedActionGroup |
bool | _scrollPositionChanged |
QSharedPointer< UiGuiSettings > | _settings |
UiGuiSettingsDialog * | _settingsDialog |
bool | _sourceCodeChanged |
QString | _sourceFileContent |
QString | _sourceFormattedContent |
QString | _sourceViewContent |
int | _textEditLastScrollPos |
QLabel * | _textEditLineColumnInfoLabel |
QScrollBar * | _textEditVScrollBar |
Ui::ToolBarWidget * | _toolBarWidget |
QTranslator * | _uiGuiTranslator |
UpdateCheckDialog * | _updateCheckDialog |
Is the main window of UniversalIndentGUI.
The MainWindow class is responsible for generating and displaying most of the gui elements. Its look is set in the file "mainwindow.ui". An object for the indent handler is generated here and user actions are being controlled. Is responsible for file open dialogs and indenter selection.
Definition at line 46 of file MainWindow.h.
MainWindow::MainWindow | ( | QString | file2OpenOnStart = "" , |
QWidget * | parent = NULL |
||
) |
Constructor.
Constructs the main window.
Definition at line 77 of file MainWindow.cpp.
References _aboutDialog, _aboutDialogGraphicsView, _mainWindowForm, _scrollPositionChanged, _settings, _settingsDialog, _sourceCodeChanged, _toolBarWidget, _updateCheckDialog, UpdateCheckDialog::checkForUpdate(), createEncodingMenu(), createHighlighterMenu(), UiGuiSettings::getInstance(), initApplicationLanguage(), initIndenter(), initMainWindow(), initSyntaxHighlighter(), initTextEditor(), initToolBar(), loadLastOpenedFile(), openSourceFileDialog(), showAboutDialog(), and updateSourceView().
MainWindow::~MainWindow | ( | ) | [inline] |
Definition at line 53 of file MainWindow.h.
References _settings.
void MainWindow::callIndenter | ( | ) | [private, slot] |
Calls the selected indenter with the currently loaded source code to retrieve the formatted source code.
The original loaded source code file will not be changed.
Definition at line 604 of file MainWindow.cpp.
References _currentSourceFileExtension, _indentHandler, _sourceFileContent, _sourceFormattedContent, and IndentHandler::callIndenter().
Referenced by indentSettingsChangedSlot(), openSourceFileDialog(), previewTurnedOnOff(), and sourceCodeChangedSlot().
void MainWindow::changeEvent | ( | QEvent * | event | ) | [private] |
Catches language change events and retranslates all needed widgets.
Definition at line 1203 of file MainWindow.cpp.
References _encodingActionGroup, _encodingsList, _highlighter, _indentHandler, _mainWindowForm, _qSciSourceCodeEditor, _saveEncodedActionGroup, _toolBarWidget, UiGuiHighlighter::getAvailableHighlighters(), IndentHandler::retranslateUi(), setStatusBarCursorPosInfo(), and updateWindowTitle().
void MainWindow::clearRecentlyOpenedList | ( | ) | [private, slot] |
This slot empties the list of recently opened files.
Definition at line 1337 of file MainWindow.cpp.
References _mainWindowForm, and _settings.
Referenced by openFileFromRecentlyOpenedList().
void MainWindow::closeEvent | ( | QCloseEvent * | event | ) | [protected] |
Is always called when the program is quit. Calls the saveSettings function before really quits.
Definition at line 979 of file MainWindow.cpp.
References maybeSave(), and saveSettings().
void MainWindow::createEncodingMenu | ( | ) | [private] |
Creates a menu entries in the file menu for opening and saving a file with different encodings.
Definition at line 1069 of file MainWindow.cpp.
References _currentEncoding, _encodingActionGroup, _encodingsList, _mainWindowForm, _saveEncodedActionGroup, encodingChanged(), and saveAsOtherEncoding().
Referenced by MainWindow().
void MainWindow::createHighlighterMenu | ( | ) | [private] |
Creates a menu entry under the settings menu for all available text encodings.
Definition at line 1156 of file MainWindow.cpp.
References _highlighter, _highlighterActionGroup, _mainWindowForm, and UiGuiHighlighter::getAvailableHighlighters().
Referenced by MainWindow().
void MainWindow::dragEnterEvent | ( | QDragEnterEvent * | event | ) | [private] |
If the dragged in object contains urls/paths to a file, accept the drag.
Definition at line 1392 of file MainWindow.cpp.
void MainWindow::dropEvent | ( | QDropEvent * | event | ) | [private] |
If the dropped in object contains urls/paths to a file, open that file.
Definition at line 1402 of file MainWindow.cpp.
References openSourceFileDialog().
void MainWindow::encodingChanged | ( | QAction * | encodingAction | ) | [private, slot] |
This slot is called whenever an encoding is selected in the settings menu.
Definition at line 1129 of file MainWindow.cpp.
References _currentEncoding, _currentSourceFile, _qSciSourceCodeEditor, and maybeSave().
Referenced by createEncodingMenu().
bool MainWindow::eventFilter | ( | QObject * | obj, |
QEvent * | event | ||
) | [protected] |
This function is setup to capture tooltip events.
All widgets that are created by the _indentHandler object and are responsible for indenter parameters are connected with this event filter. So depending on the _settings the tooltips can be enabled and disabled for these widgets.
Definition at line 997 of file MainWindow.cpp.
References _mainWindowForm.
void MainWindow::exportToHTML | ( | ) | [private, slot] |
Opens a dialog to save the current source code as a HTML document.
Definition at line 880 of file MainWindow.cpp.
References _currentSourceFile, and _qSciSourceCodeEditor.
Referenced by initMainWindow().
void MainWindow::exportToPDF | ( | ) | [private, slot] |
Opens a dialog to save the current source code as a PDF document.
Definition at line 858 of file MainWindow.cpp.
References _currentSourceFile, and _qSciSourceCodeEditor.
Referenced by initMainWindow().
void MainWindow::indentSettingsChangedSlot | ( | ) | [private, slot] |
This slot is called whenever one of the indenter _settings are changed.
It calls the selected indenter if the preview is turned on. If preview is not active a flag is set, that the _settings have changed.
Definition at line 769 of file MainWindow.cpp.
References _indentSettingsChanged, _previewToggled, _qSciSourceCodeEditor, _savedSourceContent, _sourceCodeChanged, _toolBarWidget, callIndenter(), and updateSourceView().
Referenced by initIndenter().
bool MainWindow::initApplicationLanguage | ( | ) | [private] |
Initializes the language of UniversalIndentGUI.
If the program language is defined in the _settings, the corresponding language file will be loaded and set for the application. If not set there, the system default language will be set, if a translation file for that language exists. Returns true, if the translation file could be loaded. Otherwise it returns false and uses the default language, which is English.
Definition at line 321 of file MainWindow.cpp.
References _qTTranslator, _settings, _uiGuiTranslator, and SettingsPaths::getGlobalFilesPath().
Referenced by MainWindow().
void MainWindow::initIndenter | ( | ) | [private] |
Creates and initializes the indenter.
Definition at line 375 of file MainWindow.cpp.
References _currentIndenterID, _indentHandler, _indentSettingsChanged, _mainWindowForm, _previewToggled, _settings, IndentHandler::getIndenterMenuActions(), and indentSettingsChangedSlot().
Referenced by MainWindow().
void MainWindow::initMainWindow | ( | ) | [private] |
Initializes the main window by creating the main gui and make some _settings.
Definition at line 160 of file MainWindow.cpp.
References _currentEncoding, _isFirstRunOfThisVersion, _mainWindowForm, _settings, _updateCheckDialog, exportToHTML(), exportToPDF(), openFileFromRecentlyOpenedList(), openSourceFileDialog(), PROGRAM_VERSION_STRING, saveasSourceFileDialog(), saveSourceFile(), setWhiteSpaceVisibility(), and updateRecentlyOpenedList().
Referenced by MainWindow().
void MainWindow::initSyntaxHighlighter | ( | ) | [private] |
Create and init the syntax _highlighter and set it to use the QScintilla edit component.
Definition at line 300 of file MainWindow.cpp.
References _highlighter, _mainWindowForm, _qSciSourceCodeEditor, _settings, and turnHighlightOnOff().
Referenced by MainWindow().
void MainWindow::initTextEditor | ( | ) | [private] |
Create and initialize the text editor component. It uses the QScintilla widget.
Definition at line 246 of file MainWindow.cpp.
References _mainWindowForm, _qSciSourceCodeEditor, _settings, _textEditLineColumnInfoLabel, _textEditVScrollBar, numberOfLinesChanged(), setStatusBarCursorPosInfo(), setWhiteSpaceVisibility(), and sourceCodeChangedHelperSlot().
Referenced by MainWindow().
void MainWindow::initToolBar | ( | ) | [private] |
Creates and inits the tool bar. It is added to the main window.
Definition at line 224 of file MainWindow.cpp.
References _mainWindowForm, _settings, _toolBarWidget, openSourceFileDialog(), and previewTurnedOnOff().
Referenced by MainWindow().
void MainWindow::languageChanged | ( | int | languageIndex | ) | [private, slot] |
This slot is called whenever a language is selected in the menu. It tries to find the corresponding action in the languageInfoList and sets the language.
Definition at line 1039 of file MainWindow.cpp.
References _qTTranslator, _settings, _uiGuiTranslator, and SettingsPaths::getGlobalFilesPath().
QString MainWindow::loadFile | ( | QString | filePath | ) | [private] |
Tries to load the by filePath defined file and returns its content as QString.
If the file could not be loaded a error dialog will be shown.
Definition at line 403 of file MainWindow.cpp.
References _currentEncoding, _currentSourceFileExtension, _highlighter, _highlighterActionGroup, and UiGuiHighlighter::setLexerForExtension().
Referenced by loadLastOpenedFile(), openFileDialog(), and openSourceFileDialog().
void MainWindow::loadLastOpenedFile | ( | ) | [private] |
Loads the last opened file if this option is enabled in the _settings.
If the file does not exist, the default example file is tried to be loaded. If even that fails a very small code example is shown. If the setting for opening the last file is disabled, the editor is empty on startup.
Definition at line 915 of file MainWindow.cpp.
References _currentSourceFile, _currentSourceFileExtension, _loadLastSourceCodeFileOnStartup, _savedSourceContent, _settings, _sourceFileContent, SettingsPaths::getIndenterPath(), loadFile(), and updateWindowTitle().
Referenced by MainWindow().
bool MainWindow::maybeSave | ( | ) | [private] |
Is called at application exit and asks whether to save the source code file, if it has been changed.
Definition at line 1017 of file MainWindow.cpp.
References saveSourceFile().
Referenced by closeEvent(), encodingChanged(), and openSourceFileDialog().
void MainWindow::numberOfLinesChanged | ( | ) | [private, slot] |
This slot is called whenever the number of lines in the editor changes and adapts the margin for the displayed line numbers.
Definition at line 1193 of file MainWindow.cpp.
References _qSciSourceCodeEditor.
Referenced by initTextEditor().
QString MainWindow::openFileDialog | ( | QString | dialogHeaderStr, |
QString | startPath, | ||
QString | fileMaskStr | ||
) | [private] |
Shows a file open dialog.
Shows a file open dialog with the title dialogHeaderStr starting in the directory startPath and with a file mask defined by fileMaskStr. Returns the contents of the file as QString.
Definition at line 556 of file MainWindow.cpp.
References loadFile().
void MainWindow::openFileFromRecentlyOpenedList | ( | QAction * | recentlyOpenedAction | ) | [private, slot] |
This slot is called if an entry from the list of recently opened files is being selected.
Definition at line 1359 of file MainWindow.cpp.
References _mainWindowForm, _settings, clearRecentlyOpenedList(), openSourceFileDialog(), and updateRecentlyOpenedList().
Referenced by initMainWindow().
void MainWindow::openSourceFileDialog | ( | QString | fileName = "" | ) | [private, slot] |
Calls the source file open dialog to load a source file for the formatting preview.
If the file was successfully loaded the indenter will be called to generate the formatted source code.
Definition at line 432 of file MainWindow.cpp.
References _currentSourceFile, _currentSourceFileExtension, _indentHandler, _previewToggled, _qSciSourceCodeEditor, _savedSourceContent, _sourceCodeChanged, _sourceFileContent, _textEditLastScrollPos, _textEditVScrollBar, _toolBarWidget, callIndenter(), IndentHandler::getPossibleIndenterFileExtensions(), loadFile(), maybeSave(), updateRecentlyOpenedList(), updateSourceView(), and updateWindowTitle().
Referenced by dropEvent(), initMainWindow(), initToolBar(), MainWindow(), and openFileFromRecentlyOpenedList().
void MainWindow::previewTurnedOnOff | ( | bool | turnOn | ) | [private, slot] |
This slot is called whenever the preview button is turned on or off.
It calls the selected indenter to format the current source code if the code has been changed since the last indenter call.
Definition at line 813 of file MainWindow.cpp.
References _indentSettingsChanged, _previewToggled, _qSciSourceCodeEditor, _savedSourceContent, _sourceCodeChanged, callIndenter(), and updateSourceView().
Referenced by initToolBar().
void MainWindow::saveAsOtherEncoding | ( | QAction * | chosenEncodingAction | ) | [private, slot] |
This slot calls the save dialog to save the current source file with another encoding.
If the saving is successful and not aborted, the currently used encoding, visible in the "reopen" menu, is also changed to the new encoding.
Definition at line 1111 of file MainWindow.cpp.
References _encodingActionGroup, and saveasSourceFileDialog().
Referenced by createEncodingMenu().
bool MainWindow::saveasSourceFileDialog | ( | QAction * | chosenEncodingAction = NULL | ) | [private, slot] |
Calls the source file save as dialog to save a source file under a chosen name.
If the file already exists and it should be overwritten, a warning is shown before.
Definition at line 477 of file MainWindow.cpp.
References _currentSourceFile, _currentSourceFileExtension, _encodingActionGroup, _indentHandler, _qSciSourceCodeEditor, _savedSourceContent, IndentHandler::getPossibleIndenterFileExtensions(), and updateWindowTitle().
Referenced by initMainWindow(), saveAsOtherEncoding(), and saveSourceFile().
void MainWindow::saveSettings | ( | ) | [private] |
Saves the _settings for the main application to the file "UniversalIndentGUI.ini".
Settings are for example last selected indenter, last loaded config file and so on.
Definition at line 961 of file MainWindow.cpp.
References _currentEncoding, _highlighter, _settings, PROGRAM_VERSION_STRING, and UiGuiHighlighter::writeCurrentSettings().
Referenced by closeEvent().
bool MainWindow::saveSourceFile | ( | ) | [private, slot] |
Saves the currently shown source code to the last save or opened source file.
If no source file has been opened, because only the static example has been loaded, the save as file dialog will be shown.
Definition at line 526 of file MainWindow.cpp.
References _currentEncoding, _currentSourceFile, _encodingActionGroup, _qSciSourceCodeEditor, _savedSourceContent, and saveasSourceFileDialog().
Referenced by initMainWindow(), and maybeSave().
void MainWindow::setStatusBarCursorPosInfo | ( | int | line, |
int | column | ||
) | [private, slot] |
Sets the label in the status bar to show the line and column number.
Definition at line 1426 of file MainWindow.cpp.
References _textEditLineColumnInfoLabel.
Referenced by changeEvent(), and initTextEditor().
void MainWindow::setWhiteSpaceVisibility | ( | bool | visible | ) | [private, slot] |
Is called whenever the white space visibility is being changed in the menu.
Definition at line 1178 of file MainWindow.cpp.
References _qSciSourceCodeEditor.
Referenced by initMainWindow(), and initTextEditor().
void MainWindow::showAboutDialog | ( | ) | [private, slot] |
If the dropped in object contains urls/paths to a file, open that file.
Definition at line 1415 of file MainWindow.cpp.
References _aboutDialogGraphicsView, and AboutDialogGraphicsView::show().
Referenced by MainWindow().
void MainWindow::sourceCodeChangedHelperSlot | ( | ) | [private, slot] |
Added this slot to avoid multiple calls because of changed text.
Definition at line 630 of file MainWindow.cpp.
References sourceCodeChangedSlot().
Referenced by initTextEditor(), and updateSourceView().
void MainWindow::sourceCodeChangedSlot | ( | ) | [private, slot] |
Is emitted whenever the text inside the source view window changes. Calls the indenter to format the changed source code.
Definition at line 639 of file MainWindow.cpp.
References _previewToggled, _qSciSourceCodeEditor, _savedSourceContent, _scrollPositionChanged, _sourceCodeChanged, _sourceFileContent, _toolBarWidget, callIndenter(), SCI_GETCURRENTPOS, and updateSourceView().
Referenced by sourceCodeChangedHelperSlot().
void MainWindow::turnHighlightOnOff | ( | bool | turnOn | ) | [private, slot] |
Switches the syntax highlighting corresponding to the value turnOn either on or off.
Definition at line 615 of file MainWindow.cpp.
References _highlighter, _previewToggled, UiGuiHighlighter::turnHighlightOff(), UiGuiHighlighter::turnHighlightOn(), and updateSourceView().
Referenced by initSyntaxHighlighter().
void MainWindow::updateRecentlyOpenedList | ( | ) | [private, slot] |
Updates the list of recently opened files.
Therefore the currently open file is set at the lists first position regarding the in the _settings set maximum list length. Overheads of the list will be cut off. The new list will be updated to the _settings and the recently opened menu will be updated too.
Definition at line 1260 of file MainWindow.cpp.
References _currentSourceFile, _mainWindowForm, and _settings.
Referenced by initMainWindow(), openFileFromRecentlyOpenedList(), and openSourceFileDialog().
void MainWindow::updateSourceView | ( | ) | [private, slot] |
Updates the displaying of the source code.
Updates the text edit field, which is showing the loaded, and if preview is enabled formatted, source code. Reassigns the line numbers and in case of switch between preview and none preview keeps the text field at the same line number.
Definition at line 576 of file MainWindow.cpp.
References _previewToggled, _qSciSourceCodeEditor, _sourceFileContent, _sourceFormattedContent, _sourceViewContent, _textEditLastScrollPos, _textEditVScrollBar, _toolBarWidget, and sourceCodeChangedHelperSlot().
Referenced by indentSettingsChangedSlot(), MainWindow(), openSourceFileDialog(), previewTurnedOnOff(), sourceCodeChangedSlot(), and turnHighlightOnOff().
void MainWindow::updateWindowTitle | ( | ) | [private] |
This slot updates the main window title to show the currently opened source code filename.
Definition at line 850 of file MainWindow.cpp.
References _currentSourceFile, and PROGRAM_VERSION_STRING.
Referenced by changeEvent(), loadLastOpenedFile(), openSourceFileDialog(), and saveasSourceFileDialog().
AboutDialog* MainWindow::_aboutDialog [private] |
Definition at line 115 of file MainWindow.h.
Referenced by MainWindow().
Definition at line 116 of file MainWindow.h.
Referenced by MainWindow(), and showAboutDialog().
QString MainWindow::_currentEncoding [private] |
Definition at line 109 of file MainWindow.h.
Referenced by createEncodingMenu(), encodingChanged(), initMainWindow(), loadFile(), saveSettings(), and saveSourceFile().
int MainWindow::_currentIndenterID [private] |
Definition at line 119 of file MainWindow.h.
Referenced by initIndenter().
QString MainWindow::_currentSourceFile [private] |
Definition at line 121 of file MainWindow.h.
Referenced by encodingChanged(), exportToHTML(), exportToPDF(), loadLastOpenedFile(), openSourceFileDialog(), saveasSourceFileDialog(), saveSourceFile(), updateRecentlyOpenedList(), and updateWindowTitle().
QString MainWindow::_currentSourceFileExtension [private] |
Definition at line 122 of file MainWindow.h.
Referenced by callIndenter(), loadFile(), loadLastOpenedFile(), openSourceFileDialog(), and saveasSourceFileDialog().
QActionGroup* MainWindow::_encodingActionGroup [private] |
Definition at line 124 of file MainWindow.h.
Referenced by changeEvent(), createEncodingMenu(), saveAsOtherEncoding(), saveasSourceFileDialog(), and saveSourceFile().
QStringList MainWindow::_encodingsList [private] |
Definition at line 135 of file MainWindow.h.
Referenced by changeEvent(), and createEncodingMenu().
UiGuiHighlighter* MainWindow::_highlighter [private] |
Definition at line 113 of file MainWindow.h.
Referenced by changeEvent(), createHighlighterMenu(), initSyntaxHighlighter(), loadFile(), saveSettings(), and turnHighlightOnOff().
QActionGroup* MainWindow::_highlighterActionGroup [private] |
Definition at line 126 of file MainWindow.h.
Referenced by createHighlighterMenu(), and loadFile().
IndentHandler* MainWindow::_indentHandler [private] |
Definition at line 138 of file MainWindow.h.
Referenced by callIndenter(), changeEvent(), initIndenter(), openSourceFileDialog(), and saveasSourceFileDialog().
bool MainWindow::_indentSettingsChanged [private] |
Definition at line 133 of file MainWindow.h.
Referenced by indentSettingsChangedSlot(), initIndenter(), and previewTurnedOnOff().
bool MainWindow::_isFirstRunOfThisVersion [private] |
Definition at line 129 of file MainWindow.h.
Referenced by initMainWindow().
bool MainWindow::_loadLastSourceCodeFileOnStartup [private] |
Definition at line 120 of file MainWindow.h.
Referenced by loadLastOpenedFile().
Ui::MainWindowUi* MainWindow::_mainWindowForm [private] |
Definition at line 86 of file MainWindow.h.
Referenced by changeEvent(), clearRecentlyOpenedList(), createEncodingMenu(), createHighlighterMenu(), eventFilter(), initIndenter(), initMainWindow(), initSyntaxHighlighter(), initTextEditor(), initToolBar(), MainWindow(), openFileFromRecentlyOpenedList(), and updateRecentlyOpenedList().
bool MainWindow::_previewToggled [private] |
Definition at line 134 of file MainWindow.h.
Referenced by indentSettingsChangedSlot(), initIndenter(), openSourceFileDialog(), previewTurnedOnOff(), sourceCodeChangedSlot(), turnHighlightOnOff(), and updateSourceView().
QsciScintilla* MainWindow::_qSciSourceCodeEditor [private] |
Definition at line 106 of file MainWindow.h.
Referenced by changeEvent(), encodingChanged(), exportToHTML(), exportToPDF(), indentSettingsChangedSlot(), initSyntaxHighlighter(), initTextEditor(), numberOfLinesChanged(), openSourceFileDialog(), previewTurnedOnOff(), saveasSourceFileDialog(), saveSourceFile(), setWhiteSpaceVisibility(), sourceCodeChangedSlot(), and updateSourceView().
QTranslator* MainWindow::_qTTranslator [private] |
Definition at line 128 of file MainWindow.h.
Referenced by initApplicationLanguage(), and languageChanged().
QString MainWindow::_savedSourceContent [private] |
Definition at line 123 of file MainWindow.h.
Referenced by indentSettingsChangedSlot(), loadLastOpenedFile(), openSourceFileDialog(), previewTurnedOnOff(), saveasSourceFileDialog(), saveSourceFile(), and sourceCodeChangedSlot().
QActionGroup* MainWindow::_saveEncodedActionGroup [private] |
Definition at line 125 of file MainWindow.h.
Referenced by changeEvent(), and createEncodingMenu().
bool MainWindow::_scrollPositionChanged [private] |
Definition at line 132 of file MainWindow.h.
Referenced by MainWindow(), and sourceCodeChangedSlot().
QSharedPointer<UiGuiSettings> MainWindow::_settings [private] |
Definition at line 107 of file MainWindow.h.
Referenced by clearRecentlyOpenedList(), initApplicationLanguage(), initIndenter(), initMainWindow(), initSyntaxHighlighter(), initTextEditor(), initToolBar(), languageChanged(), loadLastOpenedFile(), MainWindow(), openFileFromRecentlyOpenedList(), saveSettings(), updateRecentlyOpenedList(), and ~MainWindow().
UiGuiSettingsDialog* MainWindow::_settingsDialog [private] |
Definition at line 117 of file MainWindow.h.
Referenced by MainWindow().
bool MainWindow::_sourceCodeChanged [private] |
Definition at line 131 of file MainWindow.h.
Referenced by indentSettingsChangedSlot(), MainWindow(), openSourceFileDialog(), previewTurnedOnOff(), and sourceCodeChangedSlot().
QString MainWindow::_sourceFileContent [private] |
Definition at line 110 of file MainWindow.h.
Referenced by callIndenter(), loadLastOpenedFile(), openSourceFileDialog(), sourceCodeChangedSlot(), and updateSourceView().
QString MainWindow::_sourceFormattedContent [private] |
Definition at line 111 of file MainWindow.h.
Referenced by callIndenter(), and updateSourceView().
QString MainWindow::_sourceViewContent [private] |
Definition at line 112 of file MainWindow.h.
Referenced by updateSourceView().
int MainWindow::_textEditLastScrollPos [private] |
Definition at line 118 of file MainWindow.h.
Referenced by openSourceFileDialog(), and updateSourceView().
QLabel* MainWindow::_textEditLineColumnInfoLabel [private] |
Definition at line 140 of file MainWindow.h.
Referenced by initTextEditor(), and setStatusBarCursorPosInfo().
QScrollBar* MainWindow::_textEditVScrollBar [private] |
Definition at line 114 of file MainWindow.h.
Referenced by initTextEditor(), openSourceFileDialog(), and updateSourceView().
Ui::ToolBarWidget* MainWindow::_toolBarWidget [private] |
Definition at line 137 of file MainWindow.h.
Referenced by changeEvent(), indentSettingsChangedSlot(), initToolBar(), MainWindow(), openSourceFileDialog(), sourceCodeChangedSlot(), and updateSourceView().
QTranslator* MainWindow::_uiGuiTranslator [private] |
Definition at line 127 of file MainWindow.h.
Referenced by initApplicationLanguage(), and languageChanged().
UpdateCheckDialog* MainWindow::_updateCheckDialog [private] |
Definition at line 139 of file MainWindow.h.
Referenced by initMainWindow(), and MainWindow().