• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

akonadi/clients

mainwindow.cpp

Go to the documentation of this file.
00001 /*
00002     This file is part of Akonadi.
00003 
00004     Copyright (c) 2008 Bruno Virlet <bvirlet@kdemail.net>
00005 
00006     This program is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with this program; if not, write to the Free Software
00018     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
00019     USA.
00020 */
00021 
00022 #include "mainwindow.h"
00023 #include "mainwidget.h"
00024 
00025 #include <QtGui/QGridLayout>
00026 #include <QtGui/QToolBar>
00027 #include <QtGui/QDialog>
00028 
00029 #include <KCModuleLoader>
00030 
00031 MainWindow::MainWindow( QWidget* parent )
00032     : QMainWindow( parent )
00033 {
00034     QToolBar *toolBar = new QToolBar( QLatin1String( "Main toolbar" ), this );
00035     toolBar->addAction( "Configure ...", this, SLOT( configure() ) );
00036     addToolBar( toolBar );
00037 
00038     setCentralWidget( new MainWidget( this ) );
00039     resize( 700, 500 );
00040 }
00041 
00042 void MainWindow::configure()
00043 {
00044     QDialog *configDialog = new QDialog( this );
00045     QGridLayout *layout = new QGridLayout();
00046     QWidget *kcmWidget = KCModuleLoader::loadModule(  "kcm_akonadi_resources",
00047                                                     KCModuleLoader::Inline, configDialog, QStringList( "text/calendar" ) );
00048     layout->addWidget( kcmWidget );
00049     configDialog->setLayout( layout );
00050     configDialog->show();
00051 }

akonadi/clients

Skip menu "akonadi/clients"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal