Classified ads
insertlinkdialog.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 INSERT_LINK_DIALOG_H
22 #define INSERT_LINK_DIALOG_H
23 
24 #include <QDialog>
25 #include "../mcontroller.h"
26 #include "../ui_insertLink.h"
27 
31 class InsertLinkDialog : public QDialog {
32  Q_OBJECT
33 
34 public:
38  InsertLinkDialog(QWidget *aParent,
39  MController* aController );
42 signals:
44  const QString& aExplanation) ;
50  void linkReady(const QString& aLinkAddress,
51  const QString& aLinkLabel) ;
52 private slots:
53  void okButtonClicked() ;
54  void urlTextEdited(const QString &aText) ;
56 private:
57  Ui_insertLinkDialog ui ;
59 };
60 
61 #endif
MController * iController
Definition: insertlinkdialog.h:58
CAErrorSituation
Definition: mcontroller.h:52
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:43
void urlTextEdited(const QString &aText)
class for editing link to be inserted into edited text
Definition: insertlinkdialog.h:31
void linkReady(const QString &aLinkAddress, const QString &aLinkLabel)
Ui_insertLinkDialog ui
Definition: insertlinkdialog.h:57
InsertLinkDialog(QWidget *aParent, MController *aController)
void okButtonClicked()
void error(MController::CAErrorSituation aError, const QString &aExplanation)