diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-06-15 18:54:19 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-07-02 10:10:16 -0400 |
| commit | 6bd5bed29f3ebcc1155e615d7daa1c9cd1724efb (patch) | |
| tree | 9dea3a3a0b50b181f49c99eb57cfc3ef4b7a7ecf /src/modinfodialog.h | |
| parent | 59e0c4aa34fec9048d064705863c3269aacd86b5 (diff) | |
added initial toolbar, splitter
moved most of the text editor stuff to a new TextEditor class
Diffstat (limited to 'src/modinfodialog.h')
| -rw-r--r-- | src/modinfodialog.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/modinfodialog.h b/src/modinfodialog.h index b3ce3d07..85226f45 100644 --- a/src/modinfodialog.h +++ b/src/modinfodialog.h @@ -35,6 +35,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include <QNetworkReply>
#include <QModelIndex>
#include <QAction>
+#include <QPlainTextEdit>
#include <QListWidgetItem>
#include <QTreeWidgetItem>
#include <QTextCodec>
@@ -49,6 +50,7 @@ namespace Ui { class QFileSystemModel;
class QTreeView;
class CategoryFactory;
+class TextEditor;
/* Takes a QToolButton and a widget and creates an expandable widget.
@@ -218,14 +220,15 @@ private slots: void on_saveButton_clicked();
void on_activateESP_clicked();
void on_deactivateESP_clicked();
- void on_saveTXTButton_clicked();
+ void on_textFileSave_clicked();
+ void on_textFileWordWrap_clicked();
void on_visitNexusLabel_linkActivated(const QString &link);
void on_modIDEdit_editingFinished();
void on_sourceGameEdit_currentIndexChanged(int);
void on_versionEdit_editingFinished();
void on_customUrlLineEdit_editingFinished();
void on_iniFileView_textChanged();
- void on_textFileView_textChanged();
+ void onTextFileChanged(bool b);
void on_tabWidget_currentChanged(int index);
void on_primaryCategoryBox_currentIndexChanged(int index);
void on_categoriesTree_itemChanged(QTreeWidgetItem *item, int column);
@@ -304,6 +307,7 @@ private: ExpanderWidget m_overwriteExpander, m_overwrittenExpander, m_nonconflictExpander;
FilterWidget m_advancedConflictFilter;
+ std::unique_ptr<TextEditor> m_textFileEditor;
void refreshConflictLists(bool refreshGeneral, bool refreshAdvanced);
@@ -347,6 +351,8 @@ private: std::vector<QAction*> createGotoActions(
const QList<QTreeWidgetItem*>& selection);
+
+ void setTextFileWordWrap(bool b);
};
#endif // MODINFODIALOG_H
|
