forked from qt-creator/qt-creator
Make C++ code style configurable.
Change-Id: Iaf08edb2361146e6b5e1cbafdb716a23c938875b Done-with: Jarek Kobus Task-number: QTCREATORBUG-2670 Task-number: QTCREATORBUG-4310 Task-number: QTCREATORBUG-2763 Task-number: QTCREATORBUG-3623 Task-number: QTCREATORBUG-567 Reviewed-on: http://codereview.qt.nokia.com/74 Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@nokia.com> Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
24
src/plugins/cpptools/cppcodestylesettingsfactory.h
Normal file
24
src/plugins/cpptools/cppcodestylesettingsfactory.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef CPPCODESTYLESETTINGSFACTORY_H
|
||||
#define CPPCODESTYLESETTINGSFACTORY_H
|
||||
|
||||
#include <texteditor/icodestylepreferencesfactory.h>
|
||||
|
||||
namespace CppTools {
|
||||
|
||||
class CppCodeStylePreferencesFactory : public TextEditor::ICodeStylePreferencesFactory
|
||||
{
|
||||
public:
|
||||
CppCodeStylePreferencesFactory();
|
||||
|
||||
virtual QString languageId();
|
||||
virtual QString displayName();
|
||||
virtual TextEditor::IFallbackPreferences *createPreferences(const QList<TextEditor::IFallbackPreferences *> &fallbacks) const;
|
||||
virtual QWidget *createEditor(TextEditor::IFallbackPreferences *settings,
|
||||
TextEditor::TabPreferences *tabSettings,
|
||||
QWidget *parent) const;
|
||||
|
||||
};
|
||||
|
||||
} // namespace CppTools
|
||||
|
||||
#endif // CPPCODESTYLESETTINGSFACTORY_H
|
||||
Reference in New Issue
Block a user