
/* Copyright (c) 2013-2016 Mahmoud Fayed <msfclipper@yahoo.com> */
#ifndef GLINEEDIT_H
#define GLINEEDIT_H
#include <QApplication>
#include <QLineEdit>
extern "C" {
#include "ring.h"
}

class GLineEdit : public QLineEdit
{

  Q_OBJECT

  public:

    VM *pVM;

    List *pParaList;

    char cTextChangedEvent[100];
    char ccursorPositionChangedEvent[100];
    char ceditingFinishedEvent[100];
    char creturnPressedEvent[100];
    char cselectionChangedEvent[100];
    char ctextEditedEvent[100];


    GLineEdit(QWidget *parent,VM *pVM );

    ~GLineEdit();

    void geteventparameters(void) ;

    void setTextChangedEvent(const char *cStr);
    void setcursorPositionChangedEvent(const char *cStr);
    void seteditingFinishedEvent(const char *cStr);
    void setreturnPressedEvent(const char *cStr);
    void setselectionChangedEvent(const char *cStr);
    void settextEditedEvent(const char *cStr);


  public slots:

    void textChangedSlot();
    void cursorPositionChangedSlot();
    void editingFinishedSlot();
    void returnPressedSlot();
    void selectionChangedSlot();
    void textEditedSlot();

};

#endif

