Classified ads
newtextdocument.h
Go to the documentation of this file.
1 /* -*-C++-*- -*-coding: utf-8-unix;-*-
2  Classified Ads is Copyright (c) Antti Järvinen 2013.
3 
4  This file is part of Classified Ads.
5 
6  Classified Ads is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Lesser General Public
8  License as published by the Free Software Foundation; either
9  version 2.1 of the License, or (at your option) any later version.
10 
11  Classified Ads is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public
17  License along with Classified Ads; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20 
21 #ifndef NEW_TEXT_DOCUMENT_DIALOG_H
22 #define NEW_TEXT_DOCUMENT_DIALOG_H
23 
24 #include <QDialog>
25 #include "../mcontroller.h"
26 #include "../ui_newTextDocument.h"
27 #include "../textedit/textedit.h"
28 
29 class Profile ;
31 
35 class NewTextDocument : public TextEdit {
36  Q_OBJECT
37 
38 public:
45  NewTextDocument (QWidget *aParent,
46  MController* aController,
47  Profile& aSelectedProfile,
48  BinaryFileListingModel& aProfileFileListingModel );
51 
52 private slots:
53  void okButtonClicked() ;
54  void cancelButtonClicked() ;
55 signals:
57  const QString& aExplanation) ;
58 private:
61 };
62 
63 #endif
NewTextDocument(QWidget *aParent, MController *aController, Profile &aSelectedProfile, BinaryFileListingModel &aProfileFileListingModel)
BinaryFileListingModel & iProfileFileListingModel
Definition: newtextdocument.h:60
Definition: ui_newTextDocument.h:29
CAErrorSituation
Definition: mcontroller.h:57
Model-class for helping display of shared binary blobs, usually from a profile.
Definition: binaryfilelistingmodel.h:34
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:48
void error(MController::CAErrorSituation aError, const QString &aExplanation)
void cancelButtonClicked()
class for editing and publishing a new text document
Definition: newtextdocument.h:35
void okButtonClicked()
Carrier-class for user-profile data.
Definition: profile.h:37
Ui_newTextDocumentDialog ui
Definition: newtextdocument.h:59
text editor class.
Definition: textedit.h:70