[Summary] Progressing Tracks specific export dialog.

This commit is contained in:
VKamyshniy 2015-01-15 10:51:52 +02:00
parent 9fc0935c4b
commit 2e35efb61a
6 changed files with 204 additions and 0 deletions

View file

@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8"?>
<Dialog title="Tracks Live" resizeable="False" CACHEIT="false">
<style name="generic_control"
winfont ="Arial Bold 12"
macfont ="Helvetica Bold 12"
fgnormal="#6F6F6F"
bgnormal="#6C6C6C"
fgactive="#BFBFBF"
bgactive="#454545"
fghover="#CCCCCC"
bghover="#898989"/>
<style name="generic_button"
style="generic_control"
winfont ="Arial Bold 12"
macfont ="Helvetica Bold 12"
bgnormal="#CACAC5"
fgactive="#EDECE8"
bgactive="#6D6E72"
width="80"
height="22"/>
<EventBox bgnormal="#EDECE8">
<VBox borderwidth="10"
spacing="10">
<Label style="generic_control"
text="Export content of selected tracks as new file"/>
<HBox spacing="21">
<VBox>
<Label style="generic_control"
text="Format"/>
</VBox>
<VBox>
<Label style="generic_control"
text="Depth"/>
</VBox>
<VBox>
<Label style="generic_control"
text="Sample Rate"/>
</VBox>
<VBox>
<Label style="generic_control"
text="Dither"/>
</VBox>
<VBox>
<Label style="generic_control"
text="Normalize"/>
</VBox>
</HBox>
<HBox spacing="10">
<Button id="cancel_button"
style="generic_button"
box.pack="end"
text="Cancel"/>
<Button id="export_button"
style="generic_button"
box.pack="end"
text="Export"/>
</HBox>
</VBox>
</EventBox>
</Dialog>

View file

@ -0,0 +1,28 @@
/*
Copyright (C) 2014 Waves Audio Ltd.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include "waves_export_dialog.h"
WavesExportDialog::WavesExportDialog (const std::string &title, ARDOUR::ExportProfileManager::ExportType type)
: WavesDialog ("waves_export_dialog.xml", true, false )
, _export_button (get_waves_button ("export_button"))
, _cancel_button (get_waves_button ("cancel_button"))
{
set_title (title);
init ();
}

View file

@ -0,0 +1,46 @@
/*
Copyright (C) 2014 Waves Audio Ltd.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __waves_export_dialog_h__
#define __waves_export_dialog_h__
#include "ardour/export_profile_manager.h"
#include "public_editor.h"
#include "export_timespan_selector.h"
#include "export_channel_selector.h"
#include "export_file_notebook.h"
#include "export_preset_selector.h"
#include "soundcloud_export_selector.h"
#include "waves_dialog.h"
class WavesExportDialog : public WavesDialog
{
public:
WavesExportDialog(const std::string &title, ARDOUR::ExportProfileManager::ExportType type);
protected:
WavesButton& _export_button;
WavesButton& _cancel_button;
private:
#include "waves_export_dialog.logic.h"
};
#endif /* __waves_export_dialog_h__ */

View file

@ -0,0 +1,39 @@
/*
Copyright (C) 2014 Waves Audio Ltd.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include "waves_export_dialog.h"
void
WavesExportDialog::init ()
{
_export_button.signal_clicked.connect (sigc::mem_fun (*this, &WavesExportDialog::_on_export_button_clicked));
_cancel_button.signal_clicked.connect (sigc::mem_fun (*this, &WavesExportDialog::_on_export_button_clicked));
}
void
WavesExportDialog::_on_export_button_clicked (WavesButton*)
{
response (Gtk::RESPONSE_OK);
}
void
WavesExportDialog::_on_cancel_button_clicked (WavesButton*)
{
response (Gtk::RESPONSE_CANCEL);
}

View file

@ -0,0 +1,26 @@
/*
Copyright (C) 2014 Waves Audio Ltd.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
//class WavesExportDialog : public WavesDialog
//{
private:
void init ();
void _on_export_button_clicked (WavesButton*);
void _on_cancel_button_clicked (WavesButton*);
//};

View file

@ -28,6 +28,8 @@ path_prefix = 'gtk2_ardour/'
gtk2_ardour_sources = [
'mixer_bridge_view.cc',
'waves_export_dialog.cc',
'waves_export_dialog.logic.cc',
'waves_track_color_dialog.cc',
'waves_track_color_dialog.logic.cc',
'marker_inspector_dialog.cc',