From ff37312e24f987e6b9c669b88bb4d03f8f37e21a Mon Sep 17 00:00:00 2001 From: Andrea Magni Date: Sat, 18 Sep 2021 11:47:36 +0200 Subject: [PATCH] Upgraded demos to D11. Fix #65 --- demos/BottomSheet/BottomSheetProject.dproj | 56 +-- demos/ButtonSet/ButtonSetTFrameStand.dproj | 10 +- demos/EditHelper/EditHelperTFrameStand.dproj | 2 +- .../MaterialButtonFrameStand.dproj | 2 +- demos/PictureWall/PictureWallFrameStand.dproj | 4 +- demos/Responsive/ResponsiveProject.dproj | 22 +- demos/Stand3D/Stand3DProject.dproj | 24 +- .../FormStandActionList.dproj | 44 +- .../FormStandHelloWorld.dproj | 46 +- .../FormStandLiveBindings.dproj | 40 +- demos/Wizard/Simple/Forms.Main.fmx | 4 + demos/Wizard/Simple/Forms.Main.pas | 33 +- .../Simple/WizardSimpleProject.deployproj | 412 +++++++++++++----- demos/Wizard/Simple/WizardSimpleProject.dproj | 247 +++++++++-- demos/lightbox/LightBoxFrameStand.dproj | 6 +- 15 files changed, 668 insertions(+), 284 deletions(-) diff --git a/demos/BottomSheet/BottomSheetProject.dproj b/demos/BottomSheet/BottomSheetProject.dproj index 6e02b8e..532b5a6 100644 --- a/demos/BottomSheet/BottomSheetProject.dproj +++ b/demos/BottomSheet/BottomSheetProject.dproj @@ -314,15 +314,15 @@ true - + - libBottomSheetProject.so + ic_launcher.png true - + - classes.dex + splash_image.png true @@ -348,13 +348,14 @@ true - + + libBottomSheetProject.so true - - + + true @@ -386,59 +387,58 @@ true - - + + + libBottomSheetProject.so true - - - BottomSheetProject.exe + + true - - + + true - - - splash_image.png + + + BottomSheetProject.exe true - + true - + - ic_launcher.png + classes.dex true - + - ic_launcher.png true - + splash_image.png true - - - libBottomSheetProject.so + + true - - + + + ic_launcher.png true diff --git a/demos/ButtonSet/ButtonSetTFrameStand.dproj b/demos/ButtonSet/ButtonSetTFrameStand.dproj index e28491a..e625b50 100755 --- a/demos/ButtonSet/ButtonSetTFrameStand.dproj +++ b/demos/ButtonSet/ButtonSetTFrameStand.dproj @@ -324,18 +324,18 @@ true - - + + true - - - + + true + diff --git a/demos/EditHelper/EditHelperTFrameStand.dproj b/demos/EditHelper/EditHelperTFrameStand.dproj index f5d0712..604e2ad 100755 --- a/demos/EditHelper/EditHelperTFrameStand.dproj +++ b/demos/EditHelper/EditHelperTFrameStand.dproj @@ -310,8 +310,8 @@ - + diff --git a/demos/MaterialButton/MaterialButtonFrameStand.dproj b/demos/MaterialButton/MaterialButtonFrameStand.dproj index 60d2f1a..39bc15d 100755 --- a/demos/MaterialButton/MaterialButtonFrameStand.dproj +++ b/demos/MaterialButton/MaterialButtonFrameStand.dproj @@ -323,8 +323,8 @@ - + diff --git a/demos/PictureWall/PictureWallFrameStand.dproj b/demos/PictureWall/PictureWallFrameStand.dproj index 16c4cb1..8f83200 100755 --- a/demos/PictureWall/PictureWallFrameStand.dproj +++ b/demos/PictureWall/PictureWallFrameStand.dproj @@ -325,12 +325,12 @@ true - + true - + true diff --git a/demos/Responsive/ResponsiveProject.dproj b/demos/Responsive/ResponsiveProject.dproj index b635335..c359b5f 100644 --- a/demos/Responsive/ResponsiveProject.dproj +++ b/demos/Responsive/ResponsiveProject.dproj @@ -347,8 +347,9 @@ true - + + classes.dex true @@ -386,8 +387,8 @@ true - - + + true @@ -424,6 +425,11 @@ true + + + true + + true @@ -464,14 +470,8 @@ true - - - classes.dex - true - - - - + + true diff --git a/demos/Stand3D/Stand3DProject.dproj b/demos/Stand3D/Stand3DProject.dproj index 617ff76..23b9670 100644 --- a/demos/Stand3D/Stand3DProject.dproj +++ b/demos/Stand3D/Stand3DProject.dproj @@ -375,44 +375,44 @@ true - + - classes.dex + ic_launcher.png true - + - splash_image.png + classes.dex true - + + splash_image.png true - + ic_notification.png true - + - ic_launcher.png true - + - ic_launcher.png + ic_notification.png true - + - ic_notification.png + ic_launcher.png true diff --git a/demos/TFormStand_ActionList/FormStandActionList.dproj b/demos/TFormStand_ActionList/FormStandActionList.dproj index a7fb136..5c17184 100644 --- a/demos/TFormStand_ActionList/FormStandActionList.dproj +++ b/demos/TFormStand_ActionList/FormStandActionList.dproj @@ -312,14 +312,15 @@ true - + - classes.dex + splash_image.png true - - + + + FormStandActionList.exe true @@ -340,8 +341,8 @@ true - - + + true @@ -390,6 +391,11 @@ true + + + true + + true @@ -406,38 +412,32 @@ true - + - libFormStandHelloWorld.so true - + - ic_launcher.png + classes.dex true - + - ic_launcher.png + libFormStandHelloWorld.so true - + - splash_image.png - true - - - - - FormStandActionList.exe + ic_launcher.png true - - + + + ic_launcher.png true diff --git a/demos/TFormStand_HelloWorld/FormStandHelloWorld.dproj b/demos/TFormStand_HelloWorld/FormStandHelloWorld.dproj index 197dfd3..806d3e9 100644 --- a/demos/TFormStand_HelloWorld/FormStandHelloWorld.dproj +++ b/demos/TFormStand_HelloWorld/FormStandHelloWorld.dproj @@ -312,14 +312,15 @@ true - + - libFormStandHelloWorld.so + ic_launcher.png true - - + + + FormStandHelloWorld.exe true @@ -340,9 +341,8 @@ true - - - classes.dex + + true @@ -386,6 +386,12 @@ true + + + libFormStandHelloWorld.so + true + + true @@ -407,37 +413,31 @@ true - - + + true - + - ic_launcher.png + classes.dex true - - - splash_image.png + + true - + ic_launcher.png true - - - FormStandHelloWorld.exe - true - - - - + + + splash_image.png true diff --git a/demos/TFormStand_LiveBindings/FormStandLiveBindings.dproj b/demos/TFormStand_LiveBindings/FormStandLiveBindings.dproj index 7908904..b2b146e 100644 --- a/demos/TFormStand_LiveBindings/FormStandLiveBindings.dproj +++ b/demos/TFormStand_LiveBindings/FormStandLiveBindings.dproj @@ -317,14 +317,15 @@ true - + - classes.dex + splash_image.png true - + + libFormStandHelloWorld.so true @@ -345,8 +346,8 @@ true - - + + true @@ -395,6 +396,11 @@ true + + + true + + true @@ -411,38 +417,32 @@ true - + - libFormStandLiveBindings.so true - + - ic_launcher.png + classes.dex true - + - ic_launcher.png + libFormStandLiveBindings.so true - + - splash_image.png + ic_launcher.png true - + - libFormStandHelloWorld.so - true - - - - + ic_launcher.png true diff --git a/demos/Wizard/Simple/Forms.Main.fmx b/demos/Wizard/Simple/Forms.Main.fmx index e2632ff..af50226 100644 --- a/demos/Wizard/Simple/Forms.Main.fmx +++ b/demos/Wizard/Simple/Forms.Main.fmx @@ -124,9 +124,13 @@ object MainForm: TMainForm AnimationShow = 'OnShow*' AnimationHide = 'OnHide*' CommonActionPrefix = 'ca_' + DefaultHideAndCloseDeferTimeMS = 100 DefaultStyleName = 'framestand' + DefaultStandName = 'framestand' DefaultParent = Layout1 StyleBook = Stands + StandBook = Stands + OnBeforeStartAnimation = FrameStand1BeforeStartAnimation Left = 176 Top = 224 end diff --git a/demos/Wizard/Simple/Forms.Main.pas b/demos/Wizard/Simple/Forms.Main.pas index 58b006e..9a12ac6 100644 --- a/demos/Wizard/Simple/Forms.Main.pas +++ b/demos/Wizard/Simple/Forms.Main.pas @@ -5,7 +5,7 @@ interface uses System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants, FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, FrameStand, - FMX.Layouts, FMX.StdCtrls, FMX.Controls.Presentation; + FMX.Layouts, FMX.StdCtrls, FMX.Controls.Presentation, SubjectStand, FMX.Ani; type TMainForm = class(TForm) @@ -16,6 +16,8 @@ TMainForm = class(TForm) Stands: TStyleBook; procedure StepButtonClick(Sender: TObject); procedure FormCreate(Sender: TObject); + procedure FrameStand1BeforeStartAnimation(const ASender: TSubjectStand; + const ASubjectInfo: TSubjectInfo; const AAnimation: TAnimation); private { Private declarations } FFrameInfo: TFrameInfo; @@ -58,15 +60,12 @@ procedure TMainForm.FormCreate(Sender: TObject); , procedure (const S: TObject; const M: TMessage) begin if Assigned(FFrameInfo) then - begin - FFrameInfo.Hide(0 + FFrameInfo.HideAndClose(0 , procedure begin - FFrameInfo.Close; FFrameInfo := nil; end ); - end; end ); @@ -82,28 +81,34 @@ procedure TMainForm.ShowNext; MainData.STEP_COUNT: LStandName := 'wizard_end'; end; - FFrameInfo := TFrameInfo( FrameStand1.New(nil, LStandName) ); + FFrameInfo := TFrameInfo( FrameStand1.New(nil, LStandName) ); // this cast should not be necessary a T has a TFrame type constraint FFrameInfo.Show(); end; procedure TMainForm.ShowStep; begin if Assigned(FFrameInfo) then - begin - FFrameInfo.Hide(0 - , procedure + FFrameInfo.HideAndClose(0, + procedure begin - FFrameInfo.Close; - FFrameInfo := nil; - ShowNext; end - ); - end + ) else ShowNext; end; +procedure TMainForm.FrameStand1BeforeStartAnimation( + const ASender: TSubjectStand; const ASubjectInfo: TSubjectInfo; + const AAnimation: TAnimation); +begin + if AAnimation.StyleName = 'OnShow_SlideIn' then + (AAnimation as TFloatAnimation).StartValue := ASubjectInfo.Stand.Width + else if AAnimation.StyleName = 'OnShow_SlideOut' then + (AAnimation as TFloatAnimation).StopValue := ASubjectInfo.Stand.Width; + +end; + procedure TMainForm.StepButtonClick(Sender: TObject); begin MainData.Next; diff --git a/demos/Wizard/Simple/WizardSimpleProject.deployproj b/demos/Wizard/Simple/WizardSimpleProject.deployproj index 88ef960..499c0e9 100644 --- a/demos/Wizard/Simple/WizardSimpleProject.deployproj +++ b/demos/Wizard/Simple/WizardSimpleProject.deployproj @@ -4,14 +4,11 @@ 12 - - + 94NAY0R89N + 94NAY0R89N - - - - + WizardSimpleProject\ @@ -24,56 +21,54 @@ True - - - - WizardSimpleProject.app\Contents\MacOS\ - libcgsqlite3.dylib - DependencyModule + + + + WizardSimpleProject\res\drawable-large\ + splash_image.png + Android_SplashImage640 1 True - - WizardSimpleProject.app\Contents\MacOS\ - libcgunwind.1.0.dylib - DependencyModule + + WizardSimpleProject\res\drawable-large\ + splash_image.png + Android_SplashImage640 1 True - - - - WizardSimpleProject\res\values\ - styles.xml - AndroidSplashStyles - 1 + + WizardSimpleProject\classes\ + WizardSimpleProject.classes + AndroidClasses + 64 True - - WizardSimpleProject\res\drawable-ldpi\ - ic_launcher.png - Android_LauncherIcon36 + + WizardSimpleProject\res\values\ + strings.xml + Android_Strings 1 True - - WizardSimpleProject\res\drawable-small\ - splash_image.png - Android_SplashImage426 + + WizardSimpleProject\res\values\ + colors.xml + Android_Colors 1 True - + WizardSimpleProject\res\drawable\ splash_image_def.xml AndroidSplashImageDef @@ -82,34 +77,61 @@ True - - WizardSimpleProject\res\drawable-xlarge\ + + WizardSimpleProject\res\values\ + styles.xml + AndroidSplashStyles + 1 + + + True + + + WizardSimpleProject\res\drawable-hdpi\ + ic_launcher.png + Android_LauncherIcon72 + 1 + + + True + + + WizardSimpleProject\res\drawable-normal\ splash_image.png - Android_SplashImage960 + Android_SplashImage470 1 True - - WizardSimpleProject\res\drawable-mdpi\ + + WizardSimpleProject\library\lib\armeabi-v7a\ + gdbserver + AndroidGDBServer + 1 + + + True + + + WizardSimpleProject\res\drawable-xxhdpi\ ic_notification.png - Android_NotificationIcon24 + Android_NotificationIcon72 1 True - - WizardSimpleProject\library\lib\armeabi\ - libWizardSimpleProject.so - AndroidLibnativeArmeabiFile + + WizardSimpleProject\library\lib\armeabi-v7a\ + gdbserver + AndroidGDBServer 1 True - + WizardSimpleProject\res\drawable-hdpi\ ic_launcher.png Android_LauncherIcon72 @@ -118,19 +140,19 @@ True - - WizardSimpleProject\library\lib\armeabi-v7a\ - gdbserver - AndroidGDBServer + + WizardSimpleProject\res\drawable-normal\ + splash_image.png + Android_SplashImage470 1 True - - WizardSimpleProject\res\drawable-hdpi\ + + WizardSimpleProject\res\drawable-xxhdpi\ ic_notification.png - Android_NotificationIcon36 + Android_NotificationIcon72 1 @@ -145,10 +167,19 @@ True - - WizardSimpleProject\res\drawable-xhdpi\ + + WizardSimpleProject\res\values\ + strings.xml + Android_Strings + 1 + + + True + + + WizardSimpleProject\res\drawable-mdpi\ ic_launcher.png - Android_LauncherIcon96 + Android_LauncherIcon48 1 @@ -163,80 +194,124 @@ True - - WizardSimpleProject\library\lib\mips\ - libWizardSimpleProject.so - AndroidLibnativeMipsFile + + WizardSimpleProject\res\drawable-xxxhdpi\ + ic_launcher.png + Android_LauncherIcon192 1 True - - WizardSimpleProject\res\drawable-normal\ - splash_image.png - Android_SplashImage470 + + WizardSimpleProject\classes\ + WizardSimpleProject.classes + AndroidClasses + 64 + + + True + + + WizardSimpleProject\res\drawable-mdpi\ + ic_launcher.png + Android_LauncherIcon48 1 True - - WizardSimpleProject\library\lib\armeabi-v7a\ - libWizardSimpleProject.so - ProjectOutput + + WizardSimpleProject\res\drawable-xhdpi\ + ic_launcher.png + Android_LauncherIcon96 1 True - True - - WizardSimpleProject\res\values\ - strings.xml - Android_Strings + + WizardSimpleProject\res\drawable-xlarge\ + splash_image.png + Android_SplashImage960 1 True - + + WizardSimpleProject\res\drawable-xhdpi\ + ic_launcher.png + Android_LauncherIcon96 + 1 + + + True + + WizardSimpleProject\res\drawable-xxhdpi\ - ic_notification.png - Android_NotificationIcon72 + ic_launcher.png + Android_LauncherIcon144 1 True - - WizardSimpleProject\res\drawable-large\ + + WizardSimpleProject\ + AndroidManifest.xml + ProjectAndroidManifest + 1 + + + True + + + WizardSimpleProject\res\drawable-xxxhdpi\ + ic_launcher.png + Android_LauncherIcon192 + 1 + + + True + + + WizardSimpleProject\res\drawable-xlarge\ splash_image.png - Android_SplashImage640 + Android_SplashImage960 1 True - + WizardSimpleProject\res\values\ - colors.xml - Android_Colors + styles.xml + AndroidSplashStyles 1 True - - WizardSimpleProject\res\drawable-xxxhdpi\ + + WizardSimpleProject\res\drawable-xhdpi\ ic_notification.png - Android_NotificationIcon96 + Android_NotificationIcon48 1 True - + + WizardSimpleProject\res\values-v21\ + styles.xml + AndroidSplashStylesV21 + 1 + + + True + + WizardSimpleProject\res\drawable-xhdpi\ ic_notification.png Android_NotificationIcon48 @@ -254,53 +329,182 @@ True - - WizardSimpleProject\classes\ - classes.dex - AndroidClassesDexFile + + WizardSimpleProject\library\lib\armeabi\ + libWizardSimpleProject.so + AndroidLibnativeArmeabiFile 1 True - + + WizardSimpleProject\library\lib\armeabi\ + libWizardSimpleProject.so + AndroidLibnativeArmeabiFile + 1 + + + True + + + WizardSimpleProject\library\lib\mips\ + libWizardSimpleProject.so + AndroidLibnativeMipsFile + 1 + + + True + + WizardSimpleProject\res\drawable-mdpi\ + ic_notification.png + Android_NotificationIcon24 + 1 + + + True + + + WizardSimpleProject\library\lib\armeabi-v7a\ + libWizardSimpleProject.so + ProjectOutput + 1 + + + True + True + + + WizardSimpleProject\res\drawable-small\ + splash_image.png + Android_SplashImage426 + 1 + + + True + + + WizardSimpleProject\res\drawable-ldpi\ ic_launcher.png - Android_LauncherIcon48 + Android_LauncherIcon36 1 True - - - - - WizardSimpleProject.app\ - libPCRE.dylib - DependencyModule + + WizardSimpleProject\library\lib\mips\ + libWizardSimpleProject.so + AndroidLibnativeMipsFile 1 True - - WizardSimpleProject.app\ - libcgunwind.1.0.dylib - DependencyModule + + WizardSimpleProject\res\drawable-ldpi\ + ic_launcher.png + Android_LauncherIcon36 + 1 + + + True + + + WizardSimpleProject\res\drawable-hdpi\ + ic_notification.png + Android_NotificationIcon36 + 1 + + + True + + + WizardSimpleProject\res\drawable-small\ + splash_image.png + Android_SplashImage426 + 1 + + + True + + + WizardSimpleProject\res\drawable-mdpi\ + ic_notification.png + Android_NotificationIcon24 + 1 + + + True + + + WizardSimpleProject\res\drawable-hdpi\ + ic_notification.png + Android_NotificationIcon36 + 1 + + + True + + + WizardSimpleProject\res\values\ + colors.xml + Android_Colors 1 True - - WizardSimpleProject.app\ - libpcre.dylib - DependencyModule + + WizardSimpleProject\res\drawable\ + splash_image_def.xml + AndroidSplashImageDef + 1 + + + True + + + WizardSimpleProject\library\lib\armeabi-v7a\ + libWizardSimpleProject.so + ProjectOutput + 1 + + + True + True + + + WizardSimpleProject\classes\ + classes.dex + AndroidClassesDexFile + 1 + + + True + + + WizardSimpleProject\res\drawable-xxxhdpi\ + ic_notification.png + Android_NotificationIcon96 + 1 + + + True + + + WizardSimpleProject\res\drawable-xxxhdpi\ + ic_notification.png + Android_NotificationIcon96 1 True + + + + diff --git a/demos/Wizard/Simple/WizardSimpleProject.dproj b/demos/Wizard/Simple/WizardSimpleProject.dproj index b7e2d81..a775931 100644 --- a/demos/Wizard/Simple/WizardSimpleProject.dproj +++ b/demos/Wizard/Simple/WizardSimpleProject.dproj @@ -5,7 +5,7 @@ FMX WizardSimpleProject.dpr True - Release + Debug Win32 168979 Application @@ -53,6 +53,12 @@ Base true + + true + Cfg_1 + true + true + true Cfg_1 @@ -237,6 +243,9 @@ true true + + C:\Sviluppo\Librerie\TFrameStand\source\;$(Debugger_DebugSourcePath) + false true @@ -331,31 +340,30 @@ true - + - ic_notification.png + splash_image.png true - + + 64 true - + - libWizardSimpleProject.so true - - + + true - + - ic_notification.png true @@ -364,59 +372,52 @@ true - + - libWizardSimpleProject.so + ic_launcher.png true - + splash_image.png true - + - ic_launcher.png true - + - splash_image.png + ic_notification.png true - + - ic_launcher.png true - + - ic_notification.png + ic_launcher.png true - + + splash_image.png true - + ic_notification.png true - - - libWizardSimpleProject.so - true - - ic_launcher.png @@ -428,13 +429,14 @@ true - - + + true - + + ic_launcher.png true @@ -444,7 +446,19 @@ true - + + + ic_launcher.png + true + + + + + 64 + true + + + ic_launcher.png true @@ -462,19 +476,32 @@ true - + + ic_launcher.png true - + + ic_launcher.png true - - - WizardSimpleProject.exe + + + true + + + + + ic_launcher.png + true + + + + + splash_image.png true @@ -488,6 +515,144 @@ true + + + true + + + + + ic_notification.png + true + + + + + styles.xml + true + + + + + ic_notification.png + true + + + + + true + + + + + libWizardSimpleProject.so + true + + + + + libWizardSimpleProject.so + true + + + + + libWizardSimpleProject.so + true + + + + + true + + + + + ic_notification.png + true + + + + + libWizardSimpleProject.so + true + + + + + splash_image.png + true + + + + + ic_launcher.png + true + + + + + libWizardSimpleProject.so + true + + + + + ic_launcher.png + true + + + + + ic_notification.png + true + + + + + splash_image.png + true + + + + + ic_notification.png + true + + + + + ic_notification.png + true + + + + + true + + + + + true + + + + + true + + + + + WizardSimpleProject.exe + true + + + + + libWizardSimpleProject.so + true + + classes.dex @@ -500,6 +665,12 @@ true + + + ic_notification.png + true + + 1 diff --git a/demos/lightbox/LightBoxFrameStand.dproj b/demos/lightbox/LightBoxFrameStand.dproj index dc0ff46..909f38a 100755 --- a/demos/lightbox/LightBoxFrameStand.dproj +++ b/demos/lightbox/LightBoxFrameStand.dproj @@ -372,6 +372,7 @@ true + libLightBoxFrameStand.so @@ -414,15 +415,14 @@ true + + splash_image.png true - - - ic_launcher.png