forked from qt-creator/qt-creator
Designer: De-slot
Change-Id: I6e4a80187646afe342a03ed31c3404fdc27cccc7 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
7694c718db
commit
61d6f84e25
@@ -46,14 +46,12 @@ public:
|
|||||||
explicit FormClassWizardDialog(const Core::BaseFileWizardFactory *factory, QWidget *parent = 0);
|
explicit FormClassWizardDialog(const Core::BaseFileWizardFactory *factory, QWidget *parent = 0);
|
||||||
|
|
||||||
QString path() const;
|
QString path() const;
|
||||||
|
void setPath(const QString &);
|
||||||
|
|
||||||
Designer::FormClassWizardParameters parameters() const;
|
Designer::FormClassWizardParameters parameters() const;
|
||||||
|
|
||||||
bool validateCurrentPage();
|
bool validateCurrentPage();
|
||||||
|
|
||||||
public slots:
|
|
||||||
void setPath(const QString &);
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void initializePage(int id);
|
void initializePage(int id);
|
||||||
|
|
||||||
|
@@ -48,6 +48,8 @@ public:
|
|||||||
virtual bool isComplete () const;
|
virtual bool isComplete () const;
|
||||||
virtual bool validatePage();
|
virtual bool validatePage();
|
||||||
|
|
||||||
|
void setClassName(const QString &suggestedClassName);
|
||||||
|
void setPath(const QString &);
|
||||||
QString path() const;
|
QString path() const;
|
||||||
|
|
||||||
// Fill out applicable parameters
|
// Fill out applicable parameters
|
||||||
@@ -58,11 +60,7 @@ public:
|
|||||||
|
|
||||||
static bool lowercaseHeaderFiles();
|
static bool lowercaseHeaderFiles();
|
||||||
|
|
||||||
public slots:
|
private:
|
||||||
void setClassName(const QString &suggestedClassName);
|
|
||||||
void setPath(const QString &);
|
|
||||||
|
|
||||||
private slots:
|
|
||||||
void slotValidChanged();
|
void slotValidChanged();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@@ -63,8 +63,6 @@ public:
|
|||||||
SharedTools::WidgetHost *formWindowEditorForFormWindow(const QDesignerFormWindowInterface *fw) const;
|
SharedTools::WidgetHost *formWindowEditorForFormWindow(const QDesignerFormWindowInterface *fw) const;
|
||||||
|
|
||||||
EditorData activeEditor() const;
|
EditorData activeEditor() const;
|
||||||
|
|
||||||
public slots:
|
|
||||||
void resetToDefaultLayout();
|
void resetToDefaultLayout();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@@ -47,14 +47,14 @@ public:
|
|||||||
bool initialize(const QStringList &arguments, QString *errorMessage = 0) override;
|
bool initialize(const QStringList &arguments, QString *errorMessage = 0) override;
|
||||||
void extensionsInitialized() override;
|
void extensionsInitialized() override;
|
||||||
|
|
||||||
private slots:
|
|
||||||
#ifdef WITH_TESTS
|
#ifdef WITH_TESTS
|
||||||
|
private slots:
|
||||||
void test_gotoslot();
|
void test_gotoslot();
|
||||||
void test_gotoslot_data();
|
void test_gotoslot_data();
|
||||||
#endif
|
#endif
|
||||||
void switchSourceForm();
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void switchSourceForm();
|
||||||
void initializeTemplates();
|
void initializeTemplates();
|
||||||
|
|
||||||
QAction *m_actionSwitchSource;
|
QAction *m_actionSwitchSource;
|
||||||
|
@@ -62,15 +62,13 @@ public:
|
|||||||
|
|
||||||
EditorData activeEditor() const;
|
EditorData activeEditor() const;
|
||||||
|
|
||||||
public slots:
|
|
||||||
void removeFormWindowEditor(QObject *);
|
void removeFormWindowEditor(QObject *);
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void updateFormWindowSelectionHandles();
|
void updateFormWindowSelectionHandles();
|
||||||
void modeAboutToChange(Core::Id mode);
|
void modeAboutToChange(Core::Id mode);
|
||||||
void formSizeChanged(int w, int h);
|
void formSizeChanged(int w, int h);
|
||||||
|
|
||||||
private:
|
|
||||||
inline int indexOfFormWindow(const QDesignerFormWindowInterface *) const;
|
inline int indexOfFormWindow(const QDesignerFormWindowInterface *) const;
|
||||||
inline int indexOfFormEditor(const QObject *xmlEditor) const;
|
inline int indexOfFormEditor(const QObject *xmlEditor) const;
|
||||||
|
|
||||||
|
@@ -68,10 +68,9 @@ public:
|
|||||||
signals:
|
signals:
|
||||||
void templateActivated();
|
void templateActivated();
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void slotCurrentTemplateChanged(bool);
|
void slotCurrentTemplateChanged(bool);
|
||||||
|
|
||||||
private:
|
|
||||||
QString m_templateContents;
|
QString m_templateContents;
|
||||||
QDesignerNewFormWidgetInterface *m_newFormWidget;
|
QDesignerNewFormWidgetInterface *m_newFormWidget;
|
||||||
bool m_templateSelected;
|
bool m_templateSelected;
|
||||||
|
@@ -69,15 +69,13 @@ public:
|
|||||||
QString formWindowContents() const;
|
QString formWindowContents() const;
|
||||||
ResourceHandler *resourceHandler() const;
|
ResourceHandler *resourceHandler() const;
|
||||||
|
|
||||||
public slots:
|
|
||||||
void setFilePath(const Utils::FileName &) override;
|
void setFilePath(const Utils::FileName &) override;
|
||||||
void setShouldAutoSave(bool sad = true) { m_shouldAutoSave = sad; }
|
void setShouldAutoSave(bool sad = true) { m_shouldAutoSave = sad; }
|
||||||
void updateIsModified();
|
void updateIsModified();
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void slotFormWindowRemoved(QDesignerFormWindowInterface *w);
|
void slotFormWindowRemoved(QDesignerFormWindowInterface *w);
|
||||||
|
|
||||||
private:
|
|
||||||
QString m_suggestedName;
|
QString m_suggestedName;
|
||||||
bool m_shouldAutoSave = false;
|
bool m_shouldAutoSave = false;
|
||||||
// Might actually go out of scope before the IEditor due
|
// Might actually go out of scope before the IEditor due
|
||||||
|
@@ -44,18 +44,16 @@ public:
|
|||||||
|
|
||||||
bool supportsToSlotNavigation() { return true; }
|
bool supportsToSlotNavigation() { return true; }
|
||||||
|
|
||||||
|
void updateSelection() override;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void creatorHelpRequested(const QUrl &url);
|
void creatorHelpRequested(const QUrl &url);
|
||||||
|
|
||||||
public slots:
|
private:
|
||||||
void updateSelection() override;
|
|
||||||
|
|
||||||
private slots:
|
|
||||||
void slotNavigateToSlot(const QString &objectName, const QString &signalSignature, const QStringList ¶meterNames);
|
void slotNavigateToSlot(const QString &objectName, const QString &signalSignature, const QStringList ¶meterNames);
|
||||||
void slotDesignerHelpRequested(const QString &manual, const QString &document);
|
void slotDesignerHelpRequested(const QString &manual, const QString &document);
|
||||||
void slotSyncSettingsToDesigner();
|
void slotSyncSettingsToDesigner();
|
||||||
|
|
||||||
private:
|
|
||||||
bool navigateToSlot(const QString &objectName,
|
bool navigateToSlot(const QString &objectName,
|
||||||
const QString &signalSignature,
|
const QString &signalSignature,
|
||||||
const QStringList ¶meterNames,
|
const QStringList ¶meterNames,
|
||||||
|
@@ -52,7 +52,6 @@ public:
|
|||||||
explicit ResourceHandler(QDesignerFormWindowInterface *fw);
|
explicit ResourceHandler(QDesignerFormWindowInterface *fw);
|
||||||
virtual ~ResourceHandler();
|
virtual ~ResourceHandler();
|
||||||
|
|
||||||
public slots:
|
|
||||||
void updateResources() { updateResourcesHelper(false); }
|
void updateResources() { updateResourcesHelper(false); }
|
||||||
void updateProjectResources() { updateResourcesHelper(true); }
|
void updateProjectResources() { updateResourcesHelper(true); }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user