compile fix with namespaces

Change-Id: I1b888ff8bd5c30a13dc8c00824d4cae6990a4b23
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-11-24 13:00:01 +01:00
committed by hjk
parent 4ba95878b3
commit f012bf4494
31 changed files with 90 additions and 322 deletions

View File

@@ -37,23 +37,12 @@
#include <QtGui/QDialog> #include <QtGui/QDialog>
QT_BEGIN_NAMESPACE namespace Utils { class SshConnectionParameters; }
namespace Analyzer { namespace Analyzer {
namespace Internal {
namespace Ui {
class StartRemoteDialog;
} // namespace Ui
} // namespace Internal
} // namespace Analyzer
QT_END_NAMESPACE namespace Internal { namespace Ui { class StartRemoteDialog; } }
namespace Utils {
class SshConnectionParameters;
}
namespace Analyzer {
class ANALYZER_EXPORT StartRemoteDialog : public QDialog class ANALYZER_EXPORT StartRemoteDialog : public QDialog
{ {

View File

@@ -41,13 +41,6 @@ QT_BEGIN_NAMESPACE
class QLineEdit; class QLineEdit;
class QTreeWidget; class QTreeWidget;
class QTreeWidgetItem; class QTreeWidgetItem;
namespace Core {
namespace Internal {
namespace Ui {
class CommandMappings;
} // namespace Ui
} // namespace Internal
} // namespace Core
QT_END_NAMESPACE QT_END_NAMESPACE
namespace Core { namespace Core {
@@ -56,6 +49,8 @@ class Command;
namespace Internal { namespace Internal {
namespace Ui { class CommandMappings; }
class ActionManagerPrivate; class ActionManagerPrivate;
class MainWindow; class MainWindow;

View File

@@ -43,23 +43,14 @@ class QLineEdit;
class QTextEdit; class QTextEdit;
class QPlainTextEdit; class QPlainTextEdit;
class QListWidgetItem; class QListWidgetItem;
namespace Core {
namespace Internal {
namespace Ui {
class VariableChooser;
} // namespace Ui
} // namespace Internal
} // namespace Core
QT_END_NAMESPACE QT_END_NAMESPACE
namespace Utils { namespace Utils { class IconButton; }
class IconButton;
} // namespace Utils
namespace Core { namespace Core {
namespace Internal { namespace Ui { class VariableChooser; } }
class CORE_EXPORT VariableChooser : public QWidget class CORE_EXPORT VariableChooser : public QWidget
{ {
Q_OBJECT Q_OBJECT
@@ -90,4 +81,5 @@ private:
}; };
} // namespace Core } // namespace Core
#endif // VARIABLECHOOSER_H #endif // VARIABLECHOOSER_H

View File

@@ -36,18 +36,10 @@
#include <texteditor/completionsettings.h> #include <texteditor/completionsettings.h>
#include <texteditor/texteditoroptionspage.h> #include <texteditor/texteditoroptionspage.h>
QT_BEGIN_NAMESPACE
namespace CppTools { namespace CppTools {
namespace Internal { namespace Internal {
namespace Ui {
class CompletionSettingsPage;
} // namespace Ui
} // namespace Internal
} // namespace CppTools
QT_END_NAMESPACE
namespace CppTools { namespace Ui { class CompletionSettingsPage; }
namespace Internal {
// TODO: Move this class to the text editor plugin // TODO: Move this class to the text editor plugin

View File

@@ -88,11 +88,10 @@ public:
void fromMap(const QString &prefix, const QVariantMap &map); void fromMap(const QString &prefix, const QVariantMap &map);
bool equals(const CppCodeStyleSettings &rhs) const; bool equals(const CppCodeStyleSettings &rhs) const;
bool operator==(const CppCodeStyleSettings &s) const { return equals(s); }
bool operator!=(const CppCodeStyleSettings &s) const { return !equals(s); }
}; };
inline bool operator==(const CppCodeStyleSettings &s1, const CppCodeStyleSettings &s2) { return s1.equals(s2); }
inline bool operator!=(const CppCodeStyleSettings &s1, const CppCodeStyleSettings &s2) { return !s1.equals(s2); }
} // namespace CppTools } // namespace CppTools
Q_DECLARE_METATYPE(CppTools::CppCodeStyleSettings) Q_DECLARE_METATYPE(CppTools::CppCodeStyleSettings)

View File

@@ -34,27 +34,20 @@
#define CPPSETTINGSPAGE_H #define CPPSETTINGSPAGE_H
#include <coreplugin/dialogs/ioptionspage.h> #include <coreplugin/dialogs/ioptionspage.h>
#include <QtCore/QPointer> #include <QtCore/QPointer>
#include <QtCore/QSharedPointer> #include <QtCore/QSharedPointer>
#include <QtGui/QWidget> #include <QtGui/QWidget>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
namespace CppTools {
namespace Internal {
namespace Ui {
class CppFileSettingsPage;
} // namespace Ui
} // namespace Internal
} // namespace CppTools
class QSettings; class QSettings;
QT_END_NAMESPACE QT_END_NAMESPACE
namespace CppTools { namespace CppTools {
namespace Internal { namespace Internal {
namespace Ui { class CppFileSettingsPage; }
struct CppFileSettings struct CppFileSettings
{ {
CppFileSettings(); CppFileSettings();
@@ -73,11 +66,10 @@ struct CppFileSettings
static QString licenseTemplate(const QString &file = QString(), const QString &className = QString()); static QString licenseTemplate(const QString &file = QString(), const QString &className = QString());
bool equals(const CppFileSettings &rhs) const; bool equals(const CppFileSettings &rhs) const;
bool operator==(const CppFileSettings &s) const { return equals(s); }
bool operator!=(const CppFileSettings &s) const { return !equals(s); }
}; };
inline bool operator==(const CppFileSettings &s1, const CppFileSettings &s2) { return s1.equals(s2); }
inline bool operator!=(const CppFileSettings &s1, const CppFileSettings &s2) { return !s1.equals(s2); }
class CppFileSettingsWidget : public QWidget class CppFileSettingsWidget : public QWidget
{ {
Q_OBJECT Q_OBJECT
@@ -98,7 +90,7 @@ private:
inline QString licenseTemplatePath() const; inline QString licenseTemplatePath() const;
inline void setLicenseTemplatePath(const QString &); inline void setLicenseTemplatePath(const QString &);
Internal::Ui::CppFileSettingsPage *m_ui; Ui::CppFileSettingsPage *m_ui;
}; };
class CppFileSettingsPage : public Core::IOptionsPage class CppFileSettingsPage : public Core::IOptionsPage

View File

@@ -39,14 +39,17 @@
#include <QtGui/QVBoxLayout> #include <QtGui/QVBoxLayout>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QModelIndex; class QModelIndex;
class QPushButton; class QPushButton;
class QLineEdit; class QLineEdit;
class QDialogButtonBox; class QDialogButtonBox;
QT_END_NAMESPACE
namespace ProjectExplorer { class Abi; }
namespace Debugger { namespace Debugger {
namespace Internal { namespace Internal {
namespace Ui { namespace Ui {
class AttachCoreDialog; class AttachCoreDialog;
class AttachExternalDialog; class AttachExternalDialog;
@@ -55,17 +58,6 @@ class StartRemoteDialog;
class AttachToQmlPortDialog; class AttachToQmlPortDialog;
class StartRemoteEngineDialog; class StartRemoteEngineDialog;
} // namespace Ui } // namespace Ui
} // namespace Internal
} // namespace Debugger
QT_END_NAMESPACE
namespace ProjectExplorer {
class Abi;
}
namespace Debugger {
namespace Internal {
class ProcessListFilterModel; class ProcessListFilterModel;

View File

@@ -36,17 +36,7 @@
#include <projectexplorer/abstractprocessstep.h> #include <projectexplorer/abstractprocessstep.h>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QListWidgetItem; class QListWidgetItem;
namespace GenericProjectManager {
namespace Internal {
namespace Ui {
class GenericMakeStep;
} // namespace Ui
} // namespace Internal
} // namespace GenericProjectManager
QT_END_NAMESPACE QT_END_NAMESPACE
namespace GenericProjectManager { namespace GenericProjectManager {
@@ -55,10 +45,12 @@ namespace Internal {
class GenericBuildConfiguration; class GenericBuildConfiguration;
class GenericMakeStepConfigWidget; class GenericMakeStepConfigWidget;
class GenericMakeStepFactory; class GenericMakeStepFactory;
namespace Ui { class GenericMakeStep; }
class GenericMakeStep : public ProjectExplorer::AbstractProcessStep class GenericMakeStep : public ProjectExplorer::AbstractProcessStep
{ {
Q_OBJECT Q_OBJECT
friend class GenericMakeStepConfigWidget; // TODO remove again? friend class GenericMakeStepConfigWidget; // TODO remove again?
friend class GenericMakeStepFactory; friend class GenericMakeStepFactory;

View File

@@ -61,6 +61,7 @@ class ToolChain;
namespace GenericProjectManager { namespace GenericProjectManager {
namespace Internal { namespace Internal {
class GenericBuildConfiguration; class GenericBuildConfiguration;
class GenericProject; class GenericProject;
class GenericTarget; class GenericTarget;

View File

@@ -39,8 +39,8 @@
#include <QtGui/QAction> #include <QtGui/QAction>
namespace ProjectExplorer { namespace ProjectExplorer {
class Project; class Project;
class Node; class Node;
} }
namespace GenericProjectManager { namespace GenericProjectManager {
@@ -48,7 +48,7 @@ namespace Internal {
class ProjectFilesFactory; class ProjectFilesFactory;
class GenericProjectPlugin: public ExtensionSystem::IPlugin class GenericProjectPlugin : public ExtensionSystem::IPlugin
{ {
Q_OBJECT Q_OBJECT

View File

@@ -35,18 +35,6 @@
#include <projectexplorer/deployconfiguration.h> #include <projectexplorer/deployconfiguration.h>
QT_BEGIN_NAMESPACE
namespace Madde {
namespace Internal {
namespace Ui {
class MaemoDeployConfigurationWidget;
} // namespace Ui
} // namespace Internal
} // namespace Madde
QT_END_NAMESPACE
namespace RemoteLinux { namespace RemoteLinux {
class DeployableFilesPerProFile; class DeployableFilesPerProFile;
class RemoteLinuxDeployConfigurationWidget; class RemoteLinuxDeployConfigurationWidget;
@@ -54,7 +42,10 @@ class RemoteLinuxDeployConfigurationWidget;
namespace Madde { namespace Madde {
namespace Internal { namespace Internal {
class Qt4MaemoDeployConfiguration; class Qt4MaemoDeployConfiguration;
namespace Ui { class MaemoDeployConfigurationWidget; }
class MaemoDeployConfigurationWidget : public ProjectExplorer::DeployConfigurationWidget class MaemoDeployConfigurationWidget : public ProjectExplorer::DeployConfigurationWidget
{ {

View File

@@ -34,25 +34,16 @@
#include <projectexplorer/buildstep.h> #include <projectexplorer/buildstep.h>
QT_BEGIN_NAMESPACE
namespace Madde { namespace Madde {
namespace Internal { namespace Internal {
namespace Ui {
class MaemoPackageCreationWidget;
} // namespace Ui
} // namespace Internal
} // namespace Madde
QT_END_NAMESPACE namespace Ui { class MaemoPackageCreationWidget; }
namespace Madde {
namespace Internal {
class AbstractMaemoPackageCreationStep; class AbstractMaemoPackageCreationStep;
class MaemoPackageCreationWidget : public ProjectExplorer::BuildStepConfigWidget class MaemoPackageCreationWidget : public ProjectExplorer::BuildStepConfigWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
MaemoPackageCreationWidget(AbstractMaemoPackageCreationStep *step); MaemoPackageCreationWidget(AbstractMaemoPackageCreationStep *step);
~MaemoPackageCreationWidget(); ~MaemoPackageCreationWidget();

View File

@@ -29,28 +29,21 @@
** Nokia at qt-info@nokia.com. ** Nokia at qt-info@nokia.com.
** **
**************************************************************************/ **************************************************************************/
#ifndef MAEMOPUBLISHINGBUILDSETTINGSPAGEFREMANTLEFREE_H #ifndef MAEMOPUBLISHINGBUILDSETTINGSPAGEFREMANTLEFREE_H
#define MAEMOPUBLISHINGBUILDSETTINGSPAGEFREMANTLEFREE_H #define MAEMOPUBLISHINGBUILDSETTINGSPAGEFREMANTLEFREE_H
#include <QtCore/QList> #include <QtCore/QList>
#include <QtGui/QWizardPage> #include <QtGui/QWizardPage>
QT_BEGIN_NAMESPACE
namespace Madde {
namespace Internal {
namespace Ui {
class MaemoPublishingWizardPageFremantleFree;
} // namespace Ui
} // namespace Internal
} // namespace Madde
QT_END_NAMESPACE
namespace ProjectExplorer { class Project; } namespace ProjectExplorer { class Project; }
namespace Qt4ProjectManager { class Qt4BuildConfiguration; } namespace Qt4ProjectManager { class Qt4BuildConfiguration; }
namespace Madde { namespace Madde {
namespace Internal { namespace Internal {
class MaemoPublisherFremantleFree; class MaemoPublisherFremantleFree;
namespace Ui { class MaemoPublishingWizardPageFremantleFree; }
class MaemoPublishingBuildSettingsPageFremantleFree : public QWizardPage class MaemoPublishingBuildSettingsPageFremantleFree : public QWizardPage
{ {

View File

@@ -35,18 +35,10 @@
#include <QtCore/QStringList> #include <QtCore/QStringList>
#include <QtGui/QDialog> #include <QtGui/QDialog>
QT_BEGIN_NAMESPACE
namespace Madde { namespace Madde {
namespace Internal { namespace Internal {
namespace Ui {
class MaemoPublishingFileSelectionDialog;
} // namespace Ui
} // namespace Internal
} // namespace Madde
QT_END_NAMESPACE
namespace Madde { namespace Ui { class MaemoPublishingFileSelectionDialog; }
namespace Internal {
class MaemoPublishingFileSelectionDialog : public QDialog class MaemoPublishingFileSelectionDialog : public QDialog
{ {

View File

@@ -29,26 +29,17 @@
** Nokia at qt-info@nokia.com. ** Nokia at qt-info@nokia.com.
** **
**************************************************************************/ **************************************************************************/
#ifndef MAEMOPUBLISHINGRESULTPAGEFREMANTLEFREE_H #ifndef MAEMOPUBLISHINGRESULTPAGEFREMANTLEFREE_H
#define MAEMOPUBLISHINGRESULTPAGEFREMANTLEFREE_H #define MAEMOPUBLISHINGRESULTPAGEFREMANTLEFREE_H
#include "maemopublisherfremantlefree.h" #include "maemopublisherfremantlefree.h"
#include <QtGui/QWizardPage> #include <QtGui/QWizardPage>
QT_BEGIN_NAMESPACE
namespace Madde { namespace Madde {
namespace Internal { namespace Internal {
namespace Ui {
class MaemoPublishingResultPageFremantleFree;
} // namespace Ui
} // namespace Internal
} // namespace Madde
QT_END_NAMESPACE namespace Ui { class MaemoPublishingResultPageFremantleFree; }
namespace Madde {
namespace Internal {
class MaemoPublishingResultPageFremantleFree : public QWizardPage class MaemoPublishingResultPageFremantleFree : public QWizardPage
{ {

View File

@@ -29,24 +29,17 @@
** Nokia at qt-info@nokia.com. ** Nokia at qt-info@nokia.com.
** **
**************************************************************************/ **************************************************************************/
#ifndef MAEMOPUBLISHINGUPLOADSETTINGSWIZARDPAGE_H #ifndef MAEMOPUBLISHINGUPLOADSETTINGSWIZARDPAGE_H
#define MAEMOPUBLISHINGUPLOADSETTINGSWIZARDPAGE_H #define MAEMOPUBLISHINGUPLOADSETTINGSWIZARDPAGE_H
#include <QtGui/QWizardPage> #include <QtGui/QWizardPage>
QT_BEGIN_NAMESPACE
namespace Madde { namespace Madde {
namespace Internal { namespace Internal {
namespace Ui {
class MaemoPublishingUploadSettingsPageFremantleFree;
} // namespace Ui
} // namespace Internal
} // namespace Madde
QT_END_NAMESPACE
namespace Madde {
namespace Internal {
class MaemoPublisherFremantleFree; class MaemoPublisherFremantleFree;
namespace Ui { class MaemoPublishingUploadSettingsPageFremantleFree; }
class MaemoPublishingUploadSettingsPageFremantleFree : public QWizardPage class MaemoPublishingUploadSettingsPageFremantleFree : public QWizardPage
{ {

View File

@@ -34,20 +34,10 @@
#include <QtGui/QWidget> #include <QtGui/QWidget>
QT_BEGIN_NAMESPACE
namespace Madde { namespace Madde {
namespace Internal { namespace Internal {
namespace Ui {
class MaemoQemuSettingsWidget;
} // namespace Ui
} // namespace Internal
} // namespace Madde
QT_END_NAMESPACE namespace Ui { class MaemoQemuSettingsWidget; }
namespace Madde {
namespace Internal {
class MaemoQemuSettingsWidget : public QWidget class MaemoQemuSettingsWidget : public QWidget
{ {

View File

@@ -35,20 +35,10 @@
#include <QtGui/QDialog> #include <QtGui/QDialog>
QT_BEGIN_NAMESPACE
namespace QmlJSEditor { namespace QmlJSEditor {
namespace Internal { namespace Internal {
namespace Ui {
class ComponentNameDialog;
} // namespace Ui
} // namespace Internal
} // namespace QmlJSEditor
QT_END_NAMESPACE namespace Ui { class ComponentNameDialog; }
namespace QmlJSEditor {
namespace Internal {
class ComponentNameDialog : public QDialog class ComponentNameDialog : public QDialog
{ {

View File

@@ -39,18 +39,6 @@
#include <projectexplorer/buildstep.h> #include <projectexplorer/buildstep.h>
#include <projectexplorer/task.h> #include <projectexplorer/task.h>
QT_BEGIN_NAMESPACE
namespace Qt4ProjectManager {
namespace Internal {
namespace Ui {
class MakeStep;
} // namespace Ui
} // namespace Internal
} // namespace Qt4ProjectManager
QT_END_NAMESPACE
namespace ProjectExplorer { namespace ProjectExplorer {
class BuildStep; class BuildStep;
class GnuMakeParser; class GnuMakeParser;
@@ -59,10 +47,13 @@ class Project;
} }
namespace Qt4ProjectManager { namespace Qt4ProjectManager {
class Qt4BuildConfiguration; class Qt4BuildConfiguration;
namespace Internal { namespace Internal {
namespace Ui { class MakeStep; }
class MakeStepFactory : public ProjectExplorer::IBuildStepFactory class MakeStepFactory : public ProjectExplorer::IBuildStepFactory
{ {
Q_OBJECT Q_OBJECT

View File

@@ -38,18 +38,6 @@
#include <QtCore/QStringList> #include <QtCore/QStringList>
QT_BEGIN_NAMESPACE
namespace Qt4ProjectManager {
namespace Internal {
namespace Ui {
class QMakeStep;
} // namespace Ui
} // namespace Internal
} // namespace Qt4ProjectManager
QT_END_NAMESPACE
namespace ProjectExplorer { namespace ProjectExplorer {
class BuildStep; class BuildStep;
class IBuildStepFactory; class IBuildStepFactory;
@@ -62,6 +50,8 @@ class Qt4Project;
namespace Internal { namespace Internal {
namespace Ui { class QMakeStep; }
class QMakeStepFactory : public ProjectExplorer::IBuildStepFactory class QMakeStepFactory : public ProjectExplorer::IBuildStepFactory
{ {
Q_OBJECT Q_OBJECT

View File

@@ -35,18 +35,6 @@
#include <QtGui/QWizardPage> #include <QtGui/QWizardPage>
QT_BEGIN_NAMESPACE
namespace Qt4ProjectManager {
namespace Internal {
namespace Ui {
class S60PublishingBuildSettingsPageOvi;
} // namespace Ui
} // namespace Internal
} // namespace Qt4ProjectManager
QT_END_NAMESPACE
namespace ProjectExplorer { namespace ProjectExplorer {
class Project; class Project;
class BuildConfiguration; class BuildConfiguration;
@@ -55,13 +43,19 @@ class ToolChain;
namespace Qt4ProjectManager { namespace Qt4ProjectManager {
namespace Internal { namespace Internal {
namespace Ui { class S60PublishingBuildSettingsPageOvi; }
class S60PublisherOvi; class S60PublisherOvi;
class S60PublishingBuildSettingsPageOvi : public QWizardPage class S60PublishingBuildSettingsPageOvi : public QWizardPage
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit S60PublishingBuildSettingsPageOvi(S60PublisherOvi *publisher, const ProjectExplorer::Project *project, QWidget *parent = 0); explicit S60PublishingBuildSettingsPageOvi(S60PublisherOvi *publisher,
const ProjectExplorer::Project *project, QWidget *parent = 0);
~S60PublishingBuildSettingsPageOvi(); ~S60PublishingBuildSettingsPageOvi();
virtual bool isComplete() const; virtual bool isComplete() const;
@@ -80,7 +74,7 @@ private:
private: private:
ProjectExplorer::BuildConfiguration *m_bc; ProjectExplorer::BuildConfiguration *m_bc;
ProjectExplorer::ToolChain *m_toolchain; ProjectExplorer::ToolChain *m_toolchain;
Ui::S60PublishingBuildSettingsPageOvi * m_ui; Ui::S60PublishingBuildSettingsPageOvi *m_ui;
S60PublisherOvi * const m_publisher; S60PublisherOvi * const m_publisher;
}; };

View File

@@ -35,25 +35,17 @@
#include <QWizardPage> #include <QWizardPage>
QT_BEGIN_NAMESPACE
namespace Qt4ProjectManager { namespace Qt4ProjectManager {
namespace Internal { namespace Internal {
namespace Ui {
class S60PublishingResultsPageOvi;
} // namespace Ui
} // namespace Internal
} // namespace Qt4ProjectManager
QT_END_NAMESPACE
namespace Qt4ProjectManager {
namespace Internal {
class S60PublisherOvi; class S60PublisherOvi;
namespace Ui { class S60PublishingResultsPageOvi; }
class S60PublishingResultsPageOvi : public QWizardPage class S60PublishingResultsPageOvi : public QWizardPage
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit S60PublishingResultsPageOvi(S60PublisherOvi *publisher, QWidget *parent = 0); explicit S60PublishingResultsPageOvi(S60PublisherOvi *publisher, QWidget *parent = 0);
~S60PublishingResultsPageOvi(); ~S60PublishingResultsPageOvi();

View File

@@ -36,25 +36,18 @@
#include <QtGui/QWizardPage> #include <QtGui/QWizardPage>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
namespace Qt4ProjectManager {
namespace Internal {
namespace Ui {
class S60PublishingSisSettingsPageOvi;
} // namespace Ui
} // namespace Internal
} // namespace Qt4ProjectManager
class QLabel; class QLabel;
QT_END_NAMESPACE QT_END_NAMESPACE
namespace ProjectExplorer { class Project; } namespace ProjectExplorer { class Project; }
namespace Qt4ProjectManager { namespace Qt4ProjectManager {
namespace Internal { namespace Internal {
class S60PublisherOvi; class S60PublisherOvi;
namespace Ui { class S60PublishingSisSettingsPageOvi; }
class S60PublishingSisSettingsPageOvi : public QWizardPage class S60PublishingSisSettingsPageOvi : public QWizardPage
{ {
Q_OBJECT Q_OBJECT
@@ -75,7 +68,8 @@ private slots:
void displayNameChanged(); void displayNameChanged();
private: private:
void reflectSettingState(bool settingState, QLabel *okLabel, QLabel *errorLabel, QLabel *errorReasonLabel, const QString &errorReason); void reflectSettingState(bool settingState, QLabel *okLabel,
QLabel *errorLabel, QLabel *errorReasonLabel, const QString &errorReason);
void showWarningsForUnenforcableChecks(); void showWarningsForUnenforcableChecks();
Ui::S60PublishingSisSettingsPageOvi *ui; Ui::S60PublishingSisSettingsPageOvi *ui;

View File

@@ -39,18 +39,8 @@
#include <QtGui/QWidget> #include <QtGui/QWidget>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QLineEdit; class QLineEdit;
class QSignalMapper; class QSignalMapper;
namespace RemoteLinux {
namespace Internal {
namespace Ui {
class LinuxDeviceConfigurationsSettingsWidget;
} // namespace Ui
} // namespace Internal
} // namespace RemoteLinux
QT_END_NAMESPACE QT_END_NAMESPACE
namespace RemoteLinux { namespace RemoteLinux {
@@ -59,6 +49,7 @@ class LinuxDeviceConfiguration;
class LinuxDeviceConfigurations; class LinuxDeviceConfigurations;
namespace Internal { namespace Internal {
namespace Ui { class LinuxDeviceConfigurationsSettingsWidget; }
class NameValidator; class NameValidator;
class LinuxDeviceConfigurationsSettingsWidget : public QWidget class LinuxDeviceConfigurationsSettingsWidget : public QWidget

View File

@@ -29,28 +29,18 @@
** Nokia at qt-info@nokia.com. ** Nokia at qt-info@nokia.com.
** **
**************************************************************************/ **************************************************************************/
#ifndef LINUXDEVICEFACTORYSELECTIONDIALOG_H #ifndef LINUXDEVICEFACTORYSELECTIONDIALOG_H
#define LINUXDEVICEFACTORYSELECTIONDIALOG_H #define LINUXDEVICEFACTORYSELECTIONDIALOG_H
#include <QtCore/QList> #include <QtCore/QList>
#include <QtGui/QDialog> #include <QtGui/QDialog>
QT_BEGIN_NAMESPACE
namespace RemoteLinux {
namespace Internal {
namespace Ui {
class LinuxDeviceFactorySelectionDialog;
} // namespace Ui
} // namespace Internal
} // namespace RemoteLinux
QT_END_NAMESPACE
namespace RemoteLinux { namespace RemoteLinux {
class ILinuxDeviceConfigurationFactory; class ILinuxDeviceConfigurationFactory;
namespace Internal { namespace Internal {
namespace Ui { class LinuxDeviceFactorySelectionDialog; }
class LinuxDeviceFactorySelectionDialog : public QDialog class LinuxDeviceFactorySelectionDialog : public QDialog
{ {

View File

@@ -29,6 +29,7 @@
** Nokia at qt-info@nokia.com. ** Nokia at qt-info@nokia.com.
** **
**************************************************************************/ **************************************************************************/
#ifndef PROFILESUPDATEDIALOG_H #ifndef PROFILESUPDATEDIALOG_H
#define PROFILESUPDATEDIALOG_H #define PROFILESUPDATEDIALOG_H
@@ -37,22 +38,11 @@
#include <QtCore/QString> #include <QtCore/QString>
#include <QtGui/QDialog> #include <QtGui/QDialog>
QT_BEGIN_NAMESPACE
namespace RemoteLinux {
namespace Internal {
namespace Ui {
class ProFilesUpdateDialog;
} // namespace Ui
} // namespace Internal
} // namespace RemoteLinux
QT_END_NAMESPACE
namespace RemoteLinux { namespace RemoteLinux {
class DeployableFilesPerProFile; class DeployableFilesPerProFile;
namespace Internal { namespace Internal {
namespace Ui { class ProFilesUpdateDialog; }
class ProFilesUpdateDialog : public QDialog class ProFilesUpdateDialog : public QDialog
{ {

View File

@@ -38,25 +38,17 @@
#include <QtGui/QWidget> #include <QtGui/QWidget>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QHBoxLayout; class QHBoxLayout;
class QComboBox; class QComboBox;
class QLabel; class QLabel;
class QCheckBox; class QCheckBox;
class QPushButton; class QPushButton;
namespace TextEditor {
namespace Internal {
namespace Ui {
class CodeStyleSelectorWidget;
} // namespace Ui
} // namespace Internal
} // namespace TextEditor
QT_END_NAMESPACE QT_END_NAMESPACE
namespace TextEditor { namespace TextEditor {
namespace Internal { namespace Ui { class CodeStyleSelectorWidget; } }
class ICodeStylePreferences; class ICodeStylePreferences;
class ICodeStylePreferencesFactory; class ICodeStylePreferencesFactory;
@@ -70,8 +62,6 @@ public:
void setCodeStyle(TextEditor::ICodeStylePreferences *codeStyle); void setCodeStyle(TextEditor::ICodeStylePreferences *codeStyle);
QString searchKeywords() const; QString searchKeywords() const;
signals:
private slots: private slots:
void slotComboBoxActivated(int index); void slotComboBoxActivated(int index);
void slotCurrentDelegateChanged(TextEditor::ICodeStylePreferences *delegate); void slotCurrentDelegateChanged(TextEditor::ICodeStylePreferences *delegate);

View File

@@ -35,22 +35,12 @@
#include "texteditor_global.h" #include "texteditor_global.h"
QT_BEGIN_NAMESPACE
namespace TextEditor {
namespace Internal {
namespace Ui {
class TabSettingsWidget;
} // namespace Ui
} // namespace Internal
} // namespace TextEditor
QT_END_NAMESPACE
#include <QtGui/QWidget> #include <QtGui/QWidget>
namespace TextEditor { namespace TextEditor {
namespace Internal { namespace Ui { class TabSettingsWidget; } }
class TabSettings; class TabSettings;
class TEXTEDITOR_EXPORT TabSettingsWidget : public QWidget class TEXTEDITOR_EXPORT TabSettingsWidget : public QWidget

View File

@@ -37,24 +37,22 @@
#include <QtGui/QWizardPage> #include <QtGui/QWizardPage>
QT_BEGIN_NAMESPACE
namespace VCSBase { namespace VCSBase {
namespace Internal { namespace Internal {
namespace Ui { namespace Ui {
class BaseCheckoutWizardPage; class BaseCheckoutWizardPage;
} // namespace Ui } // namespace Ui
} // namespace Internal } // namespace Internal
} // namespace VCSBase
QT_END_NAMESPACE
namespace VCSBase {
struct BaseCheckoutWizardPagePrivate; struct BaseCheckoutWizardPagePrivate;
class VCSBASE_EXPORT BaseCheckoutWizardPage : public QWizardPage { class VCSBASE_EXPORT BaseCheckoutWizardPage : public QWizardPage
{
Q_OBJECT Q_OBJECT
Q_PROPERTY(bool isBranchSelectorVisible READ isBranchSelectorVisible WRITE setBranchSelectorVisible) Q_PROPERTY(bool isBranchSelectorVisible READ isBranchSelectorVisible
WRITE setBranchSelectorVisible)
public: public:
BaseCheckoutWizardPage(QWidget *parent = 0); BaseCheckoutWizardPage(QWidget *parent = 0);
~BaseCheckoutWizardPage(); ~BaseCheckoutWizardPage();
@@ -85,21 +83,21 @@ protected:
void setDirectoryVisible(bool v); void setDirectoryVisible(bool v);
void setBranchSelectorVisible(bool v); void setBranchSelectorVisible(bool v);
/* Determine a checkout directory name from // Determine a checkout directory name from
* repository URL, that is, "protocol:/project" -> "project". */ // repository URL, that is, "protocol:/project" -> "project".
virtual QString directoryFromRepository(const QString &r) const; virtual QString directoryFromRepository(const QString &r) const;
/* Return list of branches of that repository, defaults to empty. */ // Return list of branches of that repository, defaults to empty.
virtual QStringList branches(const QString &repository, int *current); virtual QStringList branches(const QString &repository, int *current);
/* Add additional controls */ // Add additional controls.
void addLocalControl(QWidget *w); void addLocalControl(QWidget *w);
void addLocalControl(QString &description, QWidget *w); void addLocalControl(QString &description, QWidget *w);
void addRepositoryControl(QWidget *w); void addRepositoryControl(QWidget *w);
void addRepositoryControl(QString &description, QWidget *w); void addRepositoryControl(QString &description, QWidget *w);
/* Override validity information */ // Override validity information.
virtual bool checkIsValid() const; virtual bool checkIsValid() const;
private slots: private slots:

View File

@@ -40,20 +40,10 @@
#include <QtCore/QPointer> #include <QtCore/QPointer>
#include <QtGui/QWidget> #include <QtGui/QWidget>
QT_BEGIN_NAMESPACE
namespace VCSBase { namespace VCSBase {
namespace Internal { namespace Internal {
namespace Ui {
class CommonSettingsPage;
} // namespace Ui
} // namespace Internal
} // namespace VCSBase
QT_END_NAMESPACE namespace Ui { class CommonSettingsPage; }
namespace VCSBase {
namespace Internal {
class CommonSettingsWidget : public QWidget class CommonSettingsWidget : public QWidget
{ {
@@ -96,7 +86,7 @@ signals:
private: private:
void updateNickNames(); void updateNickNames();
CommonSettingsWidget* m_widget; CommonSettingsWidget *m_widget;
CommonVcsSettings m_settings; CommonVcsSettings m_settings;
QString m_searchKeyWords; QString m_searchKeyWords;
}; };

View File

@@ -36,27 +36,21 @@
#include <QtGui/QDialog> #include <QtGui/QDialog>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
namespace VCSBase {
namespace Internal {
namespace Ui {
class NickNameDialog;
} // namespace Ui
} // namespace Internal
} // namespace VCSBase
class QSortFilterProxyModel; class QSortFilterProxyModel;
class QStandardItemModel; class QStandardItemModel;
class QModelIndex; class QModelIndex;
class QPushButton; class QPushButton;
QT_END_NAMESPACE QT_END_NAMESPACE
namespace VCSBase { namespace VCSBase {
namespace Internal { namespace Internal {
class NickNameDialog : public QDialog { namespace Ui { class NickNameDialog; }
class NickNameDialog : public QDialog
{
Q_OBJECT Q_OBJECT
public: public:
explicit NickNameDialog(QStandardItemModel *model, QWidget *parent = 0); explicit NickNameDialog(QStandardItemModel *model, QWidget *parent = 0);
virtual ~NickNameDialog(); virtual ~NickNameDialog();
@@ -82,7 +76,6 @@ private:
Ui::NickNameDialog *m_ui; Ui::NickNameDialog *m_ui;
QStandardItemModel *m_model; QStandardItemModel *m_model;
QSortFilterProxyModel *m_filterModel; QSortFilterProxyModel *m_filterModel;
}; };
} // namespace Internal } // namespace Internal