Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template <typename T, typename W>
- void tpreferences::bind_status_label(
- W& parent
- , const std::string& label_id
- , T& window
- , T& window_second)
- {
- tcontrol& label = find_widget<tcontrol>(&window_second, label_id, false);
- label.set_label(lexical_cast<std::string>(parent.get_value()));
- parent.set_callback_state_change(boost::bind(
- &tpreferences::status_label_callback
- , this, boost::ref(parent), boost::ref(label)));
- }
- template <typename T>
- void tpreferences::bind_status_label(
- tslider& parent
- , const std::string& label_id
- , T& window
- , T& window_second)
- {
- tcontrol& label = find_widget<tcontrol>(&window_second, label_id, false);
- label.set_label(lexical_cast<std::string>(parent.get_value()));
- connect_signal_notify_modified(parent, boost::bind(
- &tpreferences::status_label_callback
- , this, boost::ref(parent), boost::ref(label)));
- }
Advertisement
Add Comment
Please, Sign In to add comment