Commit ca142997 authored by con's avatar con
Browse files

Rename IPlugin::shutdown --> IPlugin::aboutToShutdown

Discussed-with: hjk
parent 00dac575
......@@ -240,7 +240,7 @@
*/
/*!
\fn void IPlugin::shutdown()
\fn void IPlugin::aboutToShutdown()
Called during a shutdown sequence in the same order as initialization
before the plugins get deleted in reverse order.
This method can be used to optimize the shutdown down, e.g. to
......
......@@ -54,7 +54,7 @@ public:
virtual bool initialize(const QStringList &arguments, QString *errorString) = 0;
virtual void extensionsInitialized() = 0;
virtual void shutdown() { }
virtual void aboutToShutdown() { }
virtual void remoteCommand(const QStringList & /* options */, const QStringList & /* arguments */) { }
PluginSpec *pluginSpec() const;
......
......@@ -119,7 +119,7 @@
extensionsInitialized has been called. The loading process is
complete.
\value Stopped
The plugin has been shut down, i.e. the plugin's IPlugin::shutdown() method has been called.
The plugin has been shut down, i.e. the plugin's IPlugin::aboutToShutdown() method has been called.
\value Deleted
The plugin instance has been deleted.
*/
......@@ -959,7 +959,7 @@ void PluginSpecPrivate::stop()
{
if (!plugin)
return;
plugin->shutdown();
plugin->aboutToShutdown();
state = PluginSpec::Stopped;
}
......
......@@ -110,9 +110,9 @@ void CorePlugin::fileOpenRequest(const QString &f)
remoteCommand(QStringList(), QStringList(f));
}
void CorePlugin::shutdown()
void CorePlugin::aboutToShutdown()
{
m_mainWindow->shutdown();
m_mainWindow->aboutToShutdown();
Ne7SshObject::removeInstance();
}
......
......@@ -49,7 +49,7 @@ public:
virtual bool initialize(const QStringList &arguments, QString *errorMessage = 0);
virtual void extensionsInitialized();
virtual void shutdown();
virtual void aboutToShutdown();
virtual void remoteCommand(const QStringList & /* options */, const QStringList &args);
public slots:
......
......@@ -341,7 +341,7 @@
The application is guaranteed to shut down after this signal is emitted.
It's there as an addition to the usual plugin lifecycle methods, namely
IPlugin::shutdown(), just for convenience.
IPlugin::aboutToShutdown(), just for convenience.
*/
/*!
......
......@@ -1111,7 +1111,7 @@ void MainWindow::resetContext()
updateContextObject(0);
}
void MainWindow::shutdown()
void MainWindow::aboutToShutdown()
{
disconnect(QApplication::instance(), SIGNAL(focusChanged(QWidget*,QWidget*)),
this, SLOT(updateFocusWidget(QWidget*,QWidget*)));
......
......@@ -88,7 +88,7 @@ public:
bool init(QString *errorMessage);
void extensionsInitialized();
void shutdown();
void aboutToShutdown();
IContext *contextObject(QWidget *widget);
void addContextObject(IContext *contex);
......
......@@ -146,7 +146,7 @@ void CodepasterPlugin::extensionsInitialized()
{
}
void CodepasterPlugin::shutdown()
void CodepasterPlugin::aboutToShutdown()
{
// Delete temporary, fetched files
foreach(const QString &fetchedSnippet, m_fetchedSnippets) {
......
......@@ -55,7 +55,7 @@ public:
virtual bool initialize(const QStringList &arguments, QString *error_message);
virtual void extensionsInitialized();
virtual void shutdown();
virtual void aboutToShutdown();
public slots:
void postEditor();
......
......@@ -318,7 +318,7 @@ void CppPlugin::extensionsInitialized()
{
}
void CppPlugin::shutdown()
void CppPlugin::aboutToShutdown()
{
writeSettings();
}
......
......@@ -60,7 +60,7 @@ public:
bool initialize(const QStringList &arguments, QString *error_message = 0);
void extensionsInitialized();
void shutdown();
void aboutToShutdown();
// Connect editor to settings changed signals.
void initializeEditor(CPPEditor *editor);
......
......@@ -168,7 +168,7 @@ void CppToolsPlugin::extensionsInitialized()
m_modelManager->setHeaderSuffixes(mimeType.suffixes());
}
void CppToolsPlugin::shutdown()
void CppToolsPlugin::aboutToShutdown()
{
// Save settings
QSettings *settings = Core::ICore::instance()->settings();
......
......@@ -66,7 +66,7 @@ public:
bool initialize(const QStringList &arguments, QString *error_message);
void extensionsInitialized();
void shutdown();
void aboutToShutdown();
CppModelManager *cppModelManager() { return m_modelManager; }
QString correspondingHeaderOrSource(const QString &fileName) const;
......
......@@ -854,7 +854,7 @@ void DebuggerManager::showApplicationOutput(const QString &str, bool onStdErr)
emit applicationOutputAvailable(str, onStdErr);
}
void DebuggerManager::shutdown()
void DebuggerManager::aboutToShutdown()
{
STATE_DEBUG(d->m_engine);
if (d->m_engine)
......
......@@ -344,7 +344,7 @@ private:
void runTest(const QString &fileName);
Q_SLOT void createNewDock(QWidget *widget);
void shutdown();
void aboutToShutdown();
void toggleBreakpoint(const QString &fileName, int lineNumber);
Internal::BreakpointData *findBreakpoint(const QString &fileName, int lineNumber);
......
......@@ -565,16 +565,16 @@ DebuggerPlugin::~DebuggerPlugin()
m_uiSwitcher = 0;
}
void DebuggerPlugin::shutdown()
void DebuggerPlugin::aboutToShutdown()
{
QTC_ASSERT(m_manager, /**/);
if (m_manager)
m_manager->shutdown();
m_manager->aboutToShutdown();
writeSettings();
if (m_uiSwitcher)
m_uiSwitcher->shutdown();
m_uiSwitcher->aboutToShutdown();
}
static QString msgParameterMissing(const QString &a)
......
......@@ -83,7 +83,7 @@ public:
private:
virtual bool initialize(const QStringList &arguments, QString *error_message);
virtual void shutdown();
virtual void aboutToShutdown();
virtual void extensionsInitialized();
virtual void remoteCommand(const QStringList &options, const QStringList &arguments);
......
......@@ -421,7 +421,7 @@ QWidget *DebuggerUISwitcher::createContents(Core::BaseMode *mode)
return splitter;
}
void DebuggerUISwitcher::shutdown()
void DebuggerUISwitcher::aboutToShutdown()
{
writeSettings();
}
......
......@@ -85,7 +85,7 @@ public:
// called when all dependent plugins have loaded
void initialize();
void shutdown();
void aboutToShutdown();
// dockwidgets are registered to the main window
QDockWidget *createDockWidget(const QString &langName, QWidget *widget,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment