Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SDFileSystem_Warning_Fixed
Diff: SD_PlayerSkeleton.hpp
- 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();
//-------------------------------------
// 以下は仮想関数