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

launchersettings.cpp

Go to the documentation of this file.
00001 
00002 /*
00003                =.            This file is part of the OPIE Project
00004              .=l.            Copyright (c)  2002 Robert Griebl <sandman@handhelds.org>
00005            .>+-=
00006  _;:,     .>    :=|.         This file is free software; you can
00007 .> <`_,   >  .   <=          redistribute it and/or modify it under
00008 :`=1 )Y*s>-.--   :           the terms of the GNU General Public
00009 .="- .-=="i,     .._         License as published by the Free Software
00010  - .   .-<_>     .<>         Foundation; either version 2 of the License,
00011      ._= =}       :          or (at your option) any later version.
00012     .%`+i>       _;_.
00013     .i_,=:_.      -<s.       This file is distributed in the hope that
00014      +  .  -:.       =       it will be useful, but WITHOUT ANY WARRANTY;
00015     : ..    .:,     . . .    without even the implied warranty of
00016     =_        +     =;=|`    MERCHANTABILITY or FITNESS FOR A
00017   _.=:.       :    :=>`:     PARTICULAR PURPOSE. See the GNU General
00018 ..}^=.=       =       ;      Public License for more details.
00019 ++=   -.     .`     .:
00020  :     =  ...= . :.=-        You should have received a copy of the GNU
00021  -.   .:....=;==+<;          General Public License along with this file;
00022   -_. . .   )=.  =           see the file COPYING. If not, write to the
00023     --        :-=`           Free Software Foundation, Inc.,
00024                              59 Temple Place - Suite 330,
00025                              Boston, MA 02111-1307, USA.
00026 
00027 */
00028 
00029 #include <qlayout.h>
00030 
00031 #include <opie2/otabwidget.h>
00032 
00033 #include "launchersettings.h"
00034 #include "tabssettings.h"
00035 #include "menusettings.h"
00036 #include "taskbarsettings.h"
00037 #include "inputmethodsettings.h"
00038 #include "doctabsettings.h"
00039 
00040 using namespace Opie::Ui;
00041 LauncherSettings::LauncherSettings (QWidget*,const char*, WFlags) 
00042     : QDialog ( 0, "LauncherSettings", false, WStyle_ContextHelp )
00043 {
00044         setCaption ( tr( "Launcher Settings" ));
00045 
00046         QVBoxLayout *lay = new QVBoxLayout ( this, 4, 4 );
00047 
00048         OTabWidget *tw = new OTabWidget ( this, "otab" );
00049         lay-> addWidget ( tw );
00050 
00051         m_tabs = new TabsSettings ( tw );
00052         m_taskbar = new TaskbarSettings ( tw );
00053         m_menu = new MenuSettings ( tw );
00054         m_imethods = new InputMethodSettings ( tw );
00055         m_doctab = new DocTabSettings ( tw );
00056 
00057         tw-> addTab ( m_taskbar, "wait", tr( "Taskbar" ));
00058         tw-> addTab ( m_menu, "go", tr( "O-Menu" ));
00059         tw-> addTab ( m_tabs, "launchersettings/tabstab", tr( "Tabs" ));
00060         tw-> addTab ( m_imethods, "launchersettings/inputmethod", tr( "InputMethods" ));
00061         tw-> addTab ( m_doctab, "DocsIcon", tr( "DocTab" ) );
00062         tw-> setCurrentTab ( m_taskbar );
00063 }
00064 
00065 void LauncherSettings::accept ( )
00066 {
00067         m_taskbar-> accept ( );
00068         m_menu-> accept ( );
00069         m_tabs-> accept ( );
00070         m_imethods-> accept ( );
00071         m_doctab-> accept ( );    
00072 
00073         QDialog::accept ( );
00074 }
00075 
00076 void LauncherSettings::done ( int r )
00077 {
00078         QDialog::done ( r );
00079         close ( );
00080 }

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