Designer for Pres3D

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Kukulkan
Addict
Addict
Posts: 1396
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

Designer for Pres3D

Post 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
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: Designer for Pres3D

Post 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?
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
User avatar
Kukulkan
Addict
Addict
Posts: 1396
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

Re: Designer for Pres3D

Post 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
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: Designer for Pres3D

Post 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
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
User avatar
Kukulkan
Addict
Addict
Posts: 1396
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

Re: Designer for Pres3D

Post 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
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: Designer for Pres3D

Post 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!
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
User avatar
Kukulkan
Addict
Addict
Posts: 1396
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

Re: Designer for Pres3D

Post 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
dige
Addict
Addict
Posts: 1406
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Re: Designer for Pres3D

Post by dige »

Amazing :shock: Great job so far!
How about a ListIconGadget() with bigger Icons for a better
page-preview?
"Daddy, I'll run faster, then it is not so far..."
eriansa
Enthusiast
Enthusiast
Posts: 277
Joined: Wed Mar 17, 2004 12:31 am
Contact:

Re: Designer for Pres3D

Post 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)
User avatar
Michael Vogel
Addict
Addict
Posts: 2807
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Re: Designer for Pres3D

Post 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
User avatar
electrochrisso
Addict
Addict
Posts: 989
Joined: Mon May 14, 2007 2:13 am
Location: Darling River

Re: Designer for Pres3D

Post by electrochrisso »

I had a little play with your Designer and have to say it is quite good. :)
Thank You...
PureBasic! Purely the best 8)
User avatar
Kukulkan
Addict
Addict
Posts: 1396
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

Re: Designer for Pres3D

Post 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
Post Reply