diff options
author | con <qtc-committer@nokia.com> | 2010-06-21 16:12:49 +0200 |
---|---|---|
committer | con <qtc-committer@nokia.com> | 2010-06-21 17:32:15 +0200 |
commit | 08c8ce32e917619f49ea019914b1c981044a04d8 (patch) | |
tree | 19be2b931a4d4c58feb1fbb1056960171717c975 /doc/examples/preferencepane | |
parent | abcb9358c26c240c409df15300507a90aef37f48 (diff) | |
download | qt-creator-08c8ce32e917619f49ea019914b1c981044a04d8.tar.gz |
Move the plugin examples to subdir of pluginhowto.
Diffstat (limited to 'doc/examples/preferencepane')
-rw-r--r-- | doc/examples/preferencepane/PreferencePane.pluginspec | 10 | ||||
-rw-r--r-- | doc/examples/preferencepane/modifiedfilelister.cpp | 47 | ||||
-rw-r--r-- | doc/examples/preferencepane/modifiedfilelister.h | 21 | ||||
-rw-r--r-- | doc/examples/preferencepane/modifiedfilelistwidget.cpp | 20 | ||||
-rw-r--r-- | doc/examples/preferencepane/modifiedfilelistwidget.h | 14 | ||||
-rw-r--r-- | doc/examples/preferencepane/preferencepaneplugin.cpp | 36 | ||||
-rw-r--r-- | doc/examples/preferencepane/preferencepaneplugin.h | 18 | ||||
-rw-r--r-- | doc/examples/preferencepane/preferencepaneplugin.pro | 21 |
8 files changed, 0 insertions, 187 deletions
diff --git a/doc/examples/preferencepane/PreferencePane.pluginspec b/doc/examples/preferencepane/PreferencePane.pluginspec deleted file mode 100644 index 227b4807c8..0000000000 --- a/doc/examples/preferencepane/PreferencePane.pluginspec +++ /dev/null @@ -1,10 +0,0 @@ -<plugin name="PreferencePane" version="0.0.1"> - <vendor>FooCompanyInc Pvt. Ltd</vendor> - <copyright>(C) 2009-2010 FooCompanyInc Pvt. Ltd.</copyright> - <license></license> - <description>{{PLUGIN_DESCRIPTION}}</description> - <url>http://www.FooCompany.com</url> - <dependencyList> - <dependency name="Core"/> - </dependencyList> -</plugin> diff --git a/doc/examples/preferencepane/modifiedfilelister.cpp b/doc/examples/preferencepane/modifiedfilelister.cpp deleted file mode 100644 index 12d4c95025..0000000000 --- a/doc/examples/preferencepane/modifiedfilelister.cpp +++ /dev/null @@ -1,47 +0,0 @@ -#include "modifiedfilelister.h" -#include "modifiedfilelistwidget.h" - -ModifiedFileLister::ModifiedFileLister(QObject *parent): IOptionsPage(parent) -{ - -} - -ModifiedFileLister::~ModifiedFileLister() -{ - -} - -QString ModifiedFileLister::id() const -{ - return "ModifiedFiles"; -} - -QString ModifiedFileLister::trName() const -{ - return tr("Modified Files"); -} - -QString ModifiedFileLister::category() const -{ - return "Help"; -} - -QString ModifiedFileLister::trCategory() const -{ - return tr("Help"); -} - -QWidget *ModifiedFileLister::createPage(QWidget *parent) -{ - return new ModifiedFileListWidget(parent); -} - -void ModifiedFileLister::apply() -{ - // Do nothing -} - -void ModifiedFileLister::finish() -{ - // Do nothing -} diff --git a/doc/examples/preferencepane/modifiedfilelister.h b/doc/examples/preferencepane/modifiedfilelister.h deleted file mode 100644 index 8b4d41c40a..0000000000 --- a/doc/examples/preferencepane/modifiedfilelister.h +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef MODIFIEDFILELISTER_H -#define MODIFIEDFILELISTER_H - -#include <coreplugin/dialogs/ioptionspage.h> -class ModifiedFileLister : public Core::IOptionsPage -{ - Q_OBJECT - -public: - ModifiedFileLister(QObject *parent = 0); - ~ModifiedFileLister(); - // IOptionsPage implementation - QString id() const; - QString trName() const; - QString category() const; - QString trCategory() const; - QWidget *createPage(QWidget *parent); - void apply(); - void finish(); -}; -#endif // MODIFIEDFILELISTER_H diff --git a/doc/examples/preferencepane/modifiedfilelistwidget.cpp b/doc/examples/preferencepane/modifiedfilelistwidget.cpp deleted file mode 100644 index f9030a8a89..0000000000 --- a/doc/examples/preferencepane/modifiedfilelistwidget.cpp +++ /dev/null @@ -1,20 +0,0 @@ -#include "modifiedfilelistwidget.h" - -#include <coreplugin/filemanager.h> -#include <coreplugin/icore.h> -#include <coreplugin/ifile.h> - -ModifiedFileListWidget::ModifiedFileListWidget(QWidget* parent):QListWidget(parent) -{ - // Show the list of modified pages - Core::FileManager* fm = Core::ICore::instance()->fileManager(); - QList<Core::IFile*> files = fm->modifiedFiles(); - - for(int i=0; i<files.count();i++) - this->addItem(files.at(i)->fileName()); -} - -ModifiedFileListWidget::~ModifiedFileListWidget() -{ - //Do Nothing -} diff --git a/doc/examples/preferencepane/modifiedfilelistwidget.h b/doc/examples/preferencepane/modifiedfilelistwidget.h deleted file mode 100644 index 81880163ee..0000000000 --- a/doc/examples/preferencepane/modifiedfilelistwidget.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef MODIFIEDFILELISTWIDGET_H -#define MODIFIEDFILELISTWIDGET_H - -#include <QListWidget> -class ModifiedFileListWidget: public QListWidget -{ - Q_OBJECT - -public: - ModifiedFileListWidget(QWidget* parent=0); - ~ModifiedFileListWidget(); -}; - -#endif // MODIFIEDFILELISTWIDGET_H diff --git a/doc/examples/preferencepane/preferencepaneplugin.cpp b/doc/examples/preferencepane/preferencepaneplugin.cpp deleted file mode 100644 index d1cc8929fb..0000000000 --- a/doc/examples/preferencepane/preferencepaneplugin.cpp +++ /dev/null @@ -1,36 +0,0 @@ -#include "preferencepaneplugin.h" -#include "modifiedfilelister.h" - -#include <QtPlugin> -#include <QStringList> - -PreferencePanePlugin::PreferencePanePlugin() -{ - // Do nothing -} - -PreferencePanePlugin::~PreferencePanePlugin() -{ - // Do notning -} - -void PreferencePanePlugin::extensionsInitialized() -{ - // Do nothing -} - -bool PreferencePanePlugin::initialize(const QStringList& args, QString *errMsg) -{ - Q_UNUSED(args); - Q_UNUSED(errMsg); - - addAutoReleasedObject(new ModifiedFileLister); - return true; -} - -void PreferencePanePlugin::shutdown() -{ - // Do nothing -} - -Q_EXPORT_PLUGIN(PreferencePanePlugin) diff --git a/doc/examples/preferencepane/preferencepaneplugin.h b/doc/examples/preferencepane/preferencepaneplugin.h deleted file mode 100644 index 808cd04b81..0000000000 --- a/doc/examples/preferencepane/preferencepaneplugin.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef PREFERENCEPANE_PLUGIN_H -#define PREFERENCEPANE_PLUGIN_H - -#include <extensionsystem/iplugin.h> - -class PreferencePanePlugin : public ExtensionSystem::IPlugin -{ -public: - PreferencePanePlugin(); - ~PreferencePanePlugin(); - - void extensionsInitialized(); - bool initialize(const QStringList & arguments, QString * errorString); - void shutdown(); -}; - -#endif // PREFERENCEPANE_PLUGIN_H - diff --git a/doc/examples/preferencepane/preferencepaneplugin.pro b/doc/examples/preferencepane/preferencepaneplugin.pro deleted file mode 100644 index 1fd34e184d..0000000000 --- a/doc/examples/preferencepane/preferencepaneplugin.pro +++ /dev/null @@ -1,21 +0,0 @@ -QTC_SOURCE = C:/Work/QtCreator -QTC_BUILD = C:/Work/QtCreator/build -TEMPLATE = lib -TARGET = PreferencePane -IDE_SOURCE_TREE = $$QTC_SOURCE -IDE_BUILD_TREE = $$QTC_BUILD - -PROVIDER = FooCompanyInc - -include($$QTC_SOURCE/src/qtcreatorplugin.pri) -include($$QTC_SOURCE/src/plugins/coreplugin/coreplugin.pri) - -LIBS += -L$$IDE_PLUGIN_PATH/Nokia - -HEADERS = preferencepaneplugin.h \ - modifiedfilelistwidget.h \ - modifiedfilelister.h -SOURCES = preferencepaneplugin.cpp \ - modifiedfilelistwidget.cpp \ - modifiedfilelister.cpp -OTHER_FILES = PreferencePane.pluginspec |