-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix header visibility of remainder of apps
- Loading branch information
1 parent
6355048
commit bffdc47
Showing
28 changed files
with
138 additions
and
74 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#pragma once | ||
|
||
#include "./View.h" | ||
#include "./State.h" | ||
|
||
#include "app/AppManifest.h" | ||
|
||
#include <lvgl.h> | ||
#include <dirent.h> | ||
#include <memory> | ||
|
||
namespace tt::app::files { | ||
|
||
class Files { | ||
std::unique_ptr<View> view; | ||
std::shared_ptr<State> state; | ||
|
||
public: | ||
Files() { | ||
state = std::make_shared<State>(); | ||
view = std::make_unique<View>(state); | ||
} | ||
|
||
void onShow(lv_obj_t* parent) { | ||
view->init(parent); | ||
} | ||
|
||
void onResult(Result result, const Bundle& bundle) { | ||
view->onResult(result, bundle); | ||
} | ||
}; | ||
|
||
|
||
} // namespace |
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
Tactility/Source/app/files/View.h → Tactility/Private/app/files/View.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#pragma once | ||
|
||
#include <TactilityCore.h> | ||
#include <Mutex.h> | ||
#include <Thread.h> | ||
#include "lvgl.h" | ||
#include "hal/i2c/I2c.h" | ||
#include "Timer.h" | ||
#include <memory> | ||
|
||
namespace tt::app::i2cscanner { | ||
|
||
#define TAG "i2cscanner" | ||
|
||
enum ScanState { | ||
ScanStateInitial, | ||
ScanStateScanning, | ||
ScanStateStopped | ||
}; | ||
|
||
struct Data { | ||
// Core | ||
Mutex mutex = Mutex(Mutex::TypeRecursive); | ||
std::unique_ptr<Timer> scanTimer = nullptr; | ||
// State | ||
ScanState scanState; | ||
i2c_port_t port = I2C_NUM_0; | ||
std::vector<uint8_t> scannedAddresses; | ||
// Widgets | ||
lv_obj_t* scanButtonLabelWidget = nullptr; | ||
lv_obj_t* portDropdownWidget = nullptr; | ||
lv_obj_t* scanListWidget = nullptr; | ||
}; | ||
|
||
void onScanTimerFinished(std::shared_ptr<Data> data); | ||
|
||
} |
2 changes: 1 addition & 1 deletion
2
.../Source/app/i2cscanner/I2cScannerThread.h → ...Private/app/i2cscanner/I2cScannerThread.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
#pragma once | ||
|
||
#define IMAGE_VIEWER_FILE_ARGUMENT "file" | ||
namespace tt::app::imageviewer { | ||
|
||
void start(const std::string& file); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
#pragma once | ||
|
||
#define TEXT_VIEWER_FILE_ARGUMENT "file" | ||
namespace tt::app::textviewer { | ||
|
||
void start(const std::string&file); | ||
|
||
} |