FreeburnTrackTextDialog.h
上传用户:cnxinhai
上传日期:2013-08-06
资源大小:265k
文件大小:4k
源码类别:

DVD

开发平台:

Visual C++

  1. /* This is the class description for the Global CD Text Edit Dialog.
  2.  *
  3.  * Copyright (C) 2001, 2002  Adam Schlag
  4.  */
  5. /*
  6.  * FreeBurn Software License
  7.  * (based on the Apache Software License)
  8.  * 
  9.  * Version 1.1
  10.  * 
  11.  * Copyright (c) 2001, 2002 The FreeBurn Project. All rights reserved.
  12.  * 
  13.  * Redistribution and use in source and binary forms, with or without 
  14.  * modification, are permitted provided that the following conditions are met:
  15.  * 
  16.  * 1. Redistributions of source code must retain the above copyright 
  17.  * notice, this list of conditions and the following disclaimer.
  18.  * 
  19.  * 2. Redistributions in binary form must reproduce the above copyright 
  20.  * notice, this list of conditions and the following disclaimer in the 
  21.  * documentation and/or other materials provided with the distribution.
  22.  * 
  23.  * 3. The end-user documentation included with the redistribution, if any, must 
  24.  * include the following acknowledgment:
  25.  * 
  26.  *  "This product includes software developed by the FreeBurn 
  27.  *     Project (http://freeburn.sourceforge.net/)."
  28.  * 
  29.  * Alternately, this acknowledgment may appear in the software itself, 
  30.  * if and wherever such third-party acknowledgments normally appear.
  31.  * 
  32.  * 4. The names "FreeBurn" and "FreeBurn Project" must not be 
  33.  * used to endorse or promote products derived from this software 
  34.  * without prior written permission. For written permission, please 
  35.  * contact aschlag@users.sourceforge.net.
  36.  * 
  37.  * 5. Products derived from this software may not be called "FreeBurn", 
  38.  * nor may "FreeBurn" appear in their name, without prior written 
  39.  * permission of the FreeBurn Project.
  40.  * 
  41.  * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED 
  42.  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 
  43.  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 
  44.  * DISCLAIMED. IN NO EVENT SHALL THE FREEBURN PROJECT OR ITS 
  45.  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
  46.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 
  47.  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 
  48.  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 
  49.  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 
  50.  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 
  51.  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 
  52.  * SUCH DAMAGE.
  53.  * 
  54.  * This software consists of voluntary contributions made by many 
  55.  * individuals on behalf of the FreeBurn Project. For more 
  56.  * information on the FreeBurn Project and FreeBurn, please see 
  57.  * <http://freeburn.sourceforge.net/>.
  58.  * 
  59.  * This software is distributed with software that is released under the GNU 
  60.  * General Public License (GPL).  You can find the terms of this license in the
  61.  * file GPL.txt distributed in this package.  You can find information on the
  62.  * software distributed with this package in the file PROGRAMS.txt.
  63.  */
  64. class CFreeburnTrackTextDialog : public FXDialogBox 
  65. {
  66.     FXDECLARE(CFreeburnTrackTextDialog)
  67.   
  68. public:
  69.     // constructor 
  70.     CFreeburnTrackTextDialog(FXWindow* owner);
  71.     
  72.     virtual ~CFreeburnTrackTextDialog();
  73.     
  74.     enum{
  75.         ID_LAST = FXDialogBox::ID_LAST
  76.     };
  77.     // methods get/set data strings defining the following cd text properties:
  78.     //  - title
  79.     //  - performer
  80.     //  - songwriter
  81.     //  - composer
  82.     //  - arranger
  83.     //  - message
  84.     //  - isrc
  85.     void     setTitleString(FXString str);
  86.     FXString getTitleString();
  87.     
  88.     void     setPerformerString(FXString str);
  89.     FXString getPerformerString();
  90.     
  91.     void     setSongwriterString(FXString str);
  92.     FXString getSongwriterString();
  93.     
  94.     void     setComposerString(FXString str);
  95.     FXString getComposerString();
  96.     
  97.     void     setArrangerString(FXString str);
  98.     FXString getArrangerString();
  99.     
  100.     void     setMessageString(FXString str);
  101.     FXString getMessageString();
  102.     
  103.     void     setIsrcString(FXString str);
  104.     FXString getIsrcString();
  105. protected:    
  106.   
  107. private:
  108.     CFreeburnTrackTextDialog(){}
  109.     CFreeburnTrackTextDialog(const CFreeburnTrackTextDialog&);
  110.     
  111.     // Text fields to hold the CD Text strings
  112.     FXTextField* m_titleField;
  113.     FXTextField* m_performerField;
  114.     FXTextField* m_songwriterField;
  115.     FXTextField* m_composerField;
  116.     FXTextField* m_arrangerField;
  117.     FXTextField* m_messageField;
  118.     FXTextField* m_isrcField;
  119. };
  120.