~ubuntu-branches/ubuntu/karmic/qtcreator/karmic-security

« back to all changes in this revision

Viewing changes to src/plugins/cppeditor/cppplugin.h

  • Committer: Bazaar Package Importer
  • Author(s): Andres Rodriguez
  • Date: 2009-07-19 16:23:52 UTC
  • mfrom: (3.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090719162352-oni0h8hrrkdd3sil
Tags: 1.2.1-1ubuntu1
* Merge from debian unstable (LP: #399414), remaining changes:
  - Add qt-creator transitional package.
* debian/control: Conflicts on qt-creator (<< 1.2.1-1ubuntu1).

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
**
5
5
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
6
6
**
7
 
** Contact:  Qt Software Information (qt-info@nokia.com)
 
7
** Contact: Nokia Corporation (qt-info@nokia.com)
8
8
**
9
9
** Commercial Usage
10
10
**
23
23
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24
24
**
25
25
** If you are unsure which license is appropriate for your use, please
26
 
** contact the sales department at qt-sales@nokia.com.
 
26
** contact the sales department at http://www.qtsoftware.com/contact.
27
27
**
28
28
**************************************************************************/
29
29
 
58
58
 
59
59
    bool initialize(const QStringList &arguments, QString *error_message = 0);
60
60
    void extensionsInitialized();
 
61
    void shutdown();
61
62
 
62
63
    // Connect editor to settings changed signals.
63
64
    void initializeEditor(CPPEditor *editor);
64
65
 
 
66
    bool sortedMethodOverview() const;
 
67
 
 
68
signals:
 
69
    void methodOverviewSortingChanged(bool sort);
 
70
 
 
71
public slots:
 
72
    void setSortedMethodOverview(bool sorted);
 
73
 
65
74
private slots:
66
75
    void switchDeclarationDefinition();
67
76
    void jumpToDefinition();
69
78
private:
70
79
    friend class CppEditorFactory;
71
80
    Core::IEditor *createEditor(QWidget *parent);
 
81
    void writeSettings();
 
82
    void readSettings();
72
83
 
73
84
    static CppPlugin *m_instance;
74
85
 
75
86
    TextEditor::TextEditorActionHandler *m_actionHandler;
76
87
    CppEditorFactory *m_factory;
 
88
    bool m_sortedMethodOverview;
77
89
};
78
90
 
79
91
class CppEditorFactory : public Core::IEditorFactory