Bug 116970 - New calendar generator features
Summary: New calendar generator features
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-Calendar (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-23 20:48 UTC by Maciek Borowka
Modified: 2018-03-23 11:43 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 0.2.0


Attachments
The gzipped patch. (7.59 KB, patch)
2005-11-23 20:49 UTC, Maciek Borowka
Details
New version of the patch (4.19 KB, patch)
2007-01-05 23:33 UTC, Maciek Borowka
Details
Fixed patch (81.53 KB, patch)
2007-05-04 14:45 UTC, Orgad Shaneh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maciek Borowka 2005-11-23 20:48:58 UTC
Version:            (using KDE KDE 3.4.3)
Installed from:    Ubuntu Packages
Compiler:          (Tested with gcc 4.0.2 on linux) 
OS:                Linux

The attached patch adds the following features to the calendar Kipi plugin :

a) The calendar cells have different width and heights in order to fill the 
complete page width.
b) The font is bigger
c) The calendar lines are printed by default.
d) The unused "printCalendar" function is deleted (why was it there?).
e) There is a new page in the wizard that lets you choose 2 iCalendar files. 
This step is purely optional. The events from the first file are going to be 
printed on red and the second one on green. This lets you print the official 
holidays (red) and your private ones (green).
f) Because of e) the libkcal (kdepim) dependency has been introduced. Is it a 
problem?

Known problems: 
1. Strange looking horizontal layout print
2. This stuff needs an English native speaker
Comment 1 Maciek Borowka 2005-11-23 20:49:52 UTC
Created attachment 13618 [details]
The gzipped patch.
Comment 2 Tom Albers 2005-11-27 23:51:54 UTC
Just a quick question from me about the inter-module dependency. Can we avoid that by copying some files from kdepim? Or does that result in the whole of kdepim?

If you can create a patch without the dependency, then great, I can review it later this week and apply it to the sources.
Comment 3 Tom Albers 2005-12-28 18:02:21 UTC
any news?
Comment 4 Maciek Borowka 2005-12-30 00:37:30 UTC
Yes, one big news: I am still alive. :+) 

I have started to work on the dlopen-ed version of the patch and I hope to have something soon (not before the end of the year, however).

I am sorry it takes so long.
Comment 5 Tom Albers 2006-05-14 12:50:34 UTC
SVN commit 540640 by toma:

Draw grid by default
CCBUG: 116970


 M  +9 -8      caltemplate.cpp  


--- trunk/extragear/libs/kipi-plugins/calendar/caltemplate.cpp #540639:540640
@@ -60,7 +60,7 @@
     QGridLayout *mainLayout = new QGridLayout(this, 2, 1, 5, 5);
 
     // ----------------------------------------------------------------
-   
+
     QFrame *headerFrame = new QFrame( this );
     headerFrame->setFrameStyle(QFrame::Panel|QFrame::Sunken);
     QHBoxLayout* layout = new QHBoxLayout( headerFrame );
@@ -73,17 +73,17 @@
     layout->addWidget( labelTitle );
     layout->setStretchFactor( labelTitle, 1 );
     mainLayout->addMultiCellWidget( headerFrame, 0, 0, 0, 1 );
-        
+
     QString directory;
     KGlobal::dirs()->addResourceType("kipi_banner_left", KGlobal::dirs()->kde_default("data") + "kipi/data");
     directory = KGlobal::dirs()->findResourceDir("kipi_banner_left", "banner_left.png");
-    
+
     pixmapLabelLeft->setPaletteBackgroundColor( QColor(201, 208, 255) );
     pixmapLabelLeft->setPixmap( QPixmap( directory + "banner_left.png" ) );
     labelTitle->setPaletteBackgroundColor( QColor(201, 208, 255) );
-    
+
     // ----------------------------------------------------------------
-    
+
     previewSize_ = 300;
 
     QGroupBox *boxPreview_ = new QGroupBox( i18n("Preview"), this );
@@ -147,6 +147,7 @@
 
     checkBoxDrawLines_ = new QCheckBox(i18n("Draw lines in calendar"), gbox);
     gboxLayout->addWidget( checkBoxDrawLines_ );
+    checkBoxDrawLines_->setChecked(true);
 
     connect(checkBoxDrawLines_, SIGNAL(toggled(bool)),
             SLOT(slotParamsChanged()));
@@ -188,7 +189,7 @@
     QFont f;
     comboFont_->setCurrentText( f.family() );
 
-    
+
     gboxLayout->addLayout( hlayout );
 
     connect(comboFont_, SIGNAL(activated(int)),
@@ -205,10 +206,10 @@
     // ---------------------------------------------------------------
 
     timer_ = new QTimer(this);
-    
+
     connect(timer_, SIGNAL(timeout()),
             SLOT(slotUpdatePreview()));
-            
+
     timer_->start(0,true);
 }
 
Comment 6 Maciek Borowka 2007-01-05 23:32:08 UTC
I have modified the patch to adapt to the current HEAD. There is still a kde-pim dependency. What I propose is to put it into conditional compilation and leave the decision about enabling it to packagers.
Comment 7 Maciek Borowka 2007-01-05 23:33:02 UTC
Created attachment 19115 [details]
New version of the patch

The patch for the current HEAD
Comment 8 Angelo Naselli 2007-01-06 00:34:49 UTC
Alle 23:32, venerd
Comment 9 Orgad Shaneh 2007-01-06 21:35:19 UTC
Will do.
Comment 10 Orgad Shaneh 2007-05-04 14:45:54 UTC
Created attachment 20478 [details]
Fixed patch

fixed some issues, mostly calendar system ones.
Comment 11 Orgad Shaneh 2007-05-04 14:46:31 UTC
Commited (together with my patch).
Hope it works for others :)
Comment 12 Arnd Baecker 2007-05-04 23:06:56 UTC
I just tried to compile from svn and (as posted on digikam ML),
realized the above mentioned dependency on kibkcal,
i.e. on debian etch I had to  do
  aptitude  install libkcal2-dev
so that the compile works fine.

Should there maybe a check for libkcal2 in the configure step?
Also it might be mentioned somewhere as another dependency.

Comment 13 Orgad Shaneh 2007-05-05 21:56:33 UTC
Yes, there should be. Look at the first message in this bug report.
Comment 14 caulier.gilles 2007-05-06 09:19:51 UTC
Orgad,

Configure script need to be adapted to check this depency.

README file must be updated too...

Gilles
Comment 15 Orgad Shaneh 2007-05-06 19:08:38 UTC
How do I modify the configure script?
Comment 16 caulier.gilles 2007-05-06 19:20:22 UTC
Orgad,

You don't modify the .configure script directly. Use :

- configure.in.in to add new depencies rules/check
- configure.in.bot to report all depencies problems/results to the console.

I recommend to check how others applications witch depand of libkcal2 have implemented the configure files

Gilles Caulier
Comment 17 Orgad Shaneh 2007-05-06 19:42:37 UTC
Done.
Comment 18 Orgad Shaneh 2007-05-07 05:09:38 UTC
I don't think it should be a strict dependency.
If it doesn't exist it should compile without the special dates support.
I'll work on that.
Comment 19 Angelo Naselli 2007-05-13 19:01:24 UTC
> I don't think it should be a strict dependency.
> If it doesn't exist it should compile without the special dates support.
> I'll work on that.

Well from the point of view of a packager i need to know which packages 
i have to install to build all. If don't want a feature i can
- patch the code/configure...
- disable it if developers add an option for that.

IMO if this is a good feature should be compiled by default

Angelo
Comment 20 Orgad Shaneh 2007-05-14 21:31:45 UTC
As a packager, I suggest that you indeed compile it.
Comment 21 caulier.gilles 2008-12-08 09:38:40 UTC
Orgad,

What's news about this file ? It still valid ?

Gilles Caulier
Comment 22 Orgad Shaneh 2008-12-08 18:11:24 UTC
It should be closed. The horizontal layout issue still needs to be worked on. I have it on my mind...
Comment 23 Maciek Borowka 2008-12-08 22:47:48 UTC
As the submitter, I close the bug, as my request (pushing the patch to SVN) is fulfilled. This does not mean that the system is perfect (alas!). But my knowledge of KDE and C++ is certainly too poor to make me able to do much about it...