[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/lib/kofficeui
From: Thorsten Zachmann <t.zachmann () zagge ! de>
Date: 2005-10-08 5:34:30
Message-ID: 1128749670.239698.20353.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 468432 by zachmann:
o Added new Class for handling guide lines. This is a first version.
More to come :-).
o Added signals to KoRuler which can be connected to KoGuideLines.
GUI:
M +4 -2 Makefile.am
A koGuideLines.cpp [License: UNKNOWN]
A koGuideLines.h [License: UNKNOWN]
M +9 -5 koRuler.cc
M +2 -0 koRuler.h
--- trunk/koffice/lib/kofficeui/Makefile.am #468431:468432
@@ -19,7 +19,8 @@
tkaction.cpp tkcoloractions.cpp tkcombobox.cpp tktoolbarbutton.cpp \
koCharSelectDia.cc koInsertLink.cc koeditpath.cc kocommandhistory.cpp \
koselectaction.cpp kolinewidthaction.cpp kolinestyleaction.cpp \
- kotoolbutton.cc koImageResource.cc kotoolbox.cc kozoomhandler.cpp
+ kotoolbutton.cc koImageResource.cc kotoolbox.cc kozoomhandler.cpp \
+ koGuideLines.cpp
libkofficeui_la_LDFLAGS = -version-info 3:0:0 -no-undefined $(all_libraries)
libkofficeui_la_LIBADD = $(LIB_KOFFICECORE)
@@ -34,7 +35,8 @@
tkaction.h tkcoloractions.h tktoolbarbutton.h tkcombobox.h \
koCharSelectDia.h koInsertLink.h kotoolbutton.h koeditpath.h \
kocommandhistory.h koImageResource.h \
- koselectaction.h kolinewidthaction.h kolinestyleaction.h kozoomhandler.h
+ koselectaction.h kolinewidthaction.h kolinestyleaction.h kozoomhandler.h \
+ koGuideLines.h
# FIXME: Disabled for now as it breaks the installation process if
# KOffice is not installed in $KDEDIR
--- trunk/koffice/lib/kofficeui/koRuler.cc #468431:468432
@@ -649,6 +649,7 @@
}
else if( d->action == A_HELPLINES )
{
+ emit addGuide( e->pos(), orientation == Qt::Horizontal, orientation == \
Qt::Horizontal ? size().height() : size().width() ); emit addHelpline( e->pos(), \
orientation == Qt::Horizontal); setCursor( ArrowCursor );
}
@@ -858,7 +859,8 @@
}
if( d->action == A_HELPLINES )
{
- emit moveHelpLines( e->pos(), orientation == Qt::Horizontal);
+ emit moveGuide( e->pos(), true, size().height() );
+ emit moveHelpLines( e->pos(), true );
}
return;
@@ -913,12 +915,14 @@
default: break;
}
}
+
+ if( d->action == A_HELPLINES )
+ {
+ emit moveGuide( e->pos(), false, size().width() );
+ emit moveHelpLines( e->pos(), false );
+ }
} break;
}
- if( d->action == A_HELPLINES )
- {
- emit moveHelpLines( e->pos(), orientation == Qt::Horizontal);
- }
d->oldMx = mx;
d->oldMy = my;
--- trunk/koffice/lib/kofficeui/koRuler.h #468431:468432
@@ -267,6 +267,8 @@
void tabListChanged( const KoTabulatorList & );
void unitChanged( KoUnit::Unit );
+ void addGuide(const QPoint &, bool, int );
+ void moveGuide( const QPoint &, bool, int );
void addHelpline(const QPoint &, bool );
void moveHelpLines( const QPoint &, bool );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic