From ktexteditor-devel Tue Aug 14 19:22:49 2007 From: Dominik Haumann Date: Tue, 14 Aug 2007 19:22:49 +0000 To: ktexteditor-devel Subject: Re: KTextEditor container extension Message-Id: <200708142122.50446.dhdev () gmx ! de> X-MARC-Message: https://marc.info/?l=ktexteditor-devel&m=118711940516007 Moin, not much to say. Any other comments? Christoph? ;) Dominik > Index: containerinterface.h > =================================================================== [...] > +class KTEXTEDITOR_EXPORT ContainerInterface > +{ > + public: > + > + /** Virtual Destructor */ > + ~ContainerInterface() {} *virtual* ~ContainerInterface() {} [...] > + * To check if the kpart hosts supports the MDI container: > + * \code > + * Editor * editor = KTextEditor::EditorChooser::editor(); > + * ContainerInterface * iface = qobject_cast( > editor ); + * if (iface) { > + * MdiContainer * mdiContainer = qobject_cast( > iface->container() ); + * if (MdiContainer != NULL ) { ^ small m ;) [...] > + /** > + * Closes the View \p view . > + * > + * The view is still valid when this call is made but will be > deleted + * shortly after. > + * > + * \return true if the removal is authorized and acted, or > + * false if the container does not support view removing from > + * the kpart, or > + */ > + virtual bool closeView( View * view )=0; > + > +}; // class MdiContainer > + > +} // namespace KTextEditor > + > +Q_DECLARE_INTERFACE(KTextEditor::ContainerInterface, "org.kde.KTextEditor.ContainerInterface") I'm not sure, but don't we need the following too? Q_DECLARE_INTERFACE(KTextEditor::MdiContainer, "org.kde.KTextEditor.MdiContainer") _______________________________________________ KTextEditor-Devel mailing list KTextEditor-Devel@kde.org https://mail.kde.org/mailman/listinfo/ktexteditor-devel