45 RetVal rename(
const int& line,
const int& column,
const QString& filepath);
49 CodeYetNotAvailable = 100,
50 CouldNotOpenFile = 101
58 QObject* m_pPythonEngine;
59 QDialog* m_renameDialog;
60 QLineEdit* m_newNameUserInput;
61 QTreeWidget* m_treeWidgetReferences;
62 QDialogButtonBox* m_dialogButtonBox;
68 RoleFilePath = Qt::UserRole,
69 RoleMainFile = Qt::UserRole + 1,
70 RoleFileOpened = Qt::UserRole + 2,
71 RoleFileModified = Qt::UserRole + 3,
72 RoleFileRenameItem = Qt::UserRole + 4,
73 RoleFileUntitled = Qt::UserRole + 5
76 QStringList readFirstNLinesFromFile(
const QString& filepath,
int n)
const;
79 void onJediRenameResultAvailable(
80 const QVector<ito::JediRename>& filesToChange,
81 const QString& oldValue,
86 void onItemChanged(QTreeWidgetItem* item,
int column);
87 void keyPressEvent(QKeyEvent* event);
88 void clearAndHideTreeWidget();
89 void onItemDoubleClick(QTreeWidget* treeWidget, QTreeWidgetItem* item);
93 const QString& filePath,
94 const QString& newValue,
95 const QVector<ito::FileRenameItem>& renameItems);
RetVal rename(const int &line, const int &column, const QString &filepath)
starts a variable rename operation for the word under the given cursor position
Definition pyCodeReferenceRenamer.cpp:134