text: /*
   * Copyright 2015 Vitaliy Sychеv
  
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
  
   *    http://www.apache.org/licenses/LICENSE-2.0
  
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
  */
  
  #ifndef EDITDIALOG_H
  #define EDITDIALOG_H
  
  #include <QDialog>
  #include <QString>
  #include <QSharedPointer>
  
  namespace Ui {
  class EditDialog;
  }
  
  class EditDialog : public QDialog
  {
      Q_OBJECT
  
  public:
      explicit EditDialog(QWidget *parent = 0);
      ~EditDialog();
      void show(QString *_title=0,int _type=0,QString *_text=0,bool _createnew=true);
      bool getParam()const;
      void setParam(bool _createnew);
  private:
      Ui::EditDialog *ui;
      bool createnew;
      QString title;
  private slots:
      void	Accepted();
      void	textChanged(const QString & text);
  signals:
      void dialogAccepted(QString *_title,int _type,QString *_text,bool _createnew);
  };
  
  #endif // EDITDIALOG_H
  