From 5d1154c24e2475ed2b7ac248de27ab7b501a1e5e Mon Sep 17 00:00:00 2001 From: Tannin Date: Sat, 16 Feb 2013 19:09:57 +0100 Subject: - hooks for CreateHardLink - createprocess hook will now reroute the cwd (fixes SUM, may break other tools?) - profile code moved to separate file - executables can now be linked to toolbar - category filters are now represented as a tree - csv export of mod list - ModInfoDialog is now "window modal" instead of "application modal" - nexus dialog now updates the mod-id field while browsing - right-click in nexus browser allows to open in external browser - ini viewer is no longer modal - bugfix: another attempt to fix processing of invalid header lines in fomod xmls (bom now handled) - bugfix: integrated fomod installer will no longer overwrite detected mod name by the one from the xml - bugfix: "hide file" from conflicted files list now updates that list - bugfix: conflicted files list no longer offers to hide files in BSAs - bugfix: pressing delete on the mod list with multiplie files selected offered to delete the wrong files - regression: mod name guessing with the old regular expression was less likely to lead to an empty mod name. Now both are tried --- src/textviewer.h | 93 -------------------------------------------------------- 1 file changed, 93 deletions(-) delete mode 100644 src/textviewer.h (limited to 'src/textviewer.h') diff --git a/src/textviewer.h b/src/textviewer.h deleted file mode 100644 index c0d29607..00000000 --- a/src/textviewer.h +++ /dev/null @@ -1,93 +0,0 @@ -/* -Copyright (C) 2012 Sebastian Herbord. All rights reserved. - -This file is part of Mod Organizer. - -Mod Organizer is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -Mod Organizer is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with Mod Organizer. If not, see . -*/ - -#ifndef TEXTVIEWER_H -#define TEXTVIEWER_H - -#include -#include -#include -#include -#include "loghighlighter.h" - -namespace Ui { - class TextViewer; -} - - -/** - * @brief tabbed text editor - **/ -class TextViewer : public QDialog -{ - Q_OBJECT - -public: - - /** - * @brief constructor - * @param parent parent widget - **/ - explicit TextViewer(QWidget *parent = 0); - - ~TextViewer(); - - /** - * @brief set the description text to inform the user what he's editing - * - * @param description the description to set - **/ - void setDescription(const QString &description); - - /** - * @brief add a new tab with the specified file open - * - * @param fileName name of the file to open - * @param writable if true, the file can be modified - **/ - void addFile(const QString &fileName, bool writable); - -protected: - - void closeEvent(QCloseEvent *event); - bool eventFilter(QObject *obj, QEvent *event); - -private slots: - - void saveFile(); - void modified(); - void patternChanged(QString newPattern); - void findNext(); - -private: - - void saveFile(const QTextEdit *editor); - void find(); - -private: - - Ui::TextViewer *ui; - QTabWidget *m_EditorTabs; - std::set m_Modified; - FindDialog *m_FindDialog; - QString m_FindPattern; - -}; - -#endif // TEXTVIEWER_H -- cgit v1.3.1