-
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
295 changed files
with
4,481 additions
and
852 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
{ | ||
"CurrentProjectSetting": "Mingw64" | ||
} |
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,7 @@ | ||
{ | ||
"ExpandedNodes": [ | ||
"" | ||
], | ||
"SelectedNode": "\\CppProperties.json", | ||
"PreviewInSolutionExplorer": false | ||
} |
Binary file added
BIN
+130 KB
.vs/pelican/FileContentIndex/5ef97bea-0735-4e74-a5d5-1395ddd3643e.vsidx
Binary file not shown.
Binary file added
BIN
+2.18 KB
.vs/pelican/FileContentIndex/b776f8e3-3633-4e8e-b9a0-3d52e9f97aa4.vsidx
Binary file not shown.
Binary file not shown.
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,85 @@ | ||
{ | ||
"Version": 1, | ||
"WorkspaceRootPath": "F:\\cpp_projects\\pelican\\", | ||
"Documents": [ | ||
{ | ||
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|F:\\cpp_projects\\pelican\\main.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}", | ||
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:main.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}" | ||
}, | ||
{ | ||
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|F:\\cpp_projects\\pelican\\sources.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}", | ||
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:sources.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}" | ||
}, | ||
{ | ||
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|F:\\cpp_projects\\pelican\\test.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}", | ||
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:test.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}" | ||
}, | ||
{ | ||
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|F:\\cpp_projects\\pelican\\Error.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}", | ||
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:Error.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}" | ||
} | ||
], | ||
"DocumentGroupContainers": [ | ||
{ | ||
"Orientation": 0, | ||
"VerticalTabListWidth": 256, | ||
"DocumentGroups": [ | ||
{ | ||
"DockedWidth": 200, | ||
"SelectedChildIndex": 0, | ||
"Children": [ | ||
{ | ||
"$type": "Document", | ||
"DocumentIndex": 0, | ||
"Title": "main.cpp", | ||
"DocumentMoniker": "F:\\cpp_projects\\pelican\\main.cpp", | ||
"RelativeDocumentMoniker": "main.cpp", | ||
"ToolTip": "F:\\cpp_projects\\pelican\\main.cpp", | ||
"RelativeToolTip": "main.cpp", | ||
"ViewState": "AQIAAAAAAAAAAAAAAAAAABcAAAA5AAAA", | ||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|", | ||
"WhenOpened": "2024-05-06T09:46:48.429Z", | ||
"EditorCaption": "" | ||
}, | ||
{ | ||
"$type": "Document", | ||
"DocumentIndex": 3, | ||
"Title": "Error.cpp", | ||
"DocumentMoniker": "F:\\cpp_projects\\pelican\\Error.cpp", | ||
"RelativeDocumentMoniker": "Error.cpp", | ||
"ToolTip": "F:\\cpp_projects\\pelican\\Error.cpp", | ||
"RelativeToolTip": "Error.cpp", | ||
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", | ||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|", | ||
"WhenOpened": "2024-05-06T09:46:46.773Z" | ||
}, | ||
{ | ||
"$type": "Document", | ||
"DocumentIndex": 2, | ||
"Title": "test.cpp", | ||
"DocumentMoniker": "F:\\cpp_projects\\pelican\\test.cpp", | ||
"RelativeDocumentMoniker": "test.cpp", | ||
"ToolTip": "F:\\cpp_projects\\pelican\\test.cpp", | ||
"RelativeToolTip": "test.cpp", | ||
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", | ||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|", | ||
"WhenOpened": "2024-05-06T09:46:43.327Z" | ||
}, | ||
{ | ||
"$type": "Document", | ||
"DocumentIndex": 1, | ||
"Title": "sources.cpp", | ||
"DocumentMoniker": "F:\\cpp_projects\\pelican\\sources.cpp", | ||
"RelativeDocumentMoniker": "sources.cpp", | ||
"ToolTip": "F:\\cpp_projects\\pelican\\sources.cpp", | ||
"RelativeToolTip": "sources.cpp", | ||
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", | ||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|", | ||
"WhenOpened": "2024-05-06T09:46:38.164Z" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,21 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"name": "Win32", | ||
"includePath": [ | ||
"C:/msys64/mingw64/include" | ||
], | ||
"defines": [ | ||
"_DEBUG", | ||
"UNICODE", | ||
"_UNICODE" | ||
], | ||
"windowsSdkVersion": "10.0.22621.0", | ||
"compilerPath": "cl.exe", | ||
"cStandard": "c17", | ||
"cppStandard": "c++17", | ||
"intelliSenseMode": "windows-msvc-x64" | ||
} | ||
], | ||
"version": 4 | ||
} |
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,5 +1,3 @@ | ||
{ | ||
"rust-analyzer.linkedProjects": [ | ||
".\\Pelican\\Cargo.toml" | ||
] | ||
"C_Cpp.errorSquiggles": "disabled" | ||
} |
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,44 @@ | ||
#ifndef _VIEW_ | ||
#include "View.cpp" | ||
#endif | ||
|
||
class Button:public View{ | ||
|
||
public: | ||
static const char* BUTTON; | ||
|
||
Button(xml_node<>* node):View(node){ | ||
if(isButton(node)){ | ||
this->node=node; | ||
} | ||
else | ||
std::cout<<"Button()::ERROR -> passed xml_node<>* is not a Button"<<std::endl; | ||
} | ||
|
||
|
||
|
||
const char* getValue(const char* attribute){ | ||
if(node==NULL){ | ||
std::cout<<"Button::getValue(const char*)::ERROR -> xml_node<>* is NULL , check is passed xml_node<>* is valid or not"<<std::endl; | ||
return 0; | ||
} | ||
return node->first_attribute(attribute)->value(); | ||
} | ||
|
||
static bool isButton(xml_node<>* node){ | ||
//checking is Valid | ||
// it will be valid if either text attribute or src attribute | ||
if(node->first_attribute(ATTRIBUTE_TEXT)==0 && node->first_attribute(ATTRIBUTE_src)==0 ) | ||
return false; | ||
|
||
return true; | ||
} | ||
|
||
|
||
static const char* ATTRIBUTE_TEXT; | ||
static const char* ATTRIBUTE_src; | ||
}; | ||
|
||
const char* Button::ATTRIBUTE_TEXT="text"; | ||
const char*Button::ATTRIBUTE_src="src"; | ||
const char* Button::BUTTON="Button"; |
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,15 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"inheritEnvironments": [ | ||
"mingw_64" | ||
], | ||
"name": "Mingw64", | ||
"includePath": [ | ||
"C:/msys64/mingw64/include", | ||
"${workspaceRoot}\\**" | ||
], | ||
"intelliSenseMode": "linux-gcc-x64" | ||
} | ||
] | ||
} |
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,6 @@ | ||
|
||
#define _ERROR_ | ||
|
||
const char* TITLE_ELEMENT_NOT_FOUND="TITLE ELEMENT NOT FOUND , add title element in root element <title>demo</title>"; | ||
const char* INVALID_VIEW="ERROR -> passed xml_node<>* is not a View"; | ||
const char* PARENT_LAYOUT_NOT_FOUND="parent layout not found , there should be any Layout element in the root element , and all elements inside the parent Layout element , some Layout Element are LinearLayout,FrameLayout etc"; |
Oops, something went wrong.