Skip navigation.
Home
The QNX Community Portal

View topic - How to enable file create with Photon FileSelector?

How to enable file create with Photon FileSelector?

Isn't the name clear?

How to enable file create with Photon FileSelector?

Postby lullaby » Mon Mar 18, 2013 11:06 am

Hi all,

How can I implement file creation with Photon Fileselector widget?
I mean, we can select a file. Also if we type the name of the file in the widget,
it will be created automatically. But my current implementation shows only
a tree of directories with filters applied for my files.

Thanks,
Lullaby
lullaby
Active Member
 
Posts: 82
Joined: Fri Jun 15, 2012 6:19 am

Re: How to enable file create with Photon FileSelector?

Postby maschoen » Mon Mar 18, 2013 9:38 pm

I don't understand what your question is.

You surely don't think that the file selector widget will create the file?
If you enter a file not listed, your program would have to retrieve that information and create the file itself, right?
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm

Re: How to enable file create with Photon FileSelector?

Postby lullaby » Tue Mar 19, 2013 4:15 am

Yes. That is what I meant.
If a file is not present, the user will have to create a file by himself and select through Fileselector.
Is there any possibility to create and select the file from Fileselector widget itself?
Something like a 'Save as' dialog in Windows.
I have seen something like FileSelection which has some flags that can be enabled to create path if
the path is not present. But how could I implement file creation with Photon Fileselector?
Is there any possibility?

Thanks,
Lullaby
lullaby
Active Member
 
Posts: 82
Joined: Fri Jun 15, 2012 6:19 am

Re: How to enable file create with Photon FileSelector?

Postby maschoen » Tue Mar 19, 2013 6:48 am

When I said "You surely don't think ..." I meant it.

No the FileSelection widget will not create a file for you, because it has no idea about what goes in that file.
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm


Return to GUI Programming

Who is online

Users browsing this forum: No registered users and 1 guest