[med-svn] [aghermann] 56/85: eX_any_profile_value_changed_cb belongs to a base class, too

andrei zavada hmmr-guest at alioth.debian.org
Thu Sep 26 23:46:31 UTC 2013


This is an automated email from the git hooks/post-receive script.

hmmr-guest pushed a commit to branch master
in repository aghermann.

commit f031900219b10853f925ad6265d4852adaa25725
Author: Andrei Zavada <johnhommer at gmail.com>
Date:   Sat Sep 21 01:07:40 2013 +0300

    eX_any_profile_value_changed_cb belongs to a base class, too
---
 .../src/aghermann/ui/dirlevel-storable-adapter.hh     |    1 +
 .../src/aghermann/ui/dirlevel-storable-adapter.ii     |   17 +++++++++++++++++
 upstream/src/aghermann/ui/sf/d/patterns.hh            |    3 +++
 upstream/src/aghermann/ui/sf/d/rk1968.cc              |    6 ++++++
 upstream/src/aghermann/ui/sf/d/rk1968.hh              |    1 +
 upstream/src/aghermann/ui/sf/d/rk1968_cb.cc           |   10 ++++++++++
 6 files changed, 38 insertions(+)

diff --git a/upstream/src/aghermann/ui/dirlevel-storable-adapter.hh b/upstream/src/aghermann/ui/dirlevel-storable-adapter.hh
index d555801..4ed50ae 100644
--- a/upstream/src/aghermann/ui/dirlevel-storable-adapter.hh
+++ b/upstream/src/aghermann/ui/dirlevel-storable-adapter.hh
@@ -92,6 +92,7 @@ class SDirlevelStorableAdapter {
         void bXProfileSave_clicked_cb();
         void bXProfileDiscard_clicked_cb();
         void bXProfileRevert_clicked_cb();
+        void eX_any_profile_value_changed_cb();
         void eXProfileSaveName_changed_cb();
         void eX_any_profile_origin_toggled_cb();
 
diff --git a/upstream/src/aghermann/ui/dirlevel-storable-adapter.ii b/upstream/src/aghermann/ui/dirlevel-storable-adapter.ii
index 23a13fe..5e0f731 100644
--- a/upstream/src/aghermann/ui/dirlevel-storable-adapter.ii
+++ b/upstream/src/aghermann/ui/dirlevel-storable-adapter.ii
@@ -174,6 +174,23 @@ eXProfileList_changed_cb()
 
 
 
+
+
+template <class Storable>
+void
+SDirlevelStorableAdapter<Storable>::
+eX_any_profile_value_changed_cb()
+{
+        if ( suppress_w_v )
+                return;
+
+        W_V.down();
+
+        set_profile_manage_buttons_visibility();
+}
+
+
+
 template <class Storable>
 void
 SDirlevelStorableAdapter<Storable>::
diff --git a/upstream/src/aghermann/ui/sf/d/patterns.hh b/upstream/src/aghermann/ui/sf/d/patterns.hh
index 529873a..ee41e16 100644
--- a/upstream/src/aghermann/ui/sf/d/patterns.hh
+++ b/upstream/src/aghermann/ui/sf/d/patterns.hh
@@ -186,6 +186,9 @@ gboolean daSFFDThing_scroll_event_cb( GtkWidget*, GdkEventScroll*, gpointer);
 void bSFFDSearch_clicked_cb( GtkButton*, gpointer);
 void bSFFDAgain_clicked_cb( GtkButton*, gpointer);
 
+void eSFFD_any_profile_value_changed_cb( GtkSpinButton*, gpointer);
+void eSFFD_any_criteria_value_changed_cb( GtkSpinButton*, gpointer);
+
 gboolean eSFFD_any_criteria_focus_in_event_cb(GtkWidget*, GdkEvent*, gpointer);
 gboolean wSFFD_configure_event_cb( GtkWidget*, GdkEventConfigure*, gpointer);
 void iSFFDFieldDrawMatchIndex_toggled_cb( GtkCheckMenuItem*, gpointer);
diff --git a/upstream/src/aghermann/ui/sf/d/rk1968.cc b/upstream/src/aghermann/ui/sf/d/rk1968.cc
index fd506d0..7053124 100644
--- a/upstream/src/aghermann/ui/sf/d/rk1968.cc
+++ b/upstream/src/aghermann/ui/sf/d/rk1968.cc
@@ -75,6 +75,12 @@ SRK1968Dialog (SScoringFacility& p_)
         G_CONNECT_1 (bSFRKProfileRevert,  clicked);
         G_CONNECT_1 (bSFRKProfileDiscard, clicked);
 
+        for ( auto& W : {eSFRKNremThetaDeltaRatio} )
+                g_signal_connect(
+                        W, "value-changed",
+                        (GCallback)eSFRK_any_profile_value_changed_cb,
+                        this);
+
         G_CONNECT_1 (bSFRKTry,    clicked);
         G_CONNECT_1 (bSFRKModify, clicked);
 
diff --git a/upstream/src/aghermann/ui/sf/d/rk1968.hh b/upstream/src/aghermann/ui/sf/d/rk1968.hh
index 1f3f187..5aab52b 100644
--- a/upstream/src/aghermann/ui/sf/d/rk1968.hh
+++ b/upstream/src/aghermann/ui/sf/d/rk1968.hh
@@ -92,6 +92,7 @@ void wSFRK_show_cb( GtkWidget*, gpointer);
 void wSFRK_hide_cb( GtkWidget*, gpointer);
 gboolean wSFRK_configure_event_cb( GtkWidget*, GdkEventConfigure*, gpointer);
 
+void eSFRK_any_profile_value_changed_cb( GtkSpinButton*, gpointer);
 
 void bSFRKTry_clicked_cb( GtkButton*, gpointer);
 void bSFRKModify_clicked_cb( GtkButton*, gpointer);
diff --git a/upstream/src/aghermann/ui/sf/d/rk1968_cb.cc b/upstream/src/aghermann/ui/sf/d/rk1968_cb.cc
index e147d57..01918af 100644
--- a/upstream/src/aghermann/ui/sf/d/rk1968_cb.cc
+++ b/upstream/src/aghermann/ui/sf/d/rk1968_cb.cc
@@ -58,6 +58,16 @@ wSFRK_hide_cb(
 }
 
 void
+eSFRK_any_profile_value_changed_cb(
+        GtkSpinButton* button,
+        const gpointer userdata)
+{
+        auto& RK = *(SScoringFacility::SRK1968Dialog*)userdata;
+        RK.eX_any_profile_value_changed_cb();
+}
+
+
+void
 bSFRKTry_clicked_cb(
         GtkButton*,
         gpointer userdata)

-- 
Alioth's /git/debian-med/git-commit-notice on /srv/git.debian.org/git/debian-med/aghermann.git



More information about the debian-med-commit mailing list