Issue #4224: Paste into and across categories in Companion (#4371)

* Issue #4224. Allow pasting models into and across categories.
* Issue #4224: Add "Paste" to category conext menu.
This commit is contained in:
Kelly Byrd
2017-02-02 09:05:26 +01:00
committed by Damjan Adamic
parent e7d7f9df95
commit bdd62104c1
2 changed files with 45 additions and 22 deletions
+3 -2
View File
@@ -51,7 +51,8 @@ class MdiChild : public QWidget
QString userFriendlyCurrentFile() const;
QString currentFile() const { return curFile; }
void viableModelSelected(bool viable);
int getCurrentRow() const;
int getCurrentModel() const;
int getCurrentCategory() const;
void refresh(bool expand=false);
void keyPressEvent(QKeyEvent * event);
@@ -100,7 +101,7 @@ class MdiChild : public QWidget
bool maybeSave();
void setCurrentFile(const QString & fileName);
void doCopy(QByteArray * gmData);
void doPaste(QByteArray * gmData, int index);
void doPaste(QByteArray * gmData, int modelIdx, int categoryIdx);
void initModelsList();
MainWindow * parent;