*/
-#include "session_import_dialog.h"
+#include <gtkmm/messagedialog.h>
+#include <gtkmm/stock.h>
#include "pbd/failed_constructor.h"
#include "ardour/location_importer.h"
#include "ardour/tempo_map_importer.h"
-#include <gtkmm2ext/utils.h>
+#include "gtkmm2ext/utils.h"
+#include "widgets/prompter.h"
#include "gui_thread.h"
-#include "prompter.h"
-#include "i18n.h"
+#include "session_import_dialog.h"
+
+#include "pbd/i18n.h"
using namespace std;
using namespace ARDOUR;
{
if (_session) {
if (tree.read (filename)) {
- error << string_compose (_("Cannot load XML for session from %1"), filename) << endmsg;
- return;
- }
+ error << string_compose (_("Cannot load XML for session from %1"), filename) << endmsg;
+ return;
+ }
boost::shared_ptr<AudioRegionImportHandler> region_handler (new AudioRegionImportHandler (tree, *_session));
boost::shared_ptr<AudioPlaylistImportHandler> pl_handler (new AudioPlaylistImportHandler (tree, *_session, *region_handler));
std::pair<bool, string>
SessionImportDialog::open_rename_dialog (string text, string name)
{
- ArdourPrompter prompter(true);
+ ArdourWidgets::Prompter prompter(true);
string new_name;
prompter.set_name ("Prompter");