From kde-pim Mon Feb 25 01:56:34 2002 From: "Carlos Fernandez Moro" Date: Mon, 25 Feb 2002 01:56:34 +0000 To: kde-pim Subject: [Kde-pim] Say hello and a proposal... X-MARC-Message: https://marc.info/?l=kde-pim&m=101460244316713 Hi everybody. I'm Carlos. First of all, congratulations for all your marvellous work ;) I've just arrived to Qt and KDE and have an idea in mind... The idea is to get a calendar widget that can display calendars of different types, for example, Gregorian , Hijri (the muslim-arabic one)... I've been playing a bit with the code and I'd like to ask if it would be interesting this work and if so, i have some doubts about a clear design: As seen in actual calendar implementation, it reads date information from QDate. I think it would ve very nice to keep data and widget presentacion apart, so it maybe would not be a good idea implement conversion routines, etc... into the calendar widget. There would be other 3 possibilities: 1.- Making QDate a kind of abstract class extended by QGDate and GHDate and so.... Then we could instantiate whichever we desired... and let the calendar show the dates through interface defined in the root QDate. 2.- If it's out of our scope changing QT's implementation, there could be a class for hijri calendar, HDate (taken from hdate package) and the calendar just will work with QDate for Gregorian and with HDate for Hijri. I will implement in HDate all the functions requires for the widget calls. This design isn't quite consistent... inside calendar widget... 3.- Fully KDE support for dates in independiently of their kind. Create an utility root and abstract class KDate ? and her derived, KGDate and KHDarte, and so.... Maybe some scheme of this type will make easy conversion operators in furure plans.... What do you think? Sorry if my explanation has been so confusing ... O: Best luck... ------------------------------------------------------------------------ Carlos Moro cfmoro@NOSPAMcorreo.uniovi.es cout << "I love linux" << endl; _______________________________________________ kde-pim mailing list kde-pim@mail.kde.org http://mail.kde.org/mailman/listinfo/kde-pim kde-pim home page at http://pim.kde.org/