src/hbwidgets/popups/hbinputdialog.h
changeset 34 ed14f46c0e55
parent 6 c3690ec91ef8
equal deleted inserted replaced
31:7516d6d86cf5 34:ed14f46c0e55
    66 
    66 
    67     HbLineEdit* lineEdit(int row=0) const;
    67     HbLineEdit* lineEdit(int row=0) const;
    68 
    68 
    69     void setEchoMode(HbLineEdit::EchoMode echoMode=HbLineEdit::Normal,int row=0);
    69     void setEchoMode(HbLineEdit::EchoMode echoMode=HbLineEdit::Normal,int row=0);
    70     HbLineEdit::EchoMode echoMode(int row=0) const;
    70     HbLineEdit::EchoMode echoMode(int row=0) const;
    71 
    71     
       
    72     QGraphicsItem *primitive(const QString &itemName) const;
    72 
    73 
    73 public:
    74 public:
    74     static void getText(const QString &heading
    75     static void getText(const QString &heading
    75             ,QObject *receiver = 0
    76             ,QObject *receiver = 0
    76             ,const char *member = 0
    77             ,const char *member = 0
   120             ,const char *member
   121             ,const char *member
   121             , const QString &defaultIp = QString()
   122             , const QString &defaultIp = QString()
   122             , QGraphicsScene *scene = 0
   123             , QGraphicsScene *scene = 0
   123             , QGraphicsItem *parent = 0);
   124             , QGraphicsItem *parent = 0);
   124 
   125 
   125     QGraphicsItem* primitive(HbStyle::Primitive primitive) const;
       
   126 
       
   127     enum { Type = Hb::ItemType_InputDialog };
   126     enum { Type = Hb::ItemType_InputDialog };
   128     int type() const { return Type; }
   127     int type() const { return Type; }
   129 
   128 
   130 public slots:
   129 public slots:
   131     void updatePrimitives();
   130     void updatePrimitives();
   132     void done(int code);
   131     void done(int code);
       
   132     void recreatePrimitives();
   133 
   133 
   134 signals:
   134 signals:
   135     void intValueSelected(int value);
   135     void intValueSelected(int value);
   136     void doubleValueSelected(double value);
   136     void doubleValueSelected(double value);
   137     void textValueSelected(QString value);
   137     void textValueSelected(QString value);
   138 
   138 
   139 protected:
   139 protected:
   140     HbInputDialog(HbDialogPrivate &dd, QGraphicsItem *parent);
   140     HbInputDialog(HbDialogPrivate &dd, QGraphicsItem *parent);
   141     void initStyleOption(HbStyleOptionInputDialog *option) const;
   141     void initStyleOption(HbStyleOptionInputDialog *option) const;
       
   142     void initPrimitiveData(HbStylePrimitiveData *primitiveData, const QGraphicsObject *primitive);
   142 
   143 
   143 private:
   144 private:
   144     Q_DISABLE_COPY(HbInputDialog)
   145     Q_DISABLE_COPY(HbInputDialog)
   145     Q_DECLARE_PRIVATE_D(d_ptr, HbInputDialog)
   146     Q_DECLARE_PRIVATE_D(d_ptr, HbInputDialog)
   146     Q_PRIVATE_SLOT(d_func(), void _q_notesOrientationChanged(Qt::Orientation))
   147     Q_PRIVATE_SLOT(d_func(), void _q_notesOrientationChanged(Qt::Orientation))