-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
197 additions
and
56 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
IDI_ICON1 ICON DISCARDABLE "favicon.ico" |
Binary file not shown.
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,10 @@ | ||
#pragma once | ||
|
||
namespace notes | ||
{ | ||
class Exporter | ||
{ | ||
public: | ||
virtual bool saveFileAs(std::filesystem::path const& filePath) = 0; | ||
}; | ||
} // namespace notes |
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,17 @@ | ||
#pragma once | ||
|
||
#include "exporter.hpp" | ||
|
||
namespace notes::exporters | ||
{ | ||
class TxtExport : public Exporter | ||
{ | ||
public: | ||
TxtExport(std::string_view const text); | ||
|
||
bool saveFileAs(std::filesystem::path const& filePath) override; | ||
|
||
private: | ||
std::string text; | ||
}; | ||
} // namespace notes::exporters |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include "exporters/txt.hpp" | ||
#include "precompiled.hpp" | ||
|
||
namespace notes::exporters | ||
{ | ||
TxtExport::TxtExport(std::string_view const text) : text(text) | ||
{ | ||
} | ||
|
||
bool TxtExport::saveFileAs(std::filesystem::path const& filePath) | ||
{ | ||
std::ofstream stream(filePath, std::ios::out); | ||
if (!stream.is_open()) | ||
{ | ||
return false; | ||
} | ||
|
||
stream << text; | ||
return true; | ||
} | ||
} // namespace notes::exporters |
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
Submodule libwebview
updated
6 files
+4 −5 | native/CMakeLists.txt | |
+13 −0 | native/include/platform.hpp | |
+3 −0 | native/include/platform/edge.hpp | |
+1 −3 | native/include/precompiled.h | |
+6 −0 | native/include/webview.hpp | |
+126 −2 | native/src/platform/edge.cpp |
Oops, something went wrong.