Skip to content

Commit

Permalink
Version 0.4.3 (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Philosoph228 authored Apr 29, 2024
1 parent 2c90681 commit c80a6a3
Show file tree
Hide file tree
Showing 139 changed files with 14,582 additions and 1,933 deletions.
64 changes: 53 additions & 11 deletions panitent.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
<ClCompile Include="src\dockhost.c" />
<ClCompile Include="src\dockinspectordialog.c" />
<ClCompile Include="src\document.c" />
<ClCompile Include="src\experimental\bubble.c" />
<ClCompile Include="src\experimental\captionglyphs.c" />
<ClCompile Include="src\experimental\dockhostcomposite.c" />
<ClCompile Include="src\experimental\dockpanel.c" />
<ClCompile Include="src\experimental\dockwindow.c" />
<ClCompile Include="src\file_open.c" />
<ClCompile Include="src\flexible.c" />
<ClCompile Include="src\floatingwindowcontainer.c" />
Expand All @@ -50,12 +55,16 @@
<ClCompile Include="src\panitent.c" />
<ClCompile Include="src\panitentwindow.c" />
<ClCompile Include="src\pentablet.c" />
<ClCompile Include="src\pntxml.c" />
<ClCompile Include="src\primitives_context.c" />
<ClCompile Include="src\queue.c" />
<ClCompile Include="src\propgriddialog.c" />
<ClCompile Include="src\settings.c" />
<ClCompile Include="src\settings_dialog.c" />
<ClCompile Include="src\sharing\activitysharingclient.c" />
<ClCompile Include="src\sharing\activitysharingmanager.c" />
<ClCompile Include="src\sharing\activitystubdialog.c" />
<ClCompile Include="src\sharing\discordasp.c" />
<ClCompile Include="src\splittercontainer.c" />
<ClCompile Include="src\stack.c" />
<ClCompile Include="src\swatch.c" />
<ClCompile Include="src\swatch2.c" />
<ClCompile Include="src\toolbox.c" />
Expand All @@ -69,8 +78,18 @@
<ClCompile Include="src\tools\pointertool.c" />
<ClCompile Include="src\tools\rectangletool.c" />
<ClCompile Include="src\tools\texttool.c" />
<ClCompile Include="src\tree.c" />
<ClCompile Include="src\toolwndframe.c" />
<ClCompile Include="src\util.c" />
<ClCompile Include="src\util\bytestream.c" />
<ClCompile Include="src\util\hashmap.c" />
<ClCompile Include="src\util\list.c" />
<ClCompile Include="src\util\pntrtti.c" />
<ClCompile Include="src\util\pntstring.c" />
<ClCompile Include="src\util\queue.c" />
<ClCompile Include="src\util\stack.c" />
<ClCompile Include="src\util\tree.c" />
<ClCompile Include="src\util\utf.c" />
<ClCompile Include="src\util\vector.c" />
<ClCompile Include="src\viewport.c" />
<ClCompile Include="src\wic.c" />
<ClCompile Include="src\windowstub.c" />
Expand All @@ -90,15 +109,21 @@
<ClInclude Include="src\crashhandler.h" />
<ClInclude Include="src\crefptr.h" />
<ClInclude Include="src\debug.h" />
<ClInclude Include="src\discordsdk.h" />
<ClInclude Include="src\dockhost.h" />
<ClInclude Include="src\dockinspectordialog.h" />
<ClInclude Include="src\document.h" />
<ClInclude Include="src\experimental\bubble.h" />
<ClInclude Include="src\experimental\captionglyphs.h" />
<ClInclude Include="src\experimental\dockhostcomposite.h" />
<ClInclude Include="src\experimental\docklib.h" />
<ClInclude Include="src\experimental\dockpanel.h" />
<ClInclude Include="src\experimental\dockwindow.h" />
<ClInclude Include="src\file_open.h" />
<ClInclude Include="src\flexible.h" />
<ClInclude Include="src\floatingwindowcontainer.h" />
<ClInclude Include="src\glwindow.h" />
<ClInclude Include="src\history.h" />
<ClInclude Include="src\iactivitysharingprovider.h" />
<ClInclude Include="src\kvec.h" />
<ClInclude Include="src\layeredwindow.h" />
<ClInclude Include="src\layerswindow.h" />
Expand All @@ -113,14 +138,19 @@
<ClInclude Include="src\panitentwindow.h" />
<ClInclude Include="src\pencil_tool.h" />
<ClInclude Include="src\pentablet.h" />
<ClInclude Include="src\pntxml.h" />
<ClInclude Include="src\precomp.h" />
<ClInclude Include="src\primitives_context.h" />
<ClInclude Include="src\queue.h" />
<ClInclude Include="src\propgriddialog.h" />
<ClInclude Include="src\resource.h" />
<ClInclude Include="src\settings.h" />
<ClInclude Include="src\settings_dialog.h" />
<ClInclude Include="src\sharing\activitysharingmanager.h" />
<ClInclude Include="src\sharing\activitystubdialog.h" />
<ClInclude Include="src\sharing\discordasp.h" />
<ClInclude Include="src\sharing\discordsdk.h" />
<ClInclude Include="src\sharing\activitysharingclient.h" />
<ClInclude Include="src\splittercontainer.h" />
<ClInclude Include="src\stack.h" />
<ClInclude Include="src\swatch.h" />
<ClInclude Include="src\swatch2.h" />
<ClInclude Include="src\test.h" />
Expand All @@ -137,8 +167,19 @@
<ClInclude Include="src\tools\pointertool.h" />
<ClInclude Include="src\tools\rectangletool.h" />
<ClInclude Include="src\tools\texttool.h" />
<ClInclude Include="src\tree.h" />
<ClInclude Include="src\toolwndframe.h" />
<ClInclude Include="src\util.h" />
<ClInclude Include="src\util\assert.h" />
<ClInclude Include="src\util\bytestream.h" />
<ClInclude Include="src\util\hashmap.h" />
<ClInclude Include="src\util\list.h" />
<ClInclude Include="src\util\pntrtti.h" />
<ClInclude Include="src\util\pntstring.h" />
<ClInclude Include="src\util\queue.h" />
<ClInclude Include="src\util\stack.h" />
<ClInclude Include="src\util\tree.h" />
<ClInclude Include="src\util\utf.h" />
<ClInclude Include="src\util\vector.h" />
<ClInclude Include="src\viewport.h" />
<ClInclude Include="src\wic.h" />
<ClInclude Include="src\win32util.h" />
Expand All @@ -162,6 +203,7 @@
<Manifest Include="res\panitent.exe.manifest" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\appmeta.rc" />
<ResourceCompile Include="res\panitent.rc" />
<ResourceCompile Include="res\panitent2.rc" />
<ResourceCompile Include="src\res2.rc" />
Expand Down Expand Up @@ -233,7 +275,7 @@
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>shlwapi.lib;comctl32.lib;uxtheme.lib;msimg32.lib;windowscodecs.lib;dbghelp.lib;opengl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>shlwapi.lib;comctl32.lib;uxtheme.lib;msimg32.lib;windowscodecs.lib;dbghelp.lib;opengl32.lib;dwmapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
Expand All @@ -250,7 +292,7 @@
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>shlwapi.lib;comctl32.lib;uxtheme.lib;msimg32.lib;windowscodecs.lib;dbghelp.lib;opengl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>shlwapi.lib;comctl32.lib;uxtheme.lib;msimg32.lib;windowscodecs.lib;dbghelp.lib;opengl32.lib;dwmapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
Expand All @@ -263,7 +305,7 @@
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>shlwapi.lib;comctl32.lib;uxtheme.lib;msimg32.lib;windowscodecs.lib;dbghelp.lib;opengl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>shlwapi.lib;comctl32.lib;uxtheme.lib;msimg32.lib;windowscodecs.lib;dbghelp.lib;opengl32.lib;dwmapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
Expand All @@ -280,7 +322,7 @@
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>shlwapi.lib;comctl32.lib;uxtheme.lib;msimg32.lib;windowscodecs.lib;dbghelp.lib;opengl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>shlwapi.lib;comctl32.lib;uxtheme.lib;msimg32.lib;windowscodecs.lib;dbghelp.lib;opengl32.lib;dwmapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
Expand Down
2 changes: 1 addition & 1 deletion panitent_test/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR szCmdLine, int nCmdShow)
{
struct TestApplication* app = TestApplication_Create();
TestApplication* app = (TestApplication*)TestApplication_Create();

return TestApplication_Run(app);
}
20 changes: 11 additions & 9 deletions panitent_test/test_application.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,34 @@
#include "win32/window.h"
#include "test_application.h"
#include "test_window.h"
#include <string.h>

void TestApplication_Init(struct TestApplication* app)
void TestApplication_Init(TestApplication* app)
{
Application_Init(&app->base);

app->palette = Palette_Create();
app->mainWindow = TestWindow_Create(app);
}

struct TestApplication* TestApplication_Create()
TestApplication* TestApplication_Create()
{
struct TestApplication* app = calloc(1, sizeof(struct TestApplication));
TestApplication* pTestApplication = (TestApplication*)malloc(sizeof(struct TestApplication));
memset(pTestApplication, 0, sizeof(TestApplication));

if (app)
if (pTestApplication)
{
TestApplication_Init(app);
TestApplication_Init(pTestApplication);
}

return app;
return pTestApplication;
}

int TestApplication_Run(struct TestApplication* app)
int TestApplication_Run(TestApplication* pTestApplication)
{
// Application_Run(app);

Window_CreateWindow((Window*)app->mainWindow, NULL);
Window_CreateWindow((Window*)pTestApplication->mainWindow, NULL);

return Application_Run(app);
return Application_Run(pTestApplication);
}
5 changes: 3 additions & 2 deletions panitent_test/test_application.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@

#include "palette.h"

typedef struct TestApplication TestApplication;
struct TestApplication {
struct Application base;
Application base;

struct TestWindow* mainWindow;
TestWindow* mainWindow;
Palette* palette;
};

Expand Down
9 changes: 5 additions & 4 deletions panitent_test/test_window.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ LRESULT CALLBACK TestWindow_UserProc(struct Window*, HWND hWnd, UINT message, WP

TestWindow* TestWindow_Create(struct Application* app)
{
TestWindow* window = calloc(1, sizeof(TestWindow));
TestWindow* pTestWindow = (TestWindow*)malloc(sizeof(TestWindow));
memset(pTestWindow, 0, sizeof(TestApplication));

if (window)
if (pTestWindow)
{
TestWindow_Init(window, app);
TestWindow_Init(pTestWindow, app);
}

return window;
return pTestWindow;
}

void TestWindow_Init(TestWindow* window, struct Application* app)
Expand Down
Binary file added res/appmeta.aps
Binary file not shown.
29 changes: 29 additions & 0 deletions res/appmeta.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#include <winres.h>

2 VERSIONINFO
FILEVERSION 1, 0, 0, 0
PRODUCTVERSION 1, 0, 0, 0
FILEOS VOS_NT
FILETYPE VFT_APP
FILEFLAGS VS_FF_PRERELEASE
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "000004b0"
BEGIN
VALUE "CompanyName", "Aragajaga"
VALUE "FileDescription", "Panit.ent Graphics Editor"
VALUE "FileVersion", "1.0.0.0"
VALUE "InternalName", "panitent"
VALUE "LegalCopyright", "Copyright 2017-2021 Aragajaga"
VALUE "OriginalFilename", "panitent.exe"
VALUE "ProductName", "Panit.ent"
VALUE "ProductVersion", "1.0.0.0"
END
END

BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x00, 1200
END
END
Binary file added res/dockhostbg.bmp
Binary file not shown.
Binary file modified res/floatingglyphs.bmp
Binary file not shown.
Binary file added res/floatingglyphs2.bmp
Binary file not shown.
Binary file removed res/panitent.aps
Binary file not shown.
Loading

0 comments on commit c80a6a3

Please sign in to comment.