00001 /***************************************************************************** 00002 * mediainfo.hpp : Information about a stream 00003 **************************************************************************** 00004 * Copyright (C) 2006-2007 the VideoLAN team 00005 * $Id: 469ae6718876c75c23c990f975a2f2e9b5736974 $ 00006 * 00007 * Authors: Clément Stenac <zorglub@videolan.org> 00008 * Jean-Baptiste Kempf <jb@videolan.org> 00009 * 00010 * This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License 00021 * along with this program; if not, write to the Free Software 00022 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. 00023 ******************************************************************************/ 00024 00025 #ifndef QVLC_MEDIAINFO_DIALOG_H_ 00026 #define QVLC_MEDIAINFO_DIALOG_H_ 1 00027 00028 #include "util/qvlcframe.hpp" 00029 #include "components/info_panels.hpp" 00030 #include "util/singleton.hpp" 00031 00032 class QTabWidget; 00033 00034 class MediaInfoDialog : public QVLCFrame, public Singleton<MediaInfoDialog> 00035 { 00036 Q_OBJECT 00037 public: 00038 MediaInfoDialog( intf_thread_t *, 00039 input_item_t * input = NULL ); 00040 00041 void showTab( int ); 00042 #if 0 00043 void setInput( input_item_t * ); 00044 #endif 00045 00046 private: 00047 virtual ~MediaInfoDialog(); 00048 00049 bool isMainInputInfo; 00050 00051 QTabWidget *infoTabW; 00052 00053 InputStatsPanel *ISP; 00054 MetaPanel *MP; 00055 InfoPanel *IP; 00056 ExtraMetaPanel *EMP; 00057 00058 QPushButton *saveMetaButton; 00059 00060 private slots: 00061 void updateAllTabs( input_item_t * ); 00062 void clearAllTabs(); 00063 00064 virtual void close(); 00065 00066 void saveMeta(); 00067 void updateButtons( int i_tab ); 00068 00069 friend class Singleton<MediaInfoDialog>; 00070 }; 00071 00072 #endif
1.5.6