|
|
@ -1854,7 +1854,7 @@ void Basket::clickedToInsert(TQMouseEvent *event, Note *clicked, /*Note::Zone*/i
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Note *note;
|
|
|
|
Note *note;
|
|
|
|
if (event->button() == Qt::MidButton)
|
|
|
|
if (event->button() == Qt::MidButton)
|
|
|
|
note = NoteFactory::dropNote(KApplication::clipboard()->data(TQClipboard::Selection), this);
|
|
|
|
note = NoteFactory::dropNote(TDEApplication::clipboard()->data(TQClipboard::Selection), this);
|
|
|
|
else
|
|
|
|
else
|
|
|
|
note = NoteFactory::createNoteText("", this);
|
|
|
|
note = NoteFactory::createNoteText("", this);
|
|
|
|
|
|
|
|
|
|
|
@ -2075,7 +2075,7 @@ void Basket::pasteNote(TQClipboard::Mode mode)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
closeEditor();
|
|
|
|
closeEditor();
|
|
|
|
unselectAll();
|
|
|
|
unselectAll();
|
|
|
|
Note *note = NoteFactory::dropNote(KApplication::clipboard()->data(mode), this);
|
|
|
|
Note *note = NoteFactory::dropNote(TDEApplication::clipboard()->data(mode), this);
|
|
|
|
if (note) {
|
|
|
|
if (note) {
|
|
|
|
insertCreatedNote(note);
|
|
|
|
insertCreatedNote(note);
|
|
|
|
//unselectAllBut(note);
|
|
|
|
//unselectAllBut(note);
|
|
|
@ -2407,7 +2407,7 @@ void Basket::contentsMouseDoubleClickEvent(TQMouseEvent *event)
|
|
|
|
void Basket::contentsMouseMoveEvent(TQMouseEvent *event)
|
|
|
|
void Basket::contentsMouseMoveEvent(TQMouseEvent *event)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Drag the notes:
|
|
|
|
// Drag the notes:
|
|
|
|
if (m_canDrag && (m_pressPos - event->pos()).manhattanLength() > KApplication::startDragDistance()) {
|
|
|
|
if (m_canDrag && (m_pressPos - event->pos()).manhattanLength() > TDEApplication::startDragDistance()) {
|
|
|
|
m_canDrag = false;
|
|
|
|
m_canDrag = false;
|
|
|
|
m_isSelecting = false; // Don't draw selection rectangle ater drag!
|
|
|
|
m_isSelecting = false; // Don't draw selection rectangle ater drag!
|
|
|
|
m_selectionStarted = false;
|
|
|
|
m_selectionStarted = false;
|
|
|
@ -2764,7 +2764,7 @@ void Basket::drawInserter(TQPainter &painter, int xPainter, int yPainter)
|
|
|
|
int lineY = (m_inserterGroup && m_inserterTop ? 0 : 2);
|
|
|
|
int lineY = (m_inserterGroup && m_inserterTop ? 0 : 2);
|
|
|
|
int roundY = (m_inserterGroup && m_inserterTop ? 0 : 1);
|
|
|
|
int roundY = (m_inserterGroup && m_inserterTop ? 0 : 1);
|
|
|
|
|
|
|
|
|
|
|
|
TQColor dark = KApplication::palette().active().dark();
|
|
|
|
TQColor dark = TDEApplication::palette().active().dark();
|
|
|
|
TQColor light = dark.light().light();
|
|
|
|
TQColor light = dark.light().light();
|
|
|
|
if (m_inserterGroup && Settings::groupOnInsertionLine())
|
|
|
|
if (m_inserterGroup && Settings::groupOnInsertionLine())
|
|
|
|
light = Tools::mixColor(light, KGlobalSettings::highlightColor());
|
|
|
|
light = Tools::mixColor(light, KGlobalSettings::highlightColor());
|
|
|
@ -4196,7 +4196,7 @@ void Basket::noteDeleteWithoutConfirmation(bool deleteFilesToo)
|
|
|
|
|
|
|
|
|
|
|
|
void Basket::doCopy(CopyMode copyMode)
|
|
|
|
void Basket::doCopy(CopyMode copyMode)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQClipboard *cb = KApplication::clipboard();
|
|
|
|
TQClipboard *cb = TDEApplication::clipboard();
|
|
|
|
TQClipboard::Mode mode = (copyMode == CopyToSelection ? TQClipboard::Selection : TQClipboard::Clipboard);
|
|
|
|
TQClipboard::Mode mode = (copyMode == CopyToSelection ? TQClipboard::Selection : TQClipboard::Clipboard);
|
|
|
|
|
|
|
|
|
|
|
|
NoteSelection *selection = selectedNotes();
|
|
|
|
NoteSelection *selection = selectedNotes();
|
|
|
|