Merge branch 'examplesmv' into 'main'

Examplesmv restructure examples dir much like it used to be

See merge request freepascal.org/lazarus/lazarus!94
This commit is contained in:
Juha Manninen 2022-05-17 20:50:08 +00:00
commit 73dad1efa9
926 changed files with 1116 additions and 19 deletions

View File

@ -0,0 +1,21 @@
Following comment contributed by Forum user mgc in May 2022
The problems in the example code are:
- Opensslsockets is needed in the Uses clause;
- Error in these lines:
Add(BoolToStr(Entry.capabilities.canEdit,'Yes','No'));
Add(Entry.lastModifyingUser.displayName);
After compiling it worked, but not always. Many, many times I got the error “google.ini is being used for another process”. Obviously I am using Windows. Then I vanished the Inifiles unit and incorporated the ClientID and ClientSecret into the code and the problem disappeared. However, the performance is still very poor. Sometimes the program freezes, sometimes get fatal errors. Sometimes the program takes forever to close using the X button or Alt+F4.
Going to Linux has not make things better. The performance is still very poor.
I watched the request.log file and notice that its size keeps growing on minutes after the request to the API. Meanwhile, sometimes it has an “Internal server error”. I concluded that this problem happens due to the large number of folders and sub-folders in my drive. Each folder is a call to the API which makes the process very slow and inefficient.
Least but not last, any sub-folder request results in a “bad request”.
I hope this contribution helped to update the APIs FP client.
Thanks.
Mauricio Camargo

View File

@ -0,0 +1,21 @@
Following comment contributed by Forum user mgc in May 2022
The problems in the example code are:
- Opensslsockets is needed in the Uses clause;
- Error in these lines:
Add(BoolToStr(Entry.capabilities.canEdit,'Yes','No'));
Add(Entry.lastModifyingUser.displayName);
After compiling it worked, but not always. Many, many times I got the error “google.ini is being used for another process”. Obviously I am using Windows. Then I vanished the Inifiles unit and incorporated the ClientID and ClientSecret into the code and the problem disappeared. However, the performance is still very poor. Sometimes the program freezes, sometimes get fatal errors. Sometimes the program takes forever to close using the X button or Alt+F4.
Going to Linux has not make things better. The performance is still very poor.
I watched the request.log file and notice that its size keeps growing on minutes after the request to the API. Meanwhile, sometimes it has an “Internal server error”. I concluded that this problem happens due to the large number of folders and sub-folders in my drive. Each folder is a call to the API which makes the process very slow and inefficient.
Least but not last, any sub-folder request results in a “bad request”.
I hope this contribution helped to update the APIs FP client.
Thanks.
Mauricio Camargo

View File

@ -1,5 +1,5 @@
{ "paradox_demo" : {
"Category" : "DBase",
"Keywords" : ["paradox","dbase","db","Needs Work"],
"Description" : "Appears to demonstrate basic use of Paradox Database.\nRequires the lazparadox package (in Laz SRC Tree) to be installed.\nRequires Paradox library on your system, eg on Debian pxlib1.\nGenerates a message \"unable to find TDatasource...\", probably looking for a design time component that it cannot find, neither can I.\n\nIt does compile and run fine, but you cannot view the form or see it in the Object Inspector. Needs fixing !\n\n"}
}
"Keywords" : ["paradox","dbase","db"],
"Description" : "Appears to demonstrate basic use of Paradox Database.\nRequires the lazparadox package (in Laz SRC Tree) to be installed.\nRequires Paradox library on your system, eg on Debian pxlib1.\n\nThere is an as yet unexplained issue with this demo, execute \"Clean up and Build\" if an error \"unable to find TDatasoruce\" is displayed when loading the project.\n"}
}

View File

@ -1,5 +1,5 @@
{ "TAChart_html" : {
"Category" : "TAChart",
"Keywords" : ["TAChart", "html", "export", "svg", "Needs Work"],
"Keywords" : ["TAChart", "html", "export", "svg"],
"Description" : "Draws a chart with HTML formatted text to enable sub-/superscripts or unusually colored text. Can save or export that chart in WMF (Windows only) or SVG. Can copy that chart, as a bitmap to clipboard (but see below).\n\nHas problems on some Linux versions.\n1. When click the SVG button, fails to load a FreeType font when running in the IDE. OK when standalone. This is due to a defective FreeType font contained in some Linux versions and which our FreeType libs cannot cope with.\n2. When click \"copy to clipboard\", a crash is triggered (it should copy a bitmap image)."}
}

View File

@ -1,5 +1,5 @@
{ "TAChart_wmf" : {
"Category" : "TAChart",
"Keywords" : ["TAChart","wmf","Windows Only","Needs work"],
"Keywords" : ["TAChart","wmf","Windows Only"],
"Description" : "Saves a chart to a file in WMF format.\nRuns only on Windows. An alternative way to create WMF files is by using the fpvectorial drawer."}
}
}

View File

@ -1,10 +0,0 @@
{
"treeview" : {
"Category" : "General",
"Keywords" : [
"TTreeView",
"Needs Work"
],
"Description" : "Demonstrates adding/removing nodes to/from a TTreeView."
}
}

View File

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB

View File

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Some files were not shown because too many files have changed in this diff Show More