summaryrefslogtreecommitdiff
path: root/services/SimpleUI/InputPopup.h
diff options
context:
space:
mode:
Diffstat (limited to 'services/SimpleUI/InputPopup.h')
-rwxr-xr-x[-rw-r--r--]services/SimpleUI/InputPopup.h109
1 files changed, 59 insertions, 50 deletions
diff --git a/services/SimpleUI/InputPopup.h b/services/SimpleUI/InputPopup.h
index 18eaab65..5b745504 100644..100755
--- a/services/SimpleUI/InputPopup.h
+++ b/services/SimpleUI/InputPopup.h
@@ -32,65 +32,74 @@
#include "AbstractPopup.h"
#include "ServiceManager.h"
-namespace tizen_browser {
-namespace base_ui {
-
-class InputPopup : public interfaces::AbstractPopup
+namespace tizen_browser
{
+ namespace base_ui
+ {
-public:
- static InputPopup* createPopup(Evas_Object *parent);
- static InputPopup* createPopup(Evas_Object *parent,const std::string& title,const std::string& message,const std::string& input,
- const std::string& rightButtonText, const std::string& leftButtonText, bool accept_right_left);
+ class InputPopup:public interfaces::AbstractPopup
+ {
+ public:
+ static InputPopup *createPopup(Evas_Object * parent);
+ static InputPopup *createPopup(Evas_Object * parent,
+ const std::string & title,
+ const std::string & message,
+ const std::string & input,
+ const std::string & rightButtonText,
+ const std::string & leftButtonText,
+ bool accept_right_left);
- void show();
- void dismiss();
- void onBackPressed();
+ void show();
+ void dismiss();
+ void onBackPressed();
#if PROFILE_MOBILE
- void orientationChanged() {};
+ void orientationChanged()
+ {
+ };
#endif
- void setContent(Evas_Object *content);
- void setInput(const std::string &input);
- void setTitle(const std::string &title);
- void setMessage(const std::string &message);
- void setOkButtonText(const std::string &okButtonText);
- void setCancelButtonText(const std::string &cancelButtonText);
- void setAcceptRightLeft(bool right_left);
- void addBadWord(const std::string &word);
+ void setContent(Evas_Object * content);
+ void setInput(const std::string & input);
+ void setTitle(const std::string & title);
+ void setMessage(const std::string & message);
+ void setOkButtonText(const std::string & okButtonText);
+ void setCancelButtonText(const std::string & cancelButtonText);
+ void setAcceptRightLeft(bool right_left);
+ void addBadWord(const std::string & word);
- boost::signals2::signal<void (const std::string&)> button_clicked;
+ boost::signals2::signal < void(const std::string &) > button_clicked;
-private:
- InputPopup();
- ~InputPopup();
- void createLayout();
+ private:
+ InputPopup();
+ ~InputPopup();
+ void createLayout();
- std::string m_edjFilePath;
- static void _right_button_clicked(void *data, Evas_Object *btn, void*);
- static void _left_button_clicked(void *data, Evas_Object *btn, void*);
- static void _entry_changed(void * data, Evas_Object *, void*);
- static void _entry_unfocused(void * data, Evas_Object *, void*);
- static void _entry_focused(void * data, Evas_Object *, void*);
- static void _input_cancel_clicked(void * data, Evas_Object *, void *);
+ std::string m_edjFilePath;
+ static void _right_button_clicked(void *data, Evas_Object * btn,
+ void *);
+ static void _left_button_clicked(void *data, Evas_Object * btn, void *);
+ static void _entry_changed(void *data, Evas_Object *, void *);
+ static void _entry_unfocused(void *data, Evas_Object *, void *);
+ static void _entry_focused(void *data, Evas_Object *, void *);
+ static void _input_cancel_clicked(void *data, Evas_Object *, void *);
- Evas_Object *m_parent;
- Evas_Object *m_layout;
- Evas_Object *m_buttons_box;
- Evas_Object *m_button_left;
- Evas_Object *m_button_right;
- Evas_Object *m_input_area;
- Evas_Object *m_input_cancel;
- Evas_Object *m_entry;
- std::string m_input;
- std::string m_title;
- std::string m_message;
- std::string m_ok_button_text;
- std::string m_cancel_button_text;
- std::vector<std::string> m_bad_words;
- bool m_accept_right_left;
-};
+ Evas_Object *m_parent;
+ Evas_Object *m_layout;
+ Evas_Object *m_buttons_box;
+ Evas_Object *m_button_left;
+ Evas_Object *m_button_right;
+ Evas_Object *m_input_area;
+ Evas_Object *m_input_cancel;
+ Evas_Object *m_entry;
+ std::string m_input;
+ std::string m_title;
+ std::string m_message;
+ std::string m_ok_button_text;
+ std::string m_cancel_button_text;
+ std::vector < std::string > m_bad_words;
+ bool m_accept_right_left;
+ };
+ }
}
-}
-#endif //__INPUT_POPUP_H__
+#endif //__INPUT_POPUP_H__