forked from qt-creator/qt-creator
The macros plugin use a directory in userResourcePath.
It is not possible to manage different directory for the macro plugin, it uses the user resource path per default. This change cleans a lot of code, specially we don't need any specific settings for the macro plugin, and the option page is more simple. Merge-request: 240 Reviewed-by: con <qtc-committer@nokia.com>
This commit is contained in:
committed by
con
parent
23e024de64
commit
acf607f009
@@ -59,34 +59,26 @@ public:
|
||||
explicit MacroOptionsWidget(QWidget *parent = 0);
|
||||
~MacroOptionsWidget();
|
||||
|
||||
void setSettings(const MacroSettings &s);
|
||||
void initialize();
|
||||
|
||||
void apply();
|
||||
|
||||
private slots:
|
||||
void addDirectoy();
|
||||
void remove();
|
||||
void setDefault();
|
||||
void changeCurrentItem(QTreeWidgetItem *current);
|
||||
|
||||
private:
|
||||
void appendDirectory(const QString &directory, bool isDefault = false);
|
||||
void changeData(QTreeWidgetItem *current, int column, QVariant value);
|
||||
void createTable();
|
||||
|
||||
private slots:
|
||||
void changeDescription(const QString &description);
|
||||
|
||||
private:
|
||||
Ui::MacroOptionsWidget *ui;
|
||||
Ui::MacroOptionsWidget *m_ui;
|
||||
QStringList m_macroToRemove;
|
||||
QStringList m_directories;
|
||||
bool changingCurrent;
|
||||
bool m_changingCurrent;
|
||||
|
||||
struct ChangeSet {
|
||||
QString description;
|
||||
bool shortcut;
|
||||
};
|
||||
QMap<QString, ChangeSet> m_macroToChange;
|
||||
QMap<QString, QString> m_macroToChange;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user