summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6931de4)
raw | patch | inline | side by side (parent: 6931de4)
author | ishmal <ishmal@users.sourceforge.net> | |
Sun, 16 Jul 2006 17:56:58 +0000 (17:56 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Sun, 16 Jul 2006 17:56:58 +0000 (17:56 +0000) |
src/ui/dialog/filedialog.cpp | patch | blob | history | |
src/ui/dialog/filedialog.h | patch | blob | history |
index e3ebffc632bc8eabc0d5b6572812493352aca8c2..cb72d17f5e7382b175a2a3ded0e165b9bf45a868 100644 (file)
* Bob Jamison
* Other dudes from The Inkscape Organization
*
- * Copyright (C) 2004 The Inkscape Organization
+ * Copyright (C) 2004-2006 The Inkscape Organization
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
Inkscape::Extension::Extension *getSelectionType();
- gchar *getFilename();
+ Glib::ustring getFilename();
- Glib::SListHandle<Glib::ustring> getFilenames ();
+ std::vector<Glib::ustring> getFilenames ();
protected:
/**
* Get the file name chosen by the user. Valid after an [OK]
*/
-gchar *
+Glib::ustring
FileOpenDialogImpl::getFilename (void)
{
return g_strdup(myFilename.c_str());
/**
* To Get Multiple filenames selected at-once.
*/
-Glib::SListHandle<Glib::ustring>FileOpenDialogImpl::getFilenames()
+std::vector<Glib::ustring>FileOpenDialogImpl::getFilenames()
{
- return get_filenames();
+ std::vector<Glib::ustring> result = get_filenames();
+ return result;
}
Inkscape::Extension::Extension *getSelectionType();
- gchar *getFilename();
+ Glib::ustring getFilename();
private:
/**
* Get the file name chosen by the user. Valid after an [OK]
*/
-gchar *
+Glib::ustring
FileSaveDialogImpl::getFilename()
{
- return g_strdup(myFilename.c_str());
+ return myFilename;
}
Inkscape::Extension::Extension *getSelectionType();
- gchar *getFilename();
+ Glib::ustring getFilename();
private:
/**
* Get the file name chosen by the user. Valid after an [OK]
*/
-gchar *
+Glib::ustring
FileExportDialogImpl::getFilename()
{
- return g_strdup(myFilename.c_str());
+ return myFilename;
}
+
+
} //namespace Dialog
} //namespace UI
} //namespace Inkscape
index c84a6a79463a9ef2d64263c75b0688f01d98a369..2f0bdfb8c8a4dae20cd142cd16112d981ad06bff 100644 (file)
#ifndef __FILE_DIALOG_H__
#define __FILE_DIALOG_H__
+/**
+ * Defines the FileOpenDialog, FileSaveDialog, and FileExportDialog
+ * and their supporting classes.
+ *
+ * Authors:
+ * Bob Jamison <rwjj@earthlink.net>
+ * Inkscape Guys
+ *
+ * Copyright (C) 2004-2006, Inkscape Authors
+ *
+ * Released under GNU GPL, read the file 'COPYING' for more information
+ */
+
+#include <glibmm.h>
+#include <vector>
-/** \file Defines classes FileOpenDialog, FileSaveDialog,
- * and enums FileDialogType, FileDialogSelectionType. */
-#include <glib/gtypes.h>
-#include <glibmm/slisthandle.h>
-namespace Inkscape {
+class Inkscape::Extension::Extension;
-namespace Extension {
-class Extension;
-}
-namespace UI {
-namespace Dialog {
+namespace Inkscape
+{
+namespace UI
+{
+namespace Dialog
+{
/**
*/
virtual Inkscape::Extension::Extension * getSelectionType() = 0;
- virtual gchar * getFilename () =0;
+ virtual Glib::ustring getFilename () =0;
- virtual Glib::SListHandle<Glib::ustring> getFilenames () = 0;
+ virtual std::vector<Glib::ustring> getFilenames () = 0;
}; //FileOpenDialog
*/
virtual Inkscape::Extension::Extension * getSelectionType() = 0;
- virtual gchar * getFilename () =0;
+ virtual Glib::ustring getFilename () =0;
}; //FileSaveDialog
*/
virtual Inkscape::Extension::Extension * getSelectionType() = 0;
- virtual gchar * getFilename () =0;
+ virtual Glib::ustring getFilename () =0;
}; //FileSaveDialog