Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

filedialog.cpp

/**
 * Implementation of the file dialog interfaces defined in filedialog.h
 *
 * Authors:
 *   Bob Jamison
 *   Other dudes from The Inkscape Organization
 *
 * Copyright (C) 2004-2007 Bob Jamison
 * Copyright (C) 2006 Johan Engelen <johan@shouraizou.nl>
 * Copyright (C) 2004-2007 The Inkscape Organization
 *
 * Released under GNU GPL, read the file 'COPYING' for more information
 */

#include "filedialog.h"
#include "filedialogimpl-gtkmm.h"

#include "gc-core.h"
#include <dialogs/dialog-events.h>

namespace Inkscape
{
namespace UI
{
namespace Dialog
{

/*#########################################################################
### F I L E    O P E N
#########################################################################*/

/**
 * Public factory.  Called by file.cpp, among others.
 */
00035 FileOpenDialog *FileOpenDialog::create(Gtk::Window &parentWindow,
                                           const Glib::ustring &path,
                                       FileDialogType fileTypes,
                                       const Glib::ustring &title)
{
    FileOpenDialog *dialog = new FileOpenDialogImplGtk(parentWindow, path, fileTypes, title);
    return dialog;
}

//########################################################################
//# F I L E    S A V E
//########################################################################

/**
 * Public factory method.  Used in file.cpp
 */
00051 FileSaveDialog *FileSaveDialog::create(Gtk::Window& parentWindow, 
                                                         const Glib::ustring &path,
                                       FileDialogType fileTypes,
                                       const Glib::ustring &title,
                                       const Glib::ustring &default_key)
{
    FileSaveDialog *dialog = new FileSaveDialogImplGtk(parentWindow, path, fileTypes, title, default_key);
    return dialog;
}

//########################################################################
//# F I L E     E X P O R T
//########################################################################

/**
 * Public factory method.  Used in file.cpp
 */
00068  FileExportDialog *FileExportDialog::create(Gtk::Window& parentWindow, 
                                                               const Glib::ustring &path,
                                           FileDialogType fileTypes,
                                           const Glib::ustring &title,
                                           const Glib::ustring &default_key)
{
    FileExportDialog *dialog = new FileExportDialogImpl(parentWindow, path, fileTypes, title, default_key);
    return dialog;
}


} //namespace Dialog
} //namespace UI
} //namespace Inkscape



/*
  Local Variables:
  mode:c++
  c-file-style:"stroustrup"
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
  indent-tabs-mode:nil
  fill-column:99
  End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :

Generated by  Doxygen 1.6.0   Back to index