1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
|
// GUI_Export - Export interface of MediaInfo
// Copyright (C) 2002-2012 MediaArea.net SARL, Info@MediaArea.net
//
// This program is free software: you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 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 Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//---------------------------------------------------------------------------
#ifndef GUI_ExportH
#define GUI_ExportH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>
#include <ComCtrls.hpp>
#include <StdCtrls.hpp>
#include <Dialogs.hpp>
#include "Dialogs.hpp"
#ifdef MEDIAINFO_DLL_RUNTIME
#include "MediaInfoDLL/MediaInfoDLL.h"
#define MediaInfoNameSpace MediaInfoDLL
#elif defined MEDIAINFO_DLL_STATIC
#include "MediaInfoDLL/MediaInfoDLL_Static.h"
#define MediaInfoNameSpace MediaInfoDLL
#else
#include "MediaInfo/MediaInfoList.h"
#define MediaInfoNameSpace MediaInfoLib
#endif
#include <ZenLib/Ztring.h>
//---------------------------------------------------------------------------
class TExportF : public TForm
{
__published: // IDE-managed Components
TButton *Cancel;
TButton *OK;
TGroupBox *Export_Choose;
TPageControl *Export;
TTabSheet *Export_CSV;
TTabSheet *Export_Text;
TTabSheet *Export_HTML;
TTabSheet *Export_XML;
TTabSheet *Export_MPEG7;
TTabSheet *Export_PBCore;
TTabSheet *Export_reVTMD;
TTabSheet *Export_Custom;
TGroupBox *Name_Choose;
TEdit *Name;
TButton *Name_FileSelect;
TLabel *CSV_Stream_Video_Caption;
TComboBox *CSV_Stream_Video;
TLabel *CSV_Stream_Audio_Caption;
TComboBox *CSV_Stream_Audio;
TLabel *CSV_Stream_Text_Caption;
TComboBox *CSV_Stream_Text;
TLabel *CSV_Stream_Chapters_Caption;
TComboBox *CSV_Stream_Chapters;
TLabel *CSV_Stream_Video_Warning;
TLabel *CSV_Stream_Audio_Warning;
TLabel *CSV_Stream_Text_Warning;
TLabel *CSV_Stream_Chapters_Warning;
TCheckBox *Text_Advanced;
TCheckBox *HTML_Advanced;
TLabel *CSV_Quote_Caption;
TLabel *CSV_Separator_Col_Caption;
TComboBox *CSV_Quote;
TComboBox *CSV_Separator_Col;
TLabel *CSV_Separator_Line_Caption;
TComboBox *CSV_Separator_Line;
TCheckBox *CSV_Advanced;
TCheckBox *Custom_One;
TTabSheet *Export_Sheet;
TLabel *Sheet_Quote_Caption;
TComboBox *Sheet_Quote;
TLabel *Sheet_Separator_Col_Caption;
TComboBox *Sheet_Separator_Col;
TLabel *Sheet_Separator_Line_Caption;
TComboBox *Sheet_Separator_Line;
TCheckBox *File_Append;
TLabel *CSV_Decimal_Caption;
TComboBox *CSV_Decimal;
TSaveDialog *SaveDialog1;
TCheckBox *Export_XML_SideCar;
TCheckBox *Export_MPEG7_SideCar;
TCheckBox *Export_PBCore_SideCar;
TCheckBox *Export_reVTMD_SideCar;
void __fastcall Name_FileSelectClick(TObject *Sender);
void __fastcall ExportChange(TObject *Sender);
void __fastcall OKClick(TObject *Sender);
void __fastcall CSV_Stream_VideoChange(TObject *Sender);
void __fastcall CSV_Stream_AudioChange(TObject *Sender);
void __fastcall CSV_Stream_TextChange(TObject *Sender);
void __fastcall CSV_Stream_ChaptersChange(TObject *Sender);
void __fastcall Export_reVTMD_SideCarClick(TObject *Sender);
void __fastcall Export_XML_SideCarClick(TObject *Sender);
void __fastcall Export_MPEG7_SideCarClick(TObject *Sender);
void __fastcall Export_PBCore_SideCarClick(TObject *Sender);
private: // User declarations
void Name_Adapt();
void Export_Run();
void CSV_Stream_Change (TComboBox* Box, TLabel* Label, MediaInfoNameSpace::stream_t Stream);
void GUI_Configure();
MediaInfoNameSpace::MediaInfoList *ToExport;
public: // User declarations
__fastcall TExportF(TComponent* Owner);
int Run(MediaInfoNameSpace::MediaInfoList &MI, ZenLib::Ztring DefaultFolder);
};
//---------------------------------------------------------------------------
extern PACKAGE TExportF *ExportF;
//---------------------------------------------------------------------------
#endif
|