@ -90,12 +90,12 @@ Note::~Note()
TQString Note : : addedStringDate ( )
TQString Note : : addedStringDate ( )
{
{
return K Global: : locale ( ) - > formatDateTime ( m_addedDate ) ;
return TDE Global: : locale ( ) - > formatDateTime ( m_addedDate ) ;
}
}
TQString Note : : lastModificationStringDate ( )
TQString Note : : lastModificationStringDate ( )
{
{
return K Global: : locale ( ) - > formatDateTime ( m_lastModificationDate ) ;
return TDE Global: : locale ( ) - > formatDateTime ( m_lastModificationDate ) ;
}
}
TQString Note : : toText ( const TQString & cuttedFullPath )
TQString Note : : toText ( const TQString & cuttedFullPath )
@ -1288,7 +1288,7 @@ void Note::drawExpander(TQPainter *painter, int x, int y, const TQColor &backgro
cg . setColor ( TQColorGroup : : Base , background ) ;
cg . setColor ( TQColorGroup : : Base , background ) ;
// Fill the inside of the expander in white, typically:
// Fill the inside of the expander in white, typically:
TQBrush brush ( K GlobalSettings: : baseColor ( ) ) ;
TQBrush brush ( TDE GlobalSettings: : baseColor ( ) ) ;
painter - > fillRect ( x , y , 9 , 9 , brush ) ;
painter - > fillRect ( x , y , 9 , 9 , brush ) ;
// Draw it:
// Draw it:
@ -1776,7 +1776,7 @@ void Note::draw(TQPainter *painter, const TQRect &clipRect)
// Draw gradient or resizer:
// Draw gradient or resizer:
if ( m_hovered & & m_hoveredZone = = Resizer ) {
if ( m_hovered & & m_hoveredZone = = Resizer ) {
TQColor baseColor ( basket ( ) - > backgroundColor ( ) ) ;
TQColor baseColor ( basket ( ) - > backgroundColor ( ) ) ;
TQColor highColor ( K GlobalSettings: : highlightColor ( ) ) ;
TQColor highColor ( TDE GlobalSettings: : highlightColor ( ) ) ;
drawResizer ( & painter2 , 0 , 0 , RESIZER_WIDTH , resizerHeight ( ) , baseColor , highColor , /*rounded=*/ ! isColumn ( ) ) ;
drawResizer ( & painter2 , 0 , 0 , RESIZER_WIDTH , resizerHeight ( ) , baseColor , highColor , /*rounded=*/ ! isColumn ( ) ) ;
if ( ! isColumn ( ) ) {
if ( ! isColumn ( ) ) {
drawRoundings ( & painter2 , RESIZER_WIDTH - 3 , 0 , /*type=*/ 3 ) ;
drawRoundings ( & painter2 , RESIZER_WIDTH - 3 , 0 , /*type=*/ 3 ) ;
@ -1808,9 +1808,9 @@ void Note::draw(TQPainter *painter, const TQRect &clipRect)
selectionRectInside . moveBy ( right , y ( ) ) ;
selectionRectInside . moveBy ( right , y ( ) ) ;
basket ( ) - > blendBackground ( painter2 , selectionRectInside , right , y ( ) , false ) ;
basket ( ) - > blendBackground ( painter2 , selectionRectInside , right , y ( ) , false ) ;
}
}
painter2 . setPen ( K GlobalSettings: : highlightColor ( ) . dark ( ) ) ;
painter2 . setPen ( TDE GlobalSettings: : highlightColor ( ) . dark ( ) ) ;
painter2 . drawRect ( selectionRect ) ;
painter2 . drawRect ( selectionRect ) ;
painter2 . setPen ( Tools : : mixColor ( K GlobalSettings: : highlightColor ( ) . dark ( ) , basket ( ) - > backgroundColor ( ) ) ) ;
painter2 . setPen ( Tools : : mixColor ( TDE GlobalSettings: : highlightColor ( ) . dark ( ) , basket ( ) - > backgroundColor ( ) ) ) ;
painter2 . drawPoint ( selectionRect . topLeft ( ) ) ;
painter2 . drawPoint ( selectionRect . topLeft ( ) ) ;
painter2 . drawPoint ( selectionRect . topRight ( ) ) ;
painter2 . drawPoint ( selectionRect . topRight ( ) ) ;
painter2 . drawPoint ( selectionRect . bottomLeft ( ) ) ;
painter2 . drawPoint ( selectionRect . bottomLeft ( ) ) ;
@ -1852,7 +1852,7 @@ void Note::draw(TQPainter *painter, const TQRect &clipRect)
/** Initialise colors: */
/** Initialise colors: */
TQColor baseColor ( basket ( ) - > backgroundColor ( ) ) ;
TQColor baseColor ( basket ( ) - > backgroundColor ( ) ) ;
TQColor highColor ( K GlobalSettings: : highlightColor ( ) ) ;
TQColor highColor ( TDE GlobalSettings: : highlightColor ( ) ) ;
TQColor midColor = Tools : : mixColor ( baseColor , highColor ) ;
TQColor midColor = Tools : : mixColor ( baseColor , highColor ) ;
/** Initialise brushs and pens: */
/** Initialise brushs and pens: */
@ -1904,9 +1904,9 @@ void Note::draw(TQPainter *painter, const TQRect &clipRect)
TQColor background = basket ( ) - > backgroundColor ( ) ;
TQColor background = basket ( ) - > backgroundColor ( ) ;
if ( isSelected ( ) )
if ( isSelected ( ) )
if ( m_computedState . backgroundColor ( ) . isValid ( ) )
if ( m_computedState . backgroundColor ( ) . isValid ( ) )
background = Tools : : mixColor ( Tools : : mixColor ( m_computedState . backgroundColor ( ) , KGlobalSettings: : highlightColor ( ) ) , K GlobalSettings: : highlightColor ( ) ) ;
background = Tools : : mixColor ( Tools : : mixColor ( m_computedState . backgroundColor ( ) , TDEGlobalSettings: : highlightColor ( ) ) , TDE GlobalSettings: : highlightColor ( ) ) ;
else
else
background = K GlobalSettings: : highlightColor ( ) ;
background = TDE GlobalSettings: : highlightColor ( ) ;
else if ( m_computedState . backgroundColor ( ) . isValid ( ) )
else if ( m_computedState . backgroundColor ( ) . isValid ( ) )
background = m_computedState . backgroundColor ( ) ;
background = m_computedState . backgroundColor ( ) ;
TQColor bgColor ;
TQColor bgColor ;
@ -1983,7 +1983,7 @@ void Note::draw(TQPainter *painter, const TQRect &clipRect)
cg . setColor ( TQColorGroup : : Text , ( m_computedState . textColor ( ) . isValid ( ) ? m_computedState . textColor ( ) : basket ( ) - > textColor ( ) ) ) ;
cg . setColor ( TQColorGroup : : Text , ( m_computedState . textColor ( ) . isValid ( ) ? m_computedState . textColor ( ) : basket ( ) - > textColor ( ) ) ) ;
cg . setColor ( TQColorGroup : : Background , bgColor ) ;
cg . setColor ( TQColorGroup : : Background , bgColor ) ;
if ( isSelected ( ) )
if ( isSelected ( ) )
cg . setColor ( TQColorGroup : : Text , K GlobalSettings: : highlightedTextColor ( ) ) ;
cg . setColor ( TQColorGroup : : Text , TDE GlobalSettings: : highlightedTextColor ( ) ) ;
// Draw the Tags Arrow:
// Draw the Tags Arrow:
if ( hovered ) {
if ( hovered ) {
@ -2047,18 +2047,18 @@ void Note::drawBufferOnScreen(TQPainter *painter, const TQPixmap &contentPixmap)
//blendBackground(painter2, selectionRectInside, rect.x(), rect.y(), true, &m_selectedBackgroundPixmap);
//blendBackground(painter2, selectionRectInside, rect.x(), rect.y(), true, &m_selectedBackgroundPixmap);
}
}
painter3 . setPen ( K GlobalSettings: : highlightColor ( ) . dark ( ) ) ;
painter3 . setPen ( TDE GlobalSettings: : highlightColor ( ) . dark ( ) ) ;
painter3 . drawRect ( selectionRect ) ;
painter3 . drawRect ( selectionRect ) ;
if ( isGroup ( ) )
if ( isGroup ( ) )
painter3 . setPen ( Tools : : mixColor ( K GlobalSettings: : highlightColor ( ) . dark ( ) , basket ( ) - > backgroundColor ( ) ) ) ;
painter3 . setPen ( Tools : : mixColor ( TDE GlobalSettings: : highlightColor ( ) . dark ( ) , basket ( ) - > backgroundColor ( ) ) ) ;
else {
else {
// What are the background colors:
// What are the background colors:
TQColor bgColor = basket ( ) - > backgroundColor ( ) ;
TQColor bgColor = basket ( ) - > backgroundColor ( ) ;
if ( isSelected ( ) )
if ( isSelected ( ) )
bgColor = ( m_computedState . backgroundColor ( ) . isValid ( ) ? Tools : : mixColor ( Tools : : mixColor ( m_computedState . backgroundColor ( ) , KGlobalSettings: : highlightColor ( ) ) , K GlobalSettings: : highlightColor ( ) ) : K GlobalSettings: : highlightColor ( ) ) ;
bgColor = ( m_computedState . backgroundColor ( ) . isValid ( ) ? Tools : : mixColor ( Tools : : mixColor ( m_computedState . backgroundColor ( ) , TDEGlobalSettings: : highlightColor ( ) ) , TDE GlobalSettings: : highlightColor ( ) ) : TDE GlobalSettings: : highlightColor ( ) ) ;
else if ( m_computedState . backgroundColor ( ) . isValid ( ) )
else if ( m_computedState . backgroundColor ( ) . isValid ( ) )
bgColor = m_computedState . backgroundColor ( ) ;
bgColor = m_computedState . backgroundColor ( ) ;
painter3 . setPen ( Tools : : mixColor ( K GlobalSettings: : highlightColor ( ) . dark ( ) , bgColor ) ) ;
painter3 . setPen ( Tools : : mixColor ( TDE GlobalSettings: : highlightColor ( ) . dark ( ) , bgColor ) ) ;
}
}
painter3 . drawPoint ( selectionRect . topLeft ( ) ) ;
painter3 . drawPoint ( selectionRect . topLeft ( ) ) ;
painter3 . drawPoint ( selectionRect . topRight ( ) ) ;
painter3 . drawPoint ( selectionRect . topRight ( ) ) ;
@ -2374,7 +2374,7 @@ void Note::unbufferizeAll()
void Note : : bufferizeSelectionPixmap ( )
void Note : : bufferizeSelectionPixmap ( )
{
{
if ( m_bufferedSelectionPixmap . isNull ( ) ) {
if ( m_bufferedSelectionPixmap . isNull ( ) ) {
TQColor insideColor = K GlobalSettings: : highlightColor ( ) ;
TQColor insideColor = TDE GlobalSettings: : highlightColor ( ) ;
KPixmap kpixmap ( m_bufferedPixmap ) ;
KPixmap kpixmap ( m_bufferedPixmap ) ;
m_bufferedSelectionPixmap = KPixmapEffect : : fade ( kpixmap , 0.25 , insideColor ) ;
m_bufferedSelectionPixmap = KPixmapEffect : : fade ( kpixmap , 0.25 , insideColor ) ;
}
}