Library for Skeleton of SD card player. SD カードプレーヤのための骨組みとして使うためのライブラリ.このライブラリを登録した際のプログラム:「F746_SD_Player_Demo」

Dependencies:   SDFileSystem_Warning_Fixed

Dependents:   F746_SD_Player_Demo F746_SD_VarableFilter F746_SD_GraphicEqualizer F746_MySoundMachine ... more

Revision:
1:c7968701f7b3
Parent:
0:d310bb78455d
Child:
2:511479736d6e
--- a/SD_PlayerSkeleton.hpp	Mon Aug 15 04:38:45 2016 +0000
+++ b/SD_PlayerSkeleton.hpp	Mon Aug 15 06:06:52 2016 +0000
@@ -1,14 +1,14 @@
 //--------------------------------------------------------------
 //  SD プレーヤー用抽象基底クラス(ヘッダ)
 //
-//  2016/07/17, Copyright (c) 2016 MIKAMI, Naoki
+//  2016/08/15, Copyright (c) 2016 MIKAMI, Naoki
 //--------------------------------------------------------------
 
 #ifndef F746_SD_PLAYER_SKELETON_HPP
 #define F746_SD_PLAYER_SKELETON_HPP
 
 #include "SAI_InOut.hpp"
-#include "ButtonGroup.hpp"
+#include "F746_GUI.hpp"
 #include "FileSelectorWav.hpp"
 #include "SD_WavReader.hpp"
 
@@ -19,8 +19,9 @@
     class SD_PlayerSkeleton
     {
     public:
-        SD_PlayerSkeleton(string str, int fs);
-        virtual ~SD_PlayerSkeleton() {}
+        // リセット・ボタンを使う場合は reset を true とする
+        SD_PlayerSkeleton(string str, int fs, bool reset = false);
+        virtual ~SD_PlayerSkeleton() { if (reset_ != NULL) delete reset_; }
         void Execute();
 
     protected:
@@ -42,11 +43,15 @@
         Label title_;           // 上部に表示されるタイトル
         FileSelector selector_;
         ButtonGroup menu_;
+        ResetButton *reset_;
+        bool resetActive_;
 
         // SD カードのファイルのオープン
         int32_t SD_Open();
         // ファイルの選択
         void SelectFile();
+        // パネル操作のチェック
+        void CheckCtrl();
 
         //-------------------------------------
         //      以下は仮想関数