Page 1 of 1

Designer for Pres3D

Posted: Wed Nov 17, 2010 9:54 am
by Kukulkan
Hi,

As it seems that nobody liked to write a designer tool for the open source presenting tool Pres3D (http://www.purebasic.fr/english/viewtop ... 14&t=43936), I try'd to write my own. Here is the result. The designer still has some limitations:

- no presentation settings. Currently, only 1024x768 windowed presentations with white background.
- some bugs
- maximum 6 pages (I plan to make this a shareware)

Plans for the future:
- simple effect-browser with pre-defined effects (one click)
- settings-window to edit the presentation settings
- resizing window (allow you to resize the editor/presentation)
- scaling-function (to allow you to scale all elements of the presentation by one factor)
- effect preview while editing (somewhat difficult)
- compile the complete presentation into one executable using AppPack (http://www.purebasic.fr/english/viewtop ... 14&t=34025)

Download (in a ZIP file):
http://www.x-beliebig.info/Download/Pres3D_Designer.zip

Simply extract the content into one folder and run the Pres3D_Designer.exe...

Im interested in your experiences using Windows Vista and Windows 7, too...

Kukulkan

Re: Designer for Pres3D

Posted: Wed Nov 17, 2010 10:43 am
by c4s
Wasn't there someone in the (german) forum who already posted a small designer example?!

Anyway, yours looks and works pretty good except that all gadgets take really long to be redrawn. It probably takes more than 3 seconds... WaitWindowEvent() missing, no threads, wrong timing?

Re: Designer for Pres3D

Posted: Wed Nov 17, 2010 12:16 pm
by Kukulkan
Hi,

The version from yesterday had speed problems. The current version (from today, about three hours ago) works fast as light here? Do you reloaded the newest version today?

Yes, someone made a first version. But the project made no progress and I have had my own ideas about the layout and handling. As the presentation engine is open source, it is absolutely ok to have more than one designer. Upon this, the people will have the choice to choose between my shareware version or, maybe, another freeware/open source designer :)

Kukulkan

Re: Designer for Pres3D

Posted: Wed Nov 17, 2010 12:37 pm
by c4s
Here are some ideas:
  • If an image is in the same directory as the xml file an error occures - "not able to copy to presentation folder"
  • Just downloaded the latest version and it is as yesterday: 90% cpu usage when the window is active, otherwise nothing (I have a single cpu and Windows XP 32bit)
  • "About" shouldn't be in the "File" menu
  • Preview of nothing shows nothing...so no preview needed in this case
  • When I place an image above some text I'm not able to edit the text anymore -> make it possible to select each element in a list as well
  • Add tooltips for every gadget on the effect window
  • Great: "Photoshop-like position matching preview", but this just works horizontally? maybe you could also make this a little sticky
  • Format the resulting xml for better readability: new line, indentation

Re: Designer for Pres3D

Posted: Wed Nov 17, 2010 1:27 pm
by Kukulkan
Hi,
If an image is in the same directory as the xml file an error occures - "not able to copy to presentation folder"
Just downloaded the latest version and it is as yesterday: 90% cpu usage when the window is active, otherwise nothing (I have a single cpu and Windows XP 32bit)
Both problems are fixed in the current download version 4 hours ago. I downloaded and testet: 0% CPU if I do nothing. Adding images from presentation-directory no longer triggers this error. Are you shure you use the latest version?

The other tips are great. Thank you.

Kukulkan

Re: Designer for Pres3D

Posted: Wed Nov 17, 2010 1:48 pm
by c4s
Kukulkan wrote:Both problems are fixed in the current download version 4 hours ago. I downloaded and testet: 0% CPU if I do nothing. Adding images from presentation-directory no longer triggers this error. Are you shure you use the latest version
No. :lol: I just checked it again and everything seems fine!

Re: Designer for Pres3D

Posted: Wed Nov 17, 2010 6:10 pm
by Kukulkan
Updated!

New:
- presentation properties can get changed
- resizing allowed
- delay can get changed in multiple dialogs (text, image, effect in)
- some bugfixes
- exported xml is well formatted
- better GUI response

Please use the link in the first post to download!

Kukulkan

Re: Designer for Pres3D

Posted: Thu Nov 18, 2010 7:33 am
by dige
Amazing :shock: Great job so far!
How about a ListIconGadget() with bigger Icons for a better
page-preview?

Re: Designer for Pres3D

Posted: Thu Nov 18, 2010 2:20 pm
by eriansa
Indeed, great program with great potential!
Especially that explosion effect is marvellous.

You should consider making it a full kiosk sytem that could be managed remotely.
(there's surely a market for this type of soft)

Re: Designer for Pres3D

Posted: Thu Nov 18, 2010 8:46 pm
by Michael Vogel
Choosing Full Screen/Windowed mode in preferences does not change the preview mode, maybe the presenter source could be changed to allow this...

Init part...

Code: Select all

    Global Temp.s
    
    Structure Pointer
        value.i
    EndStructure

    #Override=$1000000
Procedure SetValue(*x.Pointer,value.i)

	If *x\value&#Override=0
		*x\value=value
	Else
		*x\value!#Override
	EndIf

EndProcedure
Procedure.i ClearOverride(*x.Pointer)
	
	If *x\value&#Override=0
		ProcedureReturn #False
	Else
		*x\value!#Override
		ProcedureReturn #True
	EndIf
	
EndProcedure

Procedure.i Min(a.i,b.i)

	If a>b
		ProcedureReturn b
	Else
		ProcedureReturn a
	EndIf

EndProcedure
Check Parameter:

Code: Select all

n=CountProgramParameters()
If n
    While n
        n-1
        Temp=ProgramParameter(n)
        If FindString("-/",Left(Temp,1),1)
            Select PeekA(@Temp+1)|$20;    lower case
            Case 'f';    force full screen
                XML_Settings\ScreenFull=#True|#Override
                
            Case 'w';    force window
                XML_Settings\ScreenFull=#False|#Override
                
            EndSelect

        Else
            Filename$=Temp
        EndIf
    Wend

Else
    Filename$ = "slide.xml"
EndIf
Some more changes...

Code: Select all

; defaults
    ;XML_Settings\ScreenFull       = 0
    XML_Settings\ScreenWidth      = Min(800,GetSystemMetrics_(#SM_CXFULLSCREEN))
    XML_Settings\ScreenHeight     = Min(600,GetSystemMetrics_(#SM_CYFULLSCREEN))
    XML_Settings\BackgroundColor  = RGB(255,255,255)
    ; read values (if given)
    While *ChildNode <> 0
        If *ChildNode <> 0 And XMLNodeType(*ChildNode) = #PB_XML_Normal
            ; node found
            NodeName.s = GetXMLNodeName(*ChildNode)
            If NodeName.s = "settings"
                If ClearOverride(@XML_Settings\ScreenFull)=0
                    XML_Settings\ScreenFull=Val(GetXMLAttribute(*ChildNode, "screenfull"))
                    XML_Settings\ScreenWidth  = Val(GetXMLAttribute(*ChildNode, "screenwidth"))
                    XML_Settings\ScreenHeight = Val(GetXMLAttribute(*ChildNode, "screenheight"))
                EndIf
It also be fine to let some space for more function buttons (load, save etc.) and to keep the source text clean to implement easily (context sensitive) popup menus later on, which allow to have quick access to all settings by right clicking an object.

Michael

Re: Designer for Pres3D

Posted: Fri Nov 19, 2010 1:34 am
by electrochrisso
I had a little play with your Designer and have to say it is quite good. :)
Thank You...

Re: Designer for Pres3D

Posted: Fri Nov 19, 2010 7:46 am
by Kukulkan
Hi Michael,

thank you for your reply.
Choosing Full Screen/Windowed mode in preferences does not change the preview mode, maybe the presenter source could be changed to allow this...
It's not a bug, it's a feature :-) To preview the page, I export a xml with one page and explicitly do not set fullscreen. This is, because in two of my environments this causes heavy problems. Maybe I make this an option in a later version. Currently, the windows mode works better for me.

The current Pres3D engine source works very well (even with fullscreen). No changes needed so far...

Kukulkan