Mladen Adamovic / F746_GUI

Dependencies:   Array_Matrix BSP_DISCO_F746NG LCD_DISCO_F746NG TS_DISCO_F746NG

Dependents:   Spectrogram

Fork of F746_GUI by 不韋 呂

Files at this revision

API Documentation at this revision

Comitter:
MikamiUitOpen
Date:
Thu Apr 21 01:12:59 2016 +0000
Parent:
7:3813be1ca81d
Child:
9:c379410bda15
Commit message:
9

Changed in this revision

ButtonGroup.hpp Show annotated file Show diff for this revision Revisions of this file
--- a/ButtonGroup.hpp	Tue Apr 12 05:48:25 2016 +0000
+++ b/ButtonGroup.hpp	Thu Apr 21 01:12:59 2016 +0000
@@ -1,7 +1,7 @@
 //-----------------------------------------------------------
 //  ButtonGroup class -- Header
 //
-//  2016/04/07, Copyright (c) 2016 MIKAMI, Naoki
+//  2016/04/21, Copyright (c) 2016 MIKAMI, Naoki
 //-----------------------------------------------------------
 
 #ifndef F746_BUTTON_GROUP_HPP
@@ -59,6 +59,16 @@
         // Activate and inactivate
         bool Activate(int num);
         bool Inactivate(int num);
+        void ActivateAll()
+        {   
+            for (int n=0; n<numberOfButtons_; n++)
+                buttons_[n]->Activate();
+        }
+        void InactivateAll()
+        {
+            for (int n=0; n<numberOfButtons_; n++)
+                buttons_[n]->Inactivate();
+        }
 
     private:
         Button **buttons_;