Skip to content

Commit 40fa25a

Browse files
committed
Ported to Windows
1 parent 3585767 commit 40fa25a

File tree

8,656 files changed

+2930
-22157
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

8,656 files changed

+2930
-22157
lines changed

Images/Valorant_logo.jpg

9.32 KB
Loading

Linux/src/gui.cc

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ EditorGUIMain::EditorGUIMain() : wxFrame(nullptr, wxID_ANY, "")
8787
preview = new wxBoxSizer(wxVERTICAL);
8888

8989
preview->Add(previewImage, 0, wxBOTTOM, 10);
90-
preview->Add(warnings, 1, wxEXPAND | wxTOP | wxALIGN_CENTER, 10);
90+
preview->Add(warnings, 1, wxEXPAND | wxTOP, 10);
9191

9292
boxSizer->Add(textEdit, 1, wxEXPAND | wxALL, 10);
9393
boxSizer->Add(preview, 0, wxEXPAND | wxALL, 10);
@@ -135,7 +135,7 @@ void EditorGUIMain::update()
135135
int cursorLine = std::count(input.begin(), input.begin() + textEdit->GetInsertionPoint(), '\n') + 1;
136136

137137
if(!Global::_SAVED && Global::_SAVEPATH == Global::_CACHEPATH / "Editor" / "current.txt") textEdit->SaveFile(std::string(Global::_SAVEPATH));
138-
if(Global::_SAVEPATH == "") Global::_SAVEPATH = Global::_CACHEPATH / "Editor" / "current.txt";
138+
if(Global::_SAVEPATH == "") Global::_SAVEPATH = (Global::_CACHEPATH / "Editor" / "current.txt").string();
139139

140140
std::vector<Token> tokens = tokenize(input);
141141
parse(tokens, cursorLine);
@@ -206,9 +206,9 @@ void EditorGUIMain::previewUpdate()
206206
if(Global::_CSLIDEPREVIEW < Global::_PRESENT->slides.size() && !Global::_LOCKPREVIEWIMAGE)
207207
{
208208
Global::_LOCKPREVIEWIMAGE = true;
209-
saveImage(generateSurface(Global::_CSLIDEPREVIEW), Global::_CACHEPATH / "preview.png");
209+
saveImage(generateSurface(Global::_CSLIDEPREVIEW), (Global::_CACHEPATH / "preview.png").string());
210210

211-
wxFileInputStream previewIn(std::string(Global::_CACHEPATH / "preview.png"));
211+
wxFileInputStream previewIn((Global::_CACHEPATH / "preview.png").string());
212212
pngHandler->LoadFile(&previewImageData, previewIn);
213213

214214
if(previewImageData.IsOk())
@@ -263,14 +263,14 @@ bool EditorGUIApp::OnInit()
263263
mainFrame->Show();
264264
mainFrame->Maximize();
265265

266-
//Load default font
266+
//Load default font
267267
Global::_DEFAULTFONT = { {"title", TTF_OpenFont("dat/defaultFont.ttf", 68)}, {"subtitle", TTF_OpenFont("dat/defaultFont.ttf", 46)}, {"normal", TTF_OpenFont("dat/defaultFont.ttf", 34)}, {"footer", TTF_OpenFont("dat/defaultFont.ttf", 12)} };
268268
if (Global::_DEFAULTFONT["title"] == NULL || Global::_DEFAULTFONT["subtitle"] == NULL || Global::_DEFAULTFONT["normal"] == NULL || Global::_DEFAULTFONT["footer"] == NULL)
269269
{
270270
printf("[ERROR]: Loading font: %s\n", TTF_GetError());
271-
mainFrame->error->SetTitle("Error loading default font");
272-
mainFrame->error->SetMessage("Could not load default Font. Make sure the \"dat\" folder is present in the installation folder of BitPresent");
273-
mainFrame->error->ShowModal();
271+
mainFrame->error->SetTitle("Error loading default font");
272+
mainFrame->error->SetMessage("Could not load default Font. Make sure the \"dat\" folder is present in the installation folder of BitPresent");
273+
mainFrame->error->ShowModal();
274274
return false;
275275
}
276276
Global::_PRESENT->font = Global::_DEFAULTFONT;
@@ -417,7 +417,7 @@ void EditorGUIMain::onNewClicked(wxCommandEvent &evt)
417417
if(checkSaved())
418418
{
419419
textEdit->Clear();
420-
Global::_SAVEPATH = Global::_CACHEPATH / "Editor" / "current.txt";
420+
Global::_SAVEPATH = (Global::_CACHEPATH / "Editor" / "current.txt").string();
421421
Global::_EXPORTPATH = "";
422422

423423
Global::_FORCEUPDATE = true;
@@ -615,6 +615,7 @@ void EditorGUIMain::onAboutClicked(wxCommandEvent &evt)
615615
aboutInfo.SetWebSite("https://www.github.com/BitTim/BitPresent/");
616616
aboutInfo.SetLicence(Global::_LICENSE);
617617
aboutInfo.AddDeveloper("BitTim");
618+
aboutInfo.AddDocWriter("BitTim");
618619
wxAboutBox(aboutInfo);
619620
}
620621

Sample files/Presentation.pdf

-9.21 MB
Binary file not shown.

Sample files/Presentation.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<Topic 1 (Title Slide)>
2+
-Subtitle-
3+
4+
[Slide 1]
5+
-Subtitle-
6+
Point 1
7+
Point 2
8+
Point 3
9+
This is a very long and pointless sentence that noone would ever use in a presentation.
10+
.image sampleImage.png
11+
12+
[No Subtitle and No Image!]
13+
Lol
14+
Rofl
15+
16+
<Ending>
17+
-Subtitle... again-

Sample files/Sample1.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ Point 1
77
Point 2
88
Point 3
99
This is a very long and pointless sentence that noone would ever use in a presentation.
10-
<<<<<<< HEAD
11-
.image /home/tim/Coding/BitPresent/Sample files/sampleImage.png
12-
=======
1310
.image sampleImage.png
14-
>>>>>>> gui
1511

1612
[No Subtitle and No Image!]
1713
Lol

Windows/BitPresent.aps

-134 KB
Binary file not shown.

Windows/BitPresent.cpp

Lines changed: 0 additions & 111 deletions
This file was deleted.

Windows/BitPresent.rc

Lines changed: 0 additions & 71 deletions
This file was deleted.

Windows/BitPresent.sln

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 16
44
VisualStudioVersion = 16.0.29709.97
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BitPresent", "BitPresent.vcxproj", "{6AE7B4F0-FF87-412C-8A68-0115AEBA5961}"
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BitPresent", "BitPresent.vcxproj", "{0D1F6BDE-5E9A-44EC-83DB-0B1AD470D8DC}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -13,19 +13,19 @@ Global
1313
Release|x86 = Release|x86
1414
EndGlobalSection
1515
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16-
{6AE7B4F0-FF87-412C-8A68-0115AEBA5961}.Debug|x64.ActiveCfg = Debug|x64
17-
{6AE7B4F0-FF87-412C-8A68-0115AEBA5961}.Debug|x64.Build.0 = Debug|x64
18-
{6AE7B4F0-FF87-412C-8A68-0115AEBA5961}.Debug|x86.ActiveCfg = Debug|Win32
19-
{6AE7B4F0-FF87-412C-8A68-0115AEBA5961}.Debug|x86.Build.0 = Debug|Win32
20-
{6AE7B4F0-FF87-412C-8A68-0115AEBA5961}.Release|x64.ActiveCfg = Release|x64
21-
{6AE7B4F0-FF87-412C-8A68-0115AEBA5961}.Release|x64.Build.0 = Release|x64
22-
{6AE7B4F0-FF87-412C-8A68-0115AEBA5961}.Release|x86.ActiveCfg = Release|Win32
23-
{6AE7B4F0-FF87-412C-8A68-0115AEBA5961}.Release|x86.Build.0 = Release|Win32
16+
{0D1F6BDE-5E9A-44EC-83DB-0B1AD470D8DC}.Debug|x64.ActiveCfg = Debug|x64
17+
{0D1F6BDE-5E9A-44EC-83DB-0B1AD470D8DC}.Debug|x64.Build.0 = Debug|x64
18+
{0D1F6BDE-5E9A-44EC-83DB-0B1AD470D8DC}.Debug|x86.ActiveCfg = Debug|Win32
19+
{0D1F6BDE-5E9A-44EC-83DB-0B1AD470D8DC}.Debug|x86.Build.0 = Debug|Win32
20+
{0D1F6BDE-5E9A-44EC-83DB-0B1AD470D8DC}.Release|x64.ActiveCfg = Release|x64
21+
{0D1F6BDE-5E9A-44EC-83DB-0B1AD470D8DC}.Release|x64.Build.0 = Release|x64
22+
{0D1F6BDE-5E9A-44EC-83DB-0B1AD470D8DC}.Release|x86.ActiveCfg = Release|Win32
23+
{0D1F6BDE-5E9A-44EC-83DB-0B1AD470D8DC}.Release|x86.Build.0 = Release|Win32
2424
EndGlobalSection
2525
GlobalSection(SolutionProperties) = preSolution
2626
HideSolutionNode = FALSE
2727
EndGlobalSection
2828
GlobalSection(ExtensibilityGlobals) = postSolution
29-
SolutionGuid = {2CB4306F-93BC-43CA-8A19-BED2680AF4C6}
29+
SolutionGuid = {1CC720FF-7F50-4225-9A5D-34DFC6635B7E}
3030
EndGlobalSection
3131
EndGlobal

0 commit comments

Comments
 (0)