summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBob Jamison <ishmalius@gmail.com>2006-07-16 17:56:58 +0000
committerishmal <ishmal@users.sourceforge.net>2006-07-16 17:56:58 +0000
commitf40a240335c5375d1c95fac4c75445dc47e05ec8 (patch)
tree13501ff2bd9a20702d10ee259f45c43ef5d343ab /src
parentLayout algorithm is now applied to each connected component in the (diff)
downloadinkscape-f40a240335c5375d1c95fac4c75445dc47e05ec8.tar.gz
inkscape-f40a240335c5375d1c95fac4c75445dc47e05ec8.zip
more string cleanup
(bzr r1422)
Diffstat (limited to 'src')
-rw-r--r--src/ui/dialog/filedialog.cpp27
-rw-r--r--src/ui/dialog/filedialog.h40
2 files changed, 41 insertions, 26 deletions
diff --git a/src/ui/dialog/filedialog.cpp b/src/ui/dialog/filedialog.cpp
index e3ebffc63..cb72d17f5 100644
--- a/src/ui/dialog/filedialog.cpp
+++ b/src/ui/dialog/filedialog.cpp
@@ -5,7 +5,7 @@
* 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
*/
@@ -736,9 +736,9 @@ public:
Inkscape::Extension::Extension *getSelectionType();
- gchar *getFilename();
+ Glib::ustring getFilename();
- Glib::SListHandle<Glib::ustring> getFilenames ();
+ std::vector<Glib::ustring> getFilenames ();
protected:
@@ -1073,7 +1073,7 @@ FileOpenDialogImpl::getSelectionType()
/**
* Get the file name chosen by the user. Valid after an [OK]
*/
-gchar *
+Glib::ustring
FileOpenDialogImpl::getFilename (void)
{
return g_strdup(myFilename.c_str());
@@ -1083,9 +1083,10 @@ FileOpenDialogImpl::getFilename (void)
/**
* 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;
}
@@ -1125,7 +1126,7 @@ public:
Inkscape::Extension::Extension *getSelectionType();
- gchar *getFilename();
+ Glib::ustring getFilename();
private:
@@ -1494,10 +1495,10 @@ FileSaveDialogImpl::getSelectionType()
/**
* 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;
}
@@ -1530,7 +1531,7 @@ public:
Inkscape::Extension::Extension *getSelectionType();
- gchar *getFilename();
+ Glib::ustring getFilename();
private:
@@ -1897,13 +1898,15 @@ FileExportDialogImpl::getSelectionType()
/**
* 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
diff --git a/src/ui/dialog/filedialog.h b/src/ui/dialog/filedialog.h
index c84a6a794..2f0bdfb8c 100644
--- a/src/ui/dialog/filedialog.h
+++ b/src/ui/dialog/filedialog.h
@@ -1,20 +1,32 @@
#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
+{
/**
@@ -90,9 +102,9 @@ public:
*/
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
@@ -152,7 +164,7 @@ public:
*/
virtual Inkscape::Extension::Extension * getSelectionType() = 0;
- virtual gchar * getFilename () =0;
+ virtual Glib::ustring getFilename () =0;
}; //FileSaveDialog
@@ -212,7 +224,7 @@ public:
*/
virtual Inkscape::Extension::Extension * getSelectionType() = 0;
- virtual gchar * getFilename () =0;
+ virtual Glib::ustring getFilename () =0;
}; //FileSaveDialog