31 #include <cwidget/widgets/editline.h> 64 widgets::widget_ref
ok(
const widgets::widget_ref &widget,
68 widgets::widget_ref
ok(fragment *msg,
util::slot0arg okslot=NULL,
bool scrollbar=
false);
69 widgets::widget_ref
ok(fragment *msg,
util::slot0arg okslot,
const style &st,
bool scrollbar=
false);
70 widgets::widget_ref
ok(fragment *msg,
util::slot0arg okslot,
const std::wstring &label,
71 const style &st,
bool scrollbar=
false);
76 widgets::widget_ref
ok(
const std::wstring &msg,
util::slot0arg okslot,
const std::wstring &label,
97 widgets::widget_ref
yesno(
const widgets::widget_ref &widget,
99 const std::wstring &yeslabel,
101 const std::wstring &nolabel,
105 widgets::widget_ref
yesno(fragment *msg,
108 bool scrollbar=
false,
110 widgets::widget_ref
yesno(fragment *msg,
114 bool scrollbar=
false,
116 widgets::widget_ref
yesno(fragment *msg,
118 const std::wstring &yeslabel,
120 const std::wstring &nolabel,
122 bool scrollbar=
false,
125 widgets::widget_ref
yesno(
const std::wstring &msg,
129 widgets::widget_ref
yesno(
const std::wstring &msg,
134 widgets::widget_ref
yesno(
const std::wstring &msg,
136 const std::wstring &yeslabel,
138 const std::wstring &nolabel,
142 widgets::widget_ref fileview(
const std::string &fn,
144 util::slotarg<sigc::slot1<void, widgets::pager &> > search_slot=NULL,
145 util::slotarg<sigc::slot1<void, widgets::pager &> > repeat_search_slot=NULL,
146 util::slotarg<sigc::slot1<void, widgets::pager &> > repeat_search_back_slot=NULL,
147 const char *encoding=NULL);
148 widgets::widget_ref fileview(
const std::string &fn,
150 util::slotarg<sigc::slot1<void, widgets::pager &> > search_slot,
151 util::slotarg<sigc::slot1<void, widgets::pager &> > repeat_search_slot,
152 util::slotarg<sigc::slot1<void, widgets::pager &> > repeat_search_back_slot,
154 const char *encoding=NULL);
156 widgets::widget_ref string(fragment *msg,
157 const std::wstring &deflt,
158 util::slotarg<sigc::slot1<void, std::wstring> > okslot,
159 util::slotarg<sigc::slot0<void> > cancel_slot,
160 util::slotarg<sigc::slot1<void, std::wstring> > changed_slot,
161 widgets::editline::history_list *history,
164 widgets::widget_ref string(
const std::wstring &msg,
165 const std::wstring &deflt,
166 util::slotarg<sigc::slot1<void, std::wstring> > okslot,
167 util::slotarg<sigc::slot0<void> > cancel_slot,
168 util::slotarg<sigc::slot1<void, std::wstring> > changed_slot,
169 widgets::editline::history_list *history,
172 widgets::widget_ref string(
const std::wstring &msg,
173 const std::wstring &deflt,
174 util::slotarg<sigc::slot1<void, std::wstring> > slot,
175 util::slotarg<sigc::slot0<void> > cancel_slot,
176 util::slotarg<sigc::slot1<void, std::wstring> > changed_slot,
177 widgets::editline::history_list *history);
Provides a simple mechanism for passing in optional slots to a function.