aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/guiSQLiteStudio/sqleditor.h
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2015-05-12 16:19:47 -0400
committerLibravatarUnit 193 <unit193@ubuntu.com>2015-05-12 16:19:47 -0400
commit6ce5ee411d1e6093b68b1b4eca5dc6c12b927a96 (patch)
tree1a98416041b39765c1c42ffbeab6da9fd40e181b /SQLiteStudio3/guiSQLiteStudio/sqleditor.h
parent1fc9d1a4a1af320e39810cee21bed1201e2bddfd (diff)
parent9618f0ebbf4b88045247c01ce8c8f58203508ebf (diff)
Merge tag 'upstream/3.0.6'
Upstream version 3.0.6 # gpg: Signature made Tue 12 May 2015 04:19:45 PM EDT using RSA key ID EBE9BD91 # gpg: Good signature from "Unit 193 <unit193@gmail.com>" # gpg: aka "Unit 193 <unit193@ninthfloor.org>" # gpg: aka "Unit 193 <unit193@ubuntu.com>" # gpg: aka "Unit 193 <unit193@ninthfloor.com>"
Diffstat (limited to 'SQLiteStudio3/guiSQLiteStudio/sqleditor.h')
-rw-r--r--SQLiteStudio3/guiSQLiteStudio/sqleditor.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/SQLiteStudio3/guiSQLiteStudio/sqleditor.h b/SQLiteStudio3/guiSQLiteStudio/sqleditor.h
index 43be251..f465dcf 100644
--- a/SQLiteStudio3/guiSQLiteStudio/sqleditor.h
+++ b/SQLiteStudio3/guiSQLiteStudio/sqleditor.h
@@ -59,6 +59,7 @@ class GUI_API_EXPORT SqlEditor : public QPlainTextEdit, public ExtActionContaine
FORMAT_SQL,
OPEN_SQL_FILE,
SAVE_SQL_FILE,
+ SAVE_AS_SQL_FILE,
DELETE_LINE,
COMPLETE,
MOVE_BLOCK_DOWN,
@@ -187,6 +188,7 @@ class GUI_API_EXPORT SqlEditor : public QPlainTextEdit, public ExtActionContaine
const DbObject* getValidObjectForPosition(const QPoint& point);
void handleValidObjectCursor(const QPoint& point);
bool handleValidObjectContextMenu(const QPoint& pos);
+ void saveToFile(const QString& fileName);
SqliteSyntaxHighlighter* highlighter = nullptr;
QMenu* contextMenu = nullptr;
@@ -231,6 +233,7 @@ class GUI_API_EXPORT SqlEditor : public QPlainTextEdit, public ExtActionContaine
int virtualSqlRightOffset = 0;
bool virtualSqlCompleteSemicolon = false;
QString createTriggerTable;
+ QString loadedFile;
static const int autoCompleterDelay = 300;
static const int queryParserDelay = 500;
@@ -260,6 +263,7 @@ class GUI_API_EXPORT SqlEditor : public QPlainTextEdit, public ExtActionContaine
void cursorMoved();
void formatSql();
void saveToFile();
+ void saveAsToFile();
void loadFromFile();
void deleteLine();
void moveBlockDown(bool deleteOld = true);