more cosmetic changes

This commit is contained in:
hjk
2008-12-02 14:09:21 +01:00
parent 1472bdb0cc
commit f61e8672db
262 changed files with 912 additions and 633 deletions

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "bineditor.h"
#include <texteditor/fontsettings.h>

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef BINEDITOR_H
#define BINEDITOR_H

View File

@@ -30,14 +30,17 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef BINEDITORCONSTANTS_H
#define BINEDITORCONSTANTS_H
namespace BINEditor {
namespace Constants {
const char * const C_BINEDITOR = "Binary Editor";
const char * const C_BINEDITOR_MIMETYPE = "application/octet-stream";
}
}
namespace Constants {
const char * const C_BINEDITOR = "Binary Editor";
const char * const C_BINEDITOR_MIMETYPE = "application/octet-stream";
} // namespace Constants
} // namespace BINEditor
#endif // BINEDITORCONSTANTS_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "bineditorplugin.h"
#include "bineditor.h"
#include "bineditorconstants.h"

View File

@@ -30,17 +30,18 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef BINEDITORPLUGIN_H
#define BINEDITORPLUGIN_H
#include <extensionsystem/iplugin.h>
#include <coreplugin/editormanager/ieditorfactory.h>
#include <QtCore/qplugin.h>
#include <QtCore/QPointer>
#include <QtCore/QStringList>
#include <QtGui/QAction>
#include <extensionsystem/iplugin.h>
#include <coreplugin/editormanager/ieditorfactory.h>
namespace Core {
class ICore;
class IWizard;

View File

@@ -30,8 +30,10 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "bookmark.h"
#include "bookmarkmanager.h"
#include <QtCore/QDebug>
#include <QtGui/QTextBlock>

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef BOOKMARK_H
#define BOOKMARK_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "bookmarkmanager.h"
#include "bookmark.h"
#include "bookmarksplugin.h"

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef BOOKMARKMANAGER_H
#define BOOKMARKMANAGER_H
@@ -131,7 +132,8 @@ private:
QItemSelectionModel *m_selectionModel;
};
class BookmarkView : public QListView {
class BookmarkView : public QListView
{
Q_OBJECT
public:
BookmarkView(QWidget *parent = 0);

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef BOOKMARKS_GLOBAL_H
#define BOOKMARKS_GLOBAL_H
@@ -49,8 +50,8 @@ const char * const BOOKMARKS_NEXTDOC_ACTION = "Bookmarks.Next.Document";
const char * const BOOKMARKS_MENU = "Bookmarks.Menu";
const char * const BOOKMARKS_CONTEXT = "Bookmarks";
} //namespace Constants
} //namespace Bookmarks
} // namespace Constants
} // namespace Bookmarks
#endif //BOOKMARKS_GLOBAL_H
#endif // BOOKMARKS_GLOBAL_H

View File

@@ -30,28 +30,28 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "bookmarksplugin.h"
#include "bookmarkmanager.h"
#include "bookmarks_global.h"
#include <QtCore/qplugin.h>
#include <QtGui/QMenu>
#include <QDebug>
#include <texteditor/texteditorconstants.h>
#include <coreplugin/icore.h>
#include <coreplugin/coreconstants.h>
#include <coreplugin/uniqueidmanager.h>
#include <coreplugin/actionmanager/actionmanagerinterface.h>
#include <QtCore/qplugin.h>
#include <QtGui/QMenu>
#include <QDebug>
using namespace Bookmarks::Constants;
using namespace Bookmarks::Internal;
BookmarksPlugin *BookmarksPlugin::m_instance = 0;
BookmarksPlugin::BookmarksPlugin():
m_bookmarkManager(0),
m_core(0)
BookmarksPlugin::BookmarksPlugin()
: m_bookmarkManager(0), m_core(0)
{
m_instance = this;
}

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef BOOKMARKS_H
#define BOOKMARKS_H

View File

@@ -30,11 +30,14 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "cmakeproject.h"
#include "cmakeprojectconstants.h"
#include "cmakeprojectnodes.h"
#include <extensionsystem/pluginmanager.h>
#include <cpptools/cppmodelmanagerinterface.h>
#include <QtCore/QDebug>
using namespace CMakeProjectManager;

View File

@@ -1,4 +1,4 @@
/***************************************************************************
/***************************************************************************
**
** This file is part of Qt Creator
**
@@ -30,17 +30,19 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef CMAKEPROJECT_H
#define CMAKEPROJECT_H
#include "cmakeprojectmanager.h"
#include "cmakeprojectnodes.h"
#include <projectexplorer/project.h>
#include <projectexplorer/projectnodes.h>
#include <projectexplorer/buildstep.h>
#include <coreplugin/ifile.h>
#include <QtCore/QXmlStreamReader>
#include "cmakeprojectmanager.h"
#include "cmakeprojectnodes.h"
#include <QtCore/QXmlStreamReader>
namespace CMakeProjectManager {
namespace Internal{
@@ -152,7 +154,7 @@ public:
virtual void init(const QString &buildConfiguration);
};
}
}
} // namespace Internal
} // namespace CMakeProjectManager
#endif // CMAKEPROJECT_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef CMAKEPROJECTCONSTANTS_H
#define CMAKEPROJECTCONSTANTS_H
@@ -39,7 +40,7 @@ namespace Constants {
const char * const PROJECTCONTEXT = "CMakeProject.ProjectContext";
const char * const CMAKEMIMETYPE = "text/x-cmake"; // TOOD check that this is correct
}
}
} // namespace Constants
} // namespace CMakeProjectManager
#endif // CMAKEPROJECTCONSTANTS_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "cmakeprojectmanager.h"
#include "cmakeprojectconstants.h"
#include "cmakeproject.h"
@@ -40,7 +41,6 @@
#include <coreplugin/uniqueidmanager.h>
#include <projectexplorer/projectexplorerconstants.h>
using namespace CMakeProjectManager::Internal;
CMakeManager::CMakeManager()

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef CMAKEPROJECTMANAGER_H
#define CMAKEPROJECTMANAGER_H
@@ -55,6 +56,8 @@ private:
int m_projectContext;
int m_projectLanguage;
};
}
}
} // namespace Internal
} // namespace CMakeProjectManager
#endif // CMAKEPROJECTMANAGER_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "cmakeprojectnodes.h"
using namespace CMakeProjectManager;

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef CMAKEPROJECTNODE_H
#define CMAKEPROJECTNODE_H
@@ -60,7 +61,8 @@ public:
using ProjectNode::addFileNodes;
using ProjectNode::addFolderNodes;
};
}
}
} // namespace Internal
} // namespace CMakeProjectManager
#endif // CMAKEPROJECTNODE_H

View File

@@ -30,13 +30,16 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "cmakeprojectplugin.h"
#include "cmakeprojectmanager.h"
#include <coreplugin/icore.h>
#include <coreplugin/mimedatabase.h>
#include <QtCore/qplugin.h>
#include <QtCore/QDebug>
#include "cmakeprojectmanager.h"
using namespace CMakeProjectManager::Internal;
@@ -59,7 +62,6 @@ bool CMakeProjectPlugin::initialize(const QStringList & /*arguments*/, QString *
void CMakeProjectPlugin::extensionsInitialized()
{
}
Q_EXPORT_PLUGIN(CMakeProjectPlugin)

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef CMAKEPROJECTPLUGIN_H
#define CMAKEPROJECTPLUGIN_H
@@ -52,9 +53,6 @@ public:
bool initialize(const QStringList &arguments, QString *error_message);
void extensionsInitialized();
private:
};
} // namespace Internal

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "actioncontainer.h"
#include "command.h"
#include "coreimpl.h"

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef ACTIONCONTAINER_H
#define ACTIONCONTAINER_H
@@ -152,6 +153,4 @@ private:
} // namespace Internal
} // namespace Core
#endif //ACTIONCONTAINER_H
#endif // ACTIONCONTAINER_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "actionmanager.h"
#include "mainwindow.h"
#include "actioncontainer.h"
@@ -510,6 +511,7 @@ IActionContainer *ActionManager::actionContainer(int uid) const
}
return it.value();
}
static const char *settingsGroup = "KeyBindings";
static const char *idKey = "ID";
static const char *sequenceKey = "Keysequence";

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef ACTIONMANAGER_H
#define ACTIONMANAGER_H
@@ -43,7 +44,8 @@ QT_BEGIN_NAMESPACE
class QSettings;
QT_END_NAMESPACE
struct CommandLocation {
struct CommandLocation
{
int m_container;
int m_position;
};
@@ -125,5 +127,4 @@ private:
} // namespace Internal
} // namespace Core
#endif //ACTIONMANAGER_H
#endif // ACTIONMANAGER_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef ACTIONMANAGERINTERFACE_H
#define ACTIONMANAGERINTERFACE_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include <QtCore/QDebug>
#include <QtGui/QAction>
#include <QtGui/QShortcut>

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef COMMAND_H
#define COMMAND_H
@@ -175,4 +176,4 @@ private:
} // namespace Internal
} // namespace Core
#endif //COMMAND_H
#endif // COMMAND_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "coreimpl.h"
#include "commandsfile.h"
#include "shortcutsettings.h"

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef COMMANDSFILE_H
#define COMMANDSFILE_H
@@ -44,7 +45,8 @@ namespace Internal {
struct ShortcutItem;
class CommandsFile : public QObject {
class CommandsFile : public QObject
{
Q_OBJECT
public:

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef IACTIONCONTAINER_H
#define IACTIONCONTAINER_H
@@ -42,6 +43,7 @@
namespace Core {
class ICommand;
class IActionContainer : public QObject
{
public:

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef ICOMMAND_H
#define ICOMMAND_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "basefilewizard.h"
#include "mimedatabase.h"
@@ -56,7 +57,8 @@ enum { debugWizard = 0 };
namespace Core {
class GeneratedFilePrivate : public QSharedData {
class GeneratedFilePrivate : public QSharedData
{
public:
GeneratedFilePrivate() {}
explicit GeneratedFilePrivate(const QString &p);
@@ -150,8 +152,11 @@ bool GeneratedFile::write(QString *errorMessage) const
file.close();
return true;
}
// ------------ BaseFileWizardParameterData
class BaseFileWizardParameterData : public QSharedData {
class BaseFileWizardParameterData : public QSharedData
{
public:
explicit BaseFileWizardParameterData(IWizard::Kind kind = IWizard::FileWizard);
@@ -338,7 +343,8 @@ void WizardEventLoop::rejected()
}
// ---------------- BaseFileWizardPrivate
struct BaseFileWizardPrivate {
struct BaseFileWizardPrivate
{
explicit BaseFileWizardPrivate(const Core::BaseFileWizardParameters &parameters,
Core::ICore *core);
@@ -666,6 +672,6 @@ GeneratedFiles StandardFileWizard::generateFiles(const QWizard *w,
errorMessage);
}
} // namespace Core
#include "basefilewizard.moc"

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef BASEFILEWIZARD_H
#define BASEFILEWIZARD_H
@@ -62,7 +63,8 @@ class GeneratedFilePrivate;
* each file whether it already exists and will report any errors that may
* occur during creation of the files.
*/
class CORE_EXPORT GeneratedFile {
class CORE_EXPORT GeneratedFile
{
public:
GeneratedFile();
explicit GeneratedFile(const QString &path);
@@ -93,7 +95,8 @@ typedef QList<GeneratedFile> GeneratedFiles;
/* Parameter class for passing parameters to instances of class Wizard
* containing name, icon and such. */
class CORE_EXPORT BaseFileWizardParameters {
class CORE_EXPORT BaseFileWizardParameters
{
public:
explicit BaseFileWizardParameters(IWizard::Kind kind = IWizard::FileWizard);
BaseFileWizardParameters(const BaseFileWizardParameters &);
@@ -204,7 +207,8 @@ private:
// Core::Utils::FileWizardDialog and introduces a new virtual to generate the
// files from path and name.
class CORE_EXPORT StandardFileWizard : public BaseFileWizard {
class CORE_EXPORT StandardFileWizard : public BaseFileWizard
{
Q_DISABLE_COPY(StandardFileWizard)
Q_OBJECT

View File

@@ -30,12 +30,13 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "basemode.h"
#include <QtGui/QWidget>
#include <extensionsystem/pluginmanager.h>
#include <QtGui/QWidget>
using namespace Core;
/*!

View File

@@ -30,11 +30,11 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef BASEMODE_H
#define BASEMODE_H
#include "core_global.h"
#include "imode.h"
#include <QtCore/QObject>

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "baseview.h"
#include <extensionsystem/ExtensionSystemInterfaces>

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef BASEVIEW_H
#define BASEVIEW_H

View File

@@ -30,18 +30,6 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
/****************************************************************************
**
** Copyright (C) 1992-$THISYEAR$ Trolltech AS. All rights reserved.
**
** This file is part of the $MODULE$ of the Qt Toolkit.
**
** $LICENSE$
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
****************************************************************************/
#ifndef CORE_GLOBAL_H
#define CORE_GLOBAL_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef CORECONSTANTS_H
#define CORECONSTANTS_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "coreimpl.h"
#include <QtCore/QDir>

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef COREIMPL_H
#define COREIMPL_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "coreplugin.h"
#include "welcomemode.h"
#include "editmode.h"

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef QWORKBENCHPLUGIN_H
#define QWORKBENCHPLUGIN_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef IOPTIONSPAGE_H
#define IOPTIONSPAGE_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef IWIZARD_H
#define IWIZARD_H
@@ -65,6 +66,7 @@ public:
virtual QStringList runWizard(const QString &path, QWidget *parent) = 0;
};
} // namespace Core
#endif // IWIZARD_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "newdialog.h"
#include "ui_newdialog.h"
#include "basefilewizard.h"
@@ -37,7 +38,6 @@
#include <coreplugin/coreconstants.h>
#include <coreplugin/dialogs/iwizard.h>
#include <QtGui/QHeaderView>
#include <QtGui/QPushButton>
@@ -143,7 +143,6 @@ void NewDialog::okButtonClicked()
accept();
}
void NewDialog::updateOkButton()
{
m_okButton->setEnabled(currentWizard() != 0);

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef NEWDIALOG_H
#define NEWDIALOG_H
@@ -79,4 +80,4 @@ private:
} // namespace Internal
} // namespace Core
#endif //NEWDIALOG_H
#endif // NEWDIALOG_H

View File

@@ -28,8 +28,9 @@
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt GPL Exception version
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
**
***************************************************************************/
#include "openwithdialog.h"
#include <QtGui/QListWidget>
@@ -39,8 +40,8 @@
using namespace Core;
using namespace Core::Internal;
OpenWithDialog::OpenWithDialog(const QString &fileName, QWidget *parent) :
QDialog(parent)
OpenWithDialog::OpenWithDialog(const QString &fileName, QWidget *parent)
: QDialog(parent)
{
setupUi(this);
label->setText(tr("Open file '%1' with:").arg(QFileInfo(fileName).fileName()));

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef OPENWITHDIALOG_H
#define OPENWITHDIALOG_H
@@ -66,4 +67,4 @@ private:
} // namespace Internal
} // namespace Core
#endif
#endif // OPENWITHDIALOG_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "saveitemsdialog.h"
#include "mainwindow.h"
#include "vcsmanager.h"

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef SAVEITEMSDIALOG_H
#define SAVEITEMSDIALOG_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "settingsdialog.h"
#include "coreimpl.h"
@@ -111,7 +112,6 @@ SettingsDialog::SettingsDialog(QWidget *parent, const QString &initialCategory,
SettingsDialog::~SettingsDialog()
{
}
void SettingsDialog::pageSelected(QTreeWidgetItem *)
@@ -123,16 +123,14 @@ void SettingsDialog::pageSelected(QTreeWidgetItem *)
void SettingsDialog::accept()
{
foreach(IOptionsPage *page, m_pages) {
foreach(IOptionsPage *page, m_pages)
page->finished(true);
}
done(QDialog::Accepted);
}
void SettingsDialog::reject()
{
foreach(IOptionsPage *page, m_pages) {
foreach(IOptionsPage *page, m_pages)
page->finished(false);
}
done(QDialog::Rejected);
}

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef SETTINGSDIALOG_H
#define SETTINGSDIALOG_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "shortcutsettings.h"
#include "ui_shortcutsettings.h"
#include "actionmanager.h"

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef SHORTCUTSETTINGS_H
#define SHORTCUTSETTINGS_H
@@ -54,7 +55,8 @@ class ActionManager;
class Command;
class MainWindow;
struct ShortcutItem {
struct ShortcutItem
{
ICommand *m_cmd;
QKeySequence m_key;
QTreeWidgetItem *m_item;

View File

@@ -51,7 +51,7 @@
using namespace Core;
using namespace Core::Internal;
EditMode::EditMode(EditorManager *editorManager):
EditMode::EditMode(EditorManager *editorManager) :
m_editorManager(editorManager),
m_splitter(new MiniSplitter),
m_rightSplitWidgetLayout(new QVBoxLayout)

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef EDITMODE_H
#define EDITMODE_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "editorgroup.h"
#include "editormanager.h"

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef EDITORGROUP_H
#define EDITORGROUP_H
@@ -135,19 +136,24 @@ public:
QModelIndex index(int row, int column = 0, const QModelIndex &parent = QModelIndex()) const;
void addEditor(IEditor *editor) { insertEditor(rowCount(), editor); }
void insertEditor(int index, IEditor *editor) {
void insertEditor(int index, IEditor *editor)
{
beginInsertRows(QModelIndex(), index, index);
m_editors.insert(index, editor);
endInsertRows();
}
void removeEditor(IEditor *editor) {
void removeEditor(IEditor *editor)
{
int index = m_editors.indexOf(editor);
beginRemoveRows(QModelIndex(), index, index);
m_editors.removeAt(index);
endRemoveRows();
}
void emitDataChanged(IEditor *editor) {
void emitDataChanged(IEditor *editor)
{
int idx = m_editors.indexOf(editor);
QModelIndex mindex = index(idx, 0);
emit dataChanged(mindex, mindex);

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "editormanager.h"
#include "editorsplitter.h"
#include "openeditorswindow.h"

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef EDITORMANAGER_H
#define EDITORMANAGER_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "editorsplitter.h"
#include "editormanager.h"
#include "openeditorswindow.h"

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef EDITORSPLITTER_H
#define EDITORSPLITTER_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef IEDITOR_H
#define IEDITOR_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef IEDITORFACTORY_H
#define IEDITORFACTORY_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "openeditorsview.h"
#include "editorgroup.h"
#include "editormanager.h"
@@ -301,10 +302,8 @@ QKeySequence OpenEditorsViewFactory::activationSequence()
OpenEditorsViewFactory::OpenEditorsViewFactory()
{
}
OpenEditorsViewFactory::~OpenEditorsViewFactory()
{
}

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef OPENEDITORSVIEW_H
#define OPENEDITORSVIEW_H
@@ -88,4 +89,4 @@ public:
} // namespace Internal
} // namespace Core
#endif
#endif // OPENEDITORSVIEW_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "openeditorswindow.h"
#include "editorgroup.h"
#include "editormanager.h"

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef OPENEDITORSWINDOW_H
#define OPENEDITORSWINDOW_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "stackededitorgroup.h"
#include "editormanager.h"
#include "coreimpl.h"

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef STACKEDEDITORGROUP_H
#define STACKEDEDITORGROUP_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "fancyactionbar.h"
#include <QtGui/QHBoxLayout>

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef FANCYACTIONBAR_H
#define FANCYACTIONBAR_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "fancytabwidget.h"
#include "stylehelper.h"

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef FANCYTABWIDGET_H
#define FANCYTABWIDGET_H
@@ -115,4 +116,4 @@ private:
} // namespace Internal
} // namespace Core
#endif
#endif // FANCYTABWIDGET_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "fileiconprovider.h"
using namespace Core;
@@ -46,8 +47,8 @@ using namespace Core;
FileIconProvider *FileIconProvider::m_instance = 0;
FileIconProvider::FileIconProvider():
m_unknownFileIcon(QLatin1String(":/qworkbench/images/unknownfile.png"))
FileIconProvider::FileIconProvider()
: m_unknownFileIcon(QLatin1String(":/qworkbench/images/unknownfile.png"))
{
}

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef FILEICONPROVIDER_H
#define FILEICONPROVIDER_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "filemanager.h"
#include "ifile.h"
#include "mainwindow.h"

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef FILEMANAGER_H
#define FILEMANAGER_H
@@ -60,7 +61,8 @@ class CORE_EXPORT FileManager : public QObject
{
Q_OBJECT
struct FileInfo {
struct FileInfo
{
QString fileName;
QDateTime modified;
QFile::Permissions permissions;

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "findplaceholder.h"
#include "modemanager.h"
@@ -41,7 +42,7 @@ using namespace Core;
FindToolBarPlaceHolder *FindToolBarPlaceHolder::m_current = 0;
FindToolBarPlaceHolder::FindToolBarPlaceHolder(Core::IMode *mode, QWidget *parent)
:QWidget(parent), m_mode(mode)
: QWidget(parent), m_mode(mode)
{
setLayout(new QVBoxLayout);
setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum);
@@ -52,7 +53,6 @@ FindToolBarPlaceHolder::FindToolBarPlaceHolder(Core::IMode *mode, QWidget *paren
FindToolBarPlaceHolder::~FindToolBarPlaceHolder()
{
}
void FindToolBarPlaceHolder::currentModeChanged(Core::IMode *mode)

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef FINDPLACEHOLDER_H
#define FINDPLACEHOLDER_H

View File

@@ -30,27 +30,13 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
/****************************************************************************
**
** Copyright (C) 2004-$THISYEAR$ Trolltech AS. All rights reserved.
**
** This file is part of the $MODULE$ of the Qt Toolkit.
**
** $LICENSE$
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
****************************************************************************/
#include <QtGui>
#include "flowlayout.h"
using namespace Core::Internal;
FlowLayout::FlowLayout(QWidget *parent, int margin, int spacing)
: QLayout(parent)
: QLayout(parent)
{
setMargin(margin);
setSpacing(spacing);
@@ -121,11 +107,10 @@ QSize FlowLayout::sizeHint() const
QSize FlowLayout::minimumSize() const
{
QSize size;
QLayoutItem *item;
foreach (item, itemList)
foreach (QLayoutItem *item, itemList)
size = size.expandedTo(item->minimumSize());
size += QSize(2*margin(), 2*margin());
size += QSize(2 * margin(), 2 * margin());
return size;
}
@@ -135,8 +120,7 @@ int FlowLayout::doLayout(const QRect &rect, bool testOnly) const
int y = rect.y();
int lineHeight = 0;
QLayoutItem *item;
foreach (item, itemList) {
foreach (QLayoutItem *item, itemList) {
int nextX = x + item->sizeHint().width() + spacing();
if (nextX - spacing() > rect.right() && lineHeight > 0) {
x = rect.x();

View File

@@ -30,18 +30,6 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
/****************************************************************************
**
** Copyright (C) 2004-$THISYEAR$ Trolltech AS. All rights reserved.
**
** This file is part of the $MODULE$ of the Qt Toolkit.
**
** $LICENSE$
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
****************************************************************************/
#ifndef FLOWLAYOUT_H
#define FLOWLAYOUT_H
@@ -80,4 +68,4 @@ private:
} // namespace Internal
} // namespace Core
#endif
#endif // FLOWLAYOUT_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "generalsettings.h"
#include "stylehelper.h"

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef GENERALSETTINGS_H
#define GENERALSETTINGS_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef ICONTEXT_H
#define ICONTEXT_H

View File

@@ -72,7 +72,6 @@ class CORE_EXPORT ICore : public QObject
Q_OBJECT
public:
ICore() {}
virtual ~ICore() {}
@@ -131,4 +130,4 @@ signals:
} // namespace Core
#endif //ICORE_H
#endif // ICORE_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef ICORELISTENER_H
#define ICORELISTENER_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef IFILE_H
#define IFILE_H
@@ -67,6 +68,6 @@ signals:
void changed();
};
} //namespace
} // namespace Core
#endif //IFILE_H
#endif // IFILE_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef IFILEFACTORY_H
#define IFILEFACTORY_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef IFILEWIZARDEXTENSION_H
#define IFILEWIZARDEXTENSION_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef IMODE_H
#define IMODE_H

View File

@@ -30,18 +30,17 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#include "inavigationwidgetfactory.h"
using namespace Core;
INavigationWidgetFactory::INavigationWidgetFactory()
{
}
INavigationWidgetFactory::~INavigationWidgetFactory()
{
}
QKeySequence INavigationWidgetFactory::activationSequence()

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef INAVIGATIONWIDGET_H
#define INAVIGATIONWIDGET_H
@@ -65,6 +66,7 @@ public:
// Similar to how IView
virtual NavigationView createWidget() = 0;
};
}
} // namespace Core
#endif // INAVIGATIONWIDGET_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef IOUTPUTPANE_H
#define IOUTPUTPANE_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef IVERSIONCONTROL_H
#define IVERSIONCONTROL_H

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef IVIEW_H
#define IVIEW_H

View File

@@ -53,6 +53,7 @@
#include "progressview.h"
#include "shortcutsettings.h"
#include "vcsmanager.h"
#include "scriptmanager.h"
#include "settingsdialog.h"
#include "stylehelper.h"

View File

@@ -30,6 +30,7 @@
** 1.2, included in the file GPL_EXCEPTION.txt in this package.
**
***************************************************************************/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
@@ -56,34 +57,34 @@ namespace Core {
class ActionManagerInterface;
class BaseMode;
class BaseView;
class EditorManager;
class FileManager;
class IContext;
class MessageManager;
class ModeManager;
class MimeDatabase;
class ModeManager;
class ProgressManagerInterface;
class VCSManager;
class RightPaneWidget;
class ScriptManagerInterface;
class UniqueIDManager;
class VariableManager;
class VCSManager;
class ViewManagerInterface;
class BaseView;
class RightPaneWidget;
namespace Internal {
class CoreImpl;
class ActionManager;
class ProgressManager;
class OutputPane;
class ViewManager;
class GeneralSettings;
class ShortcutSettings;
class CoreImpl;
class FancyTabWidget;
class GeneralSettings;
class NavigationWidget;
class OutputPane;
class ProgressManager;
class ShortcutSettings;
class ViewManager;
class CORE_EXPORT MainWindow : public QMainWindow
class CORE_EXPORT MainWindow : public QMainWindow
{
Q_OBJECT
@@ -129,7 +130,6 @@ public:
QMenu *createPopupMenu();
void setSuppressNavigationWidget(bool suppress);
signals:

Some files were not shown because too many files have changed in this diff Show More