calendarsystem Library API Documentation

calendar3.cpp

00001 // Simplest example using two kde calendar systems (gregorian and hijri)
00002 // Carlos Moro <cfmoro@correo.uniovi.es>
00003 // GNU-GPL v.2
00004 
00005 #include <kapplication.h>
00006 #include "mkdatepicker.h"
00007 #include <kdebug.h>
00008 
00009 int main(int argc, char **argv) {
00010 
00011         KApplication *app;
00012         app = new KApplication(argc, argv, "Calendar");
00013 
00014         // Added optional parameter to specify calendar type y KDatePicker constructor
00015         KDatePicker *hijriCalendar = new KDatePicker("hijri");
00016         KDatePicker* defaultCalendar = new KDatePicker();
00017         kdDebug(5400) << "BB";
00018         app->setMainWidget(defaultCalendar);
00019 
00020         defaultCalendar->show();
00021         hijriCalendar->show();
00022 
00023         app->exec();
00024 }
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 15 11:40:08 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001