Changeset View
Changeset View
Standalone View
Standalone View
shell/problemmodelset.h
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Line(s) | 63 | public: | |||
---|---|---|---|---|---|
68 | void addModel(const QString &name, ProblemModel *model); | 68 | void addModel(const QString &name, ProblemModel *model); | ||
69 | 69 | | |||
70 | /// Finds a model | 70 | /// Finds a model | ||
71 | ProblemModel* findModel(const QString &name) const; | 71 | ProblemModel* findModel(const QString &name) const; | ||
72 | 72 | | |||
73 | /// Removes a model | 73 | /// Removes a model | ||
74 | void removeModel(const QString &name); | 74 | void removeModel(const QString &name); | ||
75 | 75 | | |||
76 | /// Show model in ProblemsView | ||||
77 | void showModel(const QString &name); | ||||
78 | | ||||
76 | /// Retrieves a list of models stored | 79 | /// Retrieves a list of models stored | ||
77 | QVector<ModelData> models() const; | 80 | QVector<ModelData> models() const; | ||
78 | 81 | | |||
79 | signals: | 82 | signals: | ||
80 | /// Emitted when a new model is added | 83 | /// Emitted when a new model is added | ||
81 | void added(const ModelData &model); | 84 | void added(const ModelData &model); | ||
82 | 85 | | |||
83 | /// Emitted when a model is removed | 86 | /// Emitted when a model is removed | ||
84 | void removed(const QString &name); | 87 | void removed(const QString &name); | ||
85 | 88 | | |||
89 | /// Emitted when showModel() is called | ||||
90 | void showRequested(const QString &name); | ||||
91 | | ||||
86 | private: | 92 | private: | ||
87 | QScopedPointer<ProblemModelSetPrivate> d; | 93 | QScopedPointer<ProblemModelSetPrivate> d; | ||
88 | 94 | | |||
89 | }; | 95 | }; | ||
90 | 96 | | |||
91 | } | 97 | } | ||
92 | 98 | | |||
93 | Q_DECLARE_TYPEINFO(KDevelop::ModelData, Q_MOVABLE_TYPE); | 99 | Q_DECLARE_TYPEINFO(KDevelop::ModelData, Q_MOVABLE_TYPE); | ||
94 | 100 | | |||
95 | #endif | 101 | #endif | ||
96 | 102 | |