Re: open file
- From: José Alburquerque <jaalburquerque cox net>
- To: Pavel Solntsev <p_solntsev meta ua>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: open file
- Date: Thu, 10 Jun 2010 01:54:40 -0400
On Wed, 2010-06-09 at 23:56 -0500, Pavel Solntsev wrote:
> Hi.
> I am new one on gtkmm. How can i open file for reading from
> FileChooserDialog?
>
> I need get filename from this dialog, read information, and save new file.
Once you've shown the Gtk::FileChooserDialog[1] and have the dialog get
the user input by calling its Gtk::Dialog::run() method, use the
Gtk::FileChooser::get_filename() method to get the filename. To read
and write, use one of the Gio streams[2].
[1]
http://library.gnome.org/devel/gtkmm/unstable/classGtk_1_1FileChooserDialog.html
[2] http://library.gnome.org/devel/glibmm/unstable/group__Streams.html
There are certainly other ways of reading/writing, but others can point
to those also. Finally, there is a good section on dialogs[3] in the
"Programming with gtkmm" online book. Hope that helps.
[3]
http://library.gnome.org/devel/gtkmm-tutorial/unstable/chapter-dialogs.html
--
José
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]