"In this case, mount the shared-folder to the local file system and ask %2 to use that mount point.<br>"
"Warning: you should not run %3 at the same time on both computers, or you risk to loss data while the two applications are desynced.</li>"
"</ul><p>Please remember that you should not change the content of that folder manually (eg. adding a file in a basket folder will not add that file to the basket).</p>")
// menu.insertItem(StateMenuItem::checkBoxIconSet(note->hasTag(currentTag), menu.colorGroup()), new StateMenuItem(currentState, sequence, true), i );
// menu.insertItem(StateMenuItem::checkBoxIconSet(note->hasTag(currentTag), menu.tqcolorGroup()), new StateMenuItem(currentState, sequence, true), i );
intheight=TQMAX(mindMap->sizeHint().height(),m_columnCount->sizeHint().height());// Make all radioButtons vertically equaly-spaced!
mindMap->setMinimumSize(mindMap->sizeHint().width(),height);// Because the m_columnCount can be heigher, and make radio1 and radio2 more spaced than radio2 and radio3.
intheight=TQMAX(mindMap->tqsizeHint().height(),m_columnCount->tqsizeHint().height());// Make all radioButtons vertically equaly-spaced!
mindMap->setMinimumSize(mindMap->tqsizeHint().width(),height);// Because the m_columnCount can be heigher, and make radio1 and radio2 more spaced than radio2 and radio3.
if(folderName.startsWith("/")){// It was a folder mirror:
KMessageBox::information(0,i18n("<p>Folder mirroring is not possible anymore (see <a href='http://basket.kde.org/'>basket.kde.org</a> for more information).</p>"
"<p>The folder <b>%1</b> has been copied for the basket needs. You can either delete this folder or delete the basket, or use both. But remember that "
"modifying one will not modify the other anymore as they are now separate entities.</p>").arg(folderName),i18n("Folder Mirror Import"),
"modifying one will not modify the other anymore as they are now separate entities.</p>").tqarg(folderName),i18n("Folder Mirror Import"),
"",KMessageBox::AllowLink);
// Also modify folderName to be only the folder name and not the full path anymore:
@ -459,7 +459,7 @@ void LinkDisplay::paint(TQPainter *painter, int x, int y, int width, int height,
elseif(isIconButtonHovered)
painter->setPen(m_look->effectiveHoverColor());
elseif(!isDefaultColor||(!m_look->color().isValid()&&!m_look->useLinkColor()))// If the color is FORCED or if the link color default to the text color:
painter->setPen(colorGroup.text());
painter->setPen(tqcolorGroup.text());
else
painter->setPen(m_look->effectiveColor());
// Draw the text:
@ -468,14 +468,14 @@ void LinkDisplay::paint(TQPainter *painter, int x, int y, int width, int height,
intwidth()const{returnm_width;}/// << @return the width of the link. It is never less than minWidth()!
intheight()const{returnm_height;}/// << @return the height if the link after having set it a width.
// And finaly, use it:
voidpaint(TQPainter*painter,intx,inty,intwidth,intheight,constTQColorGroup&colorGroup,boolisDefaultColor,boolisSelected,boolisHovered,boolisIconButtonHovered)const;/// << Draw the link on a painter. Set textColor to be !isValid() to use the LinkLook color. Otherwise it will use this color!
TQPixmapfeedbackPixmap(intwidth,intheight,constTQColorGroup&colorGroup,boolisDefaultColor);/// << @return the pixmap to put under the cursor while dragging this object.
voidpaint(TQPainter*painter,intx,inty,intwidth,intheight,constTQColorGroup&tqcolorGroup,boolisDefaultColor,boolisSelected,boolisHovered,boolisIconButtonHovered)const;/// << Draw the link on a painter. Set textColor to be !isValid() to use the LinkLook color. Otherwise it will use this color!
TQPixmapfeedbackPixmap(intwidth,intheight,constTQColorGroup&tqcolorGroup,boolisDefaultColor);/// << @return the pixmap to put under the cursor while dragging this object.
// Eventually get some information about the link display:
booliconButtonAt(constTQPoint&pos)const;/// << @return true if the icon button is under point @p pos.
TQRecticonButtonRect()const;/// << @return the rectangle of the icon button.
@ -1098,7 +1098,7 @@ void Note::relayoutAt(int x, int y, bool animate)
m_computedAreas=false;
m_areas.clear();
// Don't relayout free notes one under the other, because by definition they are freely positionned!
// Don't retqlayout free notes one under the other, because by definition they are freely positionned!
if(isFree()){
x=finalX();
y=finalY();
@ -1109,7 +1109,7 @@ void Note::relayoutAt(int x, int y, bool animate)
cancelAnimation();
setX(x);
setY(y);
// But relayout others vertically if they are inside such primary groups or if it is a "normal" basket:
// But retqlayout others vertically if they are inside such primary groups or if it is a "normal" basket:
}else{
if(animate)
setFinalPosition(x,y);
@ -1120,13 +1120,13 @@ void Note::relayoutAt(int x, int y, bool animate)
}
}
// Then, relayout sub-notes (only the first, if the group is folded) and so, assign an height to the group:
// Then, retqlayout sub-notes (only the first, if the group is folded) and so, assign an height to the group:
if(isGroup()){
inth=0;
Note*child=firstChild();
boolfirst=true;
while(child){
if(child->matching()&&(!m_isFolded||first||basket()->isFiltering())){// Don't use showSubNotes() but use !m_isFolded because we don't want a relayout for the animated collapsing notes
if(child->matching()&&(!m_isFolded||first||basket()->isFiltering())){// Don't use showSubNotes() but use !m_isFolded because we don't want a retqlayout for the animated collapsing notes
child->relayoutAt(x+width(),y+h,animate);
h+=child->finalHeight();
}else// In case the user collapse a group, then move it and then expand it:
@ -1284,7 +1284,7 @@ void Note::drawExpander(TQPainter *painter, int x, int y, const TQColor &backgro
// If the current style is a KStyle, use it to draw the expander (plus or minus):
voidsetInitialHeight(intheight){m_height=height;}/// << Do NEVER use it unless you know what you do!
voidsetX(intx);
voidsetY(inty);
@ -93,7 +93,7 @@ class Note
intminWidth();
intminRight();
voidunsetWidth();
voidrequestRelayout();
voidrequestRetqlayout();
voidsetHeight(intheight){m_height=height;}/// << DO NEVER USE IT!!! Only available when moving notes, groups should be recreated with the exact same state as before!
note()->requestRelayout();// TODO: It should re-set the width! m_width = 0 ? contentChanged: setWidth, geteight, if size havent changed, only repaint and not relayout
note()->requestRetqlayout();// TODO: It should re-set the width! m_width = 0 ? contentChanged: setWidth, geteight, if size havent changed, only tqrepaint and not retqlayout
@ -82,8 +82,8 @@ class NoteContent // TODO: Mark some methods as const! and some (lik
// Complexe Abstract Generic Methods:
virtualvoidexportToHTML(HTMLExporter*exporter,intindent)=0;/// << Export the note in an HTML file.
virtualTQStringcssClass()=0;/// << @return the CSS class of the note when exported to HTML
virtualintsetWidthAndGetHeight(intwidth)=0;/// << Relayout content with @p width (never less than minWidth()). @return its new height.
virtualvoidpaint(TQPainter*painter,intwidth,intheight,constTQColorGroup&colorGroup,boolisDefaultColor,boolisSelected,boolisHovered)=0;/// << Paint the content on @p painter, at coordinate (0, 0) and with the size (@p width, @p height).
virtualintsetWidthAndGetHeight(intwidth)=0;/// << Retqlayout content with @p width (never less than minWidth()). @return its new height.
virtualvoidpaint(TQPainter*painter,intwidth,intheight,constTQColorGroup&tqcolorGroup,boolisDefaultColor,boolisSelected,boolisHovered)=0;/// << Paint the content on @p painter, at coordinate (0, 0) and with the size (@p width, @p height).
virtualboolloadFromFile(bool/*lazyLoad*/){returnfalse;}/// << Load the content from the file. The default implementation does nothing. @see fileName().
virtualboolfinishLazyLoad(){returnfalse;}/// << Load what was not loaded by loadFromFile() if it was lazy-loaded
virtualboolsaveToFile(){returnfalse;}/// << Save the content to the file. The default implementation does nothing. @see fileName().
@ -131,7 +131,7 @@ class NoteContent // TODO: Mark some methods as const! and some (lik
public:
voidsetEdited();/// << Mark the note as edited NOW: change the "last modification time and time" AND save the basket to XML file.
protected:
voidcontentChanged(intnewMinWidth);/// << When the content has changed, inherited classes should call this to specify its new minimum size and trigger a basket relayout.
voidcontentChanged(intnewMinWidth);/// << When the content has changed, inherited classes should call this to specify its new minimum size and trigger a basket retqlayout.
private:
Note*m_note;
TQStringm_fileName;
@ -163,7 +163,7 @@ class TextContent : public NoteContent
@ -509,7 +509,7 @@ class LauncherContent : public NoteContent
KURLurlToOpen(boolwith);
TQStringmessageWhenOpenning(OpenMessagewhere);
// Content-Specific Methods:
voidsetLauncher(constTQString&name,constTQString&icon,constTQString&exec);/// << Change the launcher note-content and relayout the note. Normally called by loadFromFile (no save done).
voidsetLauncher(constTQString&name,constTQString&icon,constTQString&exec);/// << Change the launcher note-content and retqlayout the note. Normally called by loadFromFile (no save done).
TQStringname(){returnm_name;}/// << @return the URL of the launcher note-content.
TQStringicon(){returnm_icon;}/// << @return the displayed icon of the launcher note-content.
TQStringexec(){returnm_exec;}/// << @return the execute command line of the launcher note-content.
@ -543,7 +543,7 @@ class ColorContent : public NoteContent
stretchWidget->setSizePolicy(TQSizePolicy(/*hor=*/TQSizePolicy::Fixed,/*ver=*/TQSizePolicy::Expanding,/*hStretch=*/1,/*vStretch=*/255));// Make it fill ALL vertical space
stretchWidget->tqsetSizePolicy(TQSizePolicy(/*hor=*/TQSizePolicy::Fixed,/*ver=*/TQSizePolicy::Expanding,/*hStretch=*/1,/*vStretch=*/255));// Make it fill ALL vertical space
stretchWidget->setSizePolicy(TQSizePolicy(/*hor=*/TQSizePolicy::Fixed,/*ver=*/TQSizePolicy::Expanding,/*hStretch=*/1,/*vStretch=*/255));// Make it fill ALL vertical space
stretchWidget->tqsetSizePolicy(TQSizePolicy(/*hor=*/TQSizePolicy::Fixed,/*ver=*/TQSizePolicy::Expanding,/*hStretch=*/1,/*vStretch=*/255));// Make it fill ALL vertical space
"on that icon to paste the current selection.")+"</p>"+
"<p>"+i18n("When doing so, %1 pops up a little balloon message to inform you the action has been successfully done. You can disable that balloon.")+"</p>"+
"<p>"+i18n("Note that those messages are smart enough to not appear if the main window is visible. This is because you already see the result of your actions in the main window.")+"</p>")