File indexing completed on 2024-04-28 05:49:07

0001 /*  This file is part of the Kate project.
0002  *
0003  *  SPDX-FileCopyrightText: 2012 Joseph Wenninger <jowenn@kde.org>
0004  *
0005  *  SPDX-License-Identifier: LGPL-2.0-or-later
0006  */
0007 
0008 #pragma once
0009 
0010 #include <QPlainTextEdit>
0011 
0012 class KateProjectPluginView;
0013 class KateProject;
0014 
0015 /**
0016  * Class representing a view of a project.
0017  * A tree like view of project content.
0018  */
0019 class KateProjectInfoViewNotes : public QWidget
0020 {
0021     Q_OBJECT
0022 
0023 public:
0024     /**
0025      * construct project info view for given project
0026      * @param pluginView our plugin view
0027      * @param project project this view is for
0028      */
0029     KateProjectInfoViewNotes(KateProject *project);
0030 
0031     /**
0032      * our project.
0033      * @return project
0034      */
0035     KateProject *project() const
0036     {
0037         return m_project;
0038     }
0039 
0040 private:
0041     /**
0042      * our project
0043      */
0044     KateProject *m_project;
0045 
0046     /**
0047      * edit widget bound to notes document of project
0048      */
0049     QPlainTextEdit *m_edit;
0050 };