Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

soundsettingsbase.cpp

Go to the documentation of this file.
00001 /****************************************************************************
00002 ** Form implementation generated from reading ui file 'soundsettingsbase.ui'
00003 **
00004 ** Created: Sun May 19 12:11:35 2002
00005 **      by:  The User Interface Compiler (uic)
00006 **
00007 ** WARNING! All changes made in this file will be lost!
00008 ****************************************************************************/
00009 #include "soundsettingsbase.h"
00010 
00011 #include <qcheckbox.h>
00012 #include <qcombobox.h>
00013 
00014 #include <qlabel.h>
00015 #include <qlayout.h>
00016 #include <qpixmap.h>
00017 
00018 static const char* const image0_data[] = { 
00019 "16 16 3 1",
00020 ". c None",
00021 "a c #000000",
00022 "# c #ff0000",
00023 "............#...",
00024 "............##..",
00025 "..........#..#..",
00026 ".....a..#..#.#..",
00027 "....aa..##.#..#.",
00028 "...aaa...#.##.#.",
00029 "aaaaaa.#.#..#.##",
00030 "aaaaaa.#.##.#.##",
00031 "aaaaaa.#.##.#.##",
00032 "aaaaaa.#.##.#.##",
00033 "aaaaaa.#.#..#.##",
00034 "...aaa...#.##.#.",
00035 "....aa..#..#..#.",
00036 ".....a.....#.##.",
00037 "..........#..#..",
00038 "............##.."};
00039 
00040 static const char* const image1_data[] = { 
00041 "16 16 3 1",
00042 ". c None",
00043 "# c #000000",
00044 "a c #ff0000",
00045 "................",
00046 "................",
00047 "................",
00048 ".....#..........",
00049 "....##..........",
00050 "...###...a...a..",
00051 "######..aaa.aaa.",
00052 "######...aaaaa..",
00053 "######....aaa...",
00054 "######...aaaaa..",
00055 "######..aaa.aaa.",
00056 "...###...a...a..",
00057 "....##..........",
00058 ".....#..........",
00059 "................",
00060 "................"};
00061 
00062 
00063 /* 
00064  *  Constructs a SoundSettingsBase which is a child of 'parent', with the 
00065  *  name 'name' and widget flags set to 'f' 
00066  *
00067  *  The dialog will by default be modeless, unless you set 'modal' to
00068  *  TRUE to construct a modal dialog.
00069  */
00070 SoundSettingsBase::SoundSettingsBase( QWidget* parent,  const char* name, bool modal, WFlags fl )
00071     : QDialog( parent, name, fl )
00072 //    : QMainWindow( parent, name, fl )
00073 {
00074     QPixmap image0( ( const char** ) image0_data );
00075     QPixmap image1( ( const char** ) image1_data );
00076     if ( !name )
00077   setName( "SoundSettingsBase" );
00078     //    resize(255,301);
00079     setCaption( tr( "Vmemo Settings" ) );
00080 
00081     SoundSettingsBaseLayout = new QGridLayout( this ); 
00082     SoundSettingsBaseLayout->setSpacing( 4 );
00083     SoundSettingsBaseLayout->setMargin( 4 );
00084 
00085     QHBoxLayout *Layout11;
00086     Layout11 = new QHBoxLayout; 
00087     Layout11->setSpacing( 4 );
00088     Layout11->setMargin( 0 );
00089 
00090     stereoCheckBox = new QCheckBox( this, "stereoCheckBox" );
00091     stereoCheckBox->setText( tr( "Stereo" ) );
00092     Layout11->addWidget( stereoCheckBox );
00093 
00094     sixteenBitCheckBox = new QCheckBox( this, "sixteenBitCheckBox" );
00095     sixteenBitCheckBox->setText( tr( "16 bit" ) );
00096     Layout11->addWidget( sixteenBitCheckBox );
00097 
00098     AlertCheckBox = new QCheckBox( this, "AlertCheckBox" );
00099     AlertCheckBox->setText( tr( "Visual Alerts" ) );
00100     Layout11->addWidget( AlertCheckBox );
00101 
00102     SoundSettingsBaseLayout->addLayout( Layout11, 0, 0);
00103     
00104     sampleRateLabel = new QLabel(this, "sampleRateLabel" );
00105     sampleRateLabel->setText( tr( "Sample Rate:" ) );
00106     SoundSettingsBaseLayout->addMultiCellWidget(  sampleRateLabel  , 1, 1, 0, 0, 1);
00107 
00108     sampleRate = new QComboBox( FALSE,this, "sampleRate" );
00109     
00110     sampleRate->insertItem( tr( "8000" ) );
00111     sampleRate->insertItem( tr( "11025" ) );
00112     sampleRate->insertItem( tr( "22050" ) );
00113     sampleRate->insertItem( tr( "33075" ) );
00114     sampleRate->insertItem( tr( "44100" ) );
00115     SoundSettingsBaseLayout->addMultiCellWidget(  sampleRate, 2, 2, 0, 0, 1 );
00116 
00117     TextLabel1 = new QLabel( this, "TextLabel1" );
00118     TextLabel1->setText( tr( "Recording Directory:" ) );
00119     SoundSettingsBaseLayout->addMultiCellWidget( TextLabel1, 3, 3, 0, 0, 1);
00120 
00121 
00122     LocationComboBox = new QComboBox( FALSE, this, "LocationComboBox" );
00123     SoundSettingsBaseLayout->addMultiCellWidget(  LocationComboBox, 4, 4, 0, 8, 1);
00124 
00125     QLabel *TextLabelKey;
00126     TextLabelKey = new QLabel( this, "TextLabelKey" );
00127     TextLabelKey->setText( tr( "Recording Key:" ) );
00128     SoundSettingsBaseLayout->addMultiCellWidget(TextLabelKey , 5, 5, 0, 0, 1);
00129 
00130     keyComboBox = new QComboBox( FALSE, this, "keyComboBox" );
00131     keyComboBox->insertItem( "" );
00132     keyComboBox->insertItem( tr( "Taskbar Icon" ) );
00133     keyComboBox->insertItem( tr( "Key_Record" ) );
00134     keyComboBox->insertItem( tr( "Key_Space" ) );
00135     keyComboBox->insertItem( tr( "Key_Home" ) );
00136     keyComboBox->insertItem( tr( "Key_Calender" ) );
00137     keyComboBox->insertItem( tr( "Key_Contacts" ) );
00138     keyComboBox->insertItem( tr( "Key_Menu" ) );
00139     keyComboBox->insertItem( tr( "Key_Mail" ) );
00140     SoundSettingsBaseLayout->addMultiCellWidget( keyComboBox , 6, 6, 0, 0 ,1);
00141 
00142     keyLabel=  new QLabel( this, "keyLabel" );
00143     SoundSettingsBaseLayout->addMultiCellWidget( keyLabel , 6, 6, 0, 2, 3);
00144 
00145     QLabel *timeLimitLabel;
00146     timeLimitLabel= new QLabel( this, "timeLimitLabel" );
00147     timeLimitLabel->setText( tr( "Recording Limit in seconds:" ) );
00148     SoundSettingsBaseLayout->addMultiCellWidget(  timeLimitLabel  , 7, 7, 0, 0, 1);
00149 
00150     timeLimitComboBox = new QComboBox( FALSE, this, "timeLimitComboBox" );
00151     timeLimitComboBox->insertItem( tr( "30" ) );
00152     timeLimitComboBox->insertItem( tr( "20" ) );
00153     timeLimitComboBox->insertItem( tr( "15" ) );
00154     timeLimitComboBox->insertItem( tr( "10" ) );
00155     timeLimitComboBox->insertItem( tr( "5" ) );
00156     timeLimitComboBox->insertItem( tr( "Unlimited" ) );
00157 
00158     SoundSettingsBaseLayout->addMultiCellWidget(timeLimitComboBox  , 8, 8, 0, 0, 1);
00159 
00160 
00161     restartCheckBox= new QCheckBox( this, "restartCheck" );
00162     restartCheckBox->setText( tr( "Restart Opie if needed" ) );
00163 
00164     SoundSettingsBaseLayout->addMultiCellWidget( restartCheckBox , 9, 9, 0, 0, 1);
00165 
00166     adpcmCheckBox = new QCheckBox( this, "adpcmCheck" );
00167     adpcmCheckBox->setText( tr( "Use ADPCM compression" ) );
00168 
00169     SoundSettingsBaseLayout->addMultiCellWidget( adpcmCheckBox , 10, 10, 0, 0, 1);
00170     
00171     QSpacerItem* spacer4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Expanding );
00172     SoundSettingsBaseLayout->addItem( spacer4, 10, 0 );
00173 }
00174 
00175 /*  
00176  *  Destroys the object and frees any allocated resources
00177  */
00178 SoundSettingsBase::~SoundSettingsBase()
00179 {
00180     // no need to delete child widgets, Qt does it all for us
00181 }

Generated on Sat Nov 5 16:17:57 2005 for OPIE by  doxygen 1.4.2