summaryrefslogtreecommitdiffstats
path: root/src/ui/view/view.h
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2007-11-11 07:52:54 +0000
committerjoncruz <joncruz@users.sourceforge.net>2007-11-11 07:52:54 +0000
commit56c66349a377d409fa5399745563d3a7fd212a56 (patch)
tree7033e91c713b42d487bcc907d8c1618a28dbb221 /src/ui/view/view.h
parentmore logical order of commands (diff)
downloadinkscape-56c66349a377d409fa5399745563d3a7fd212a56.tar.gz
inkscape-56c66349a377d409fa5399745563d3a7fd212a56.zip
Minor cleanup
(bzr r4056)
Diffstat (limited to 'src/ui/view/view.h')
-rw-r--r--src/ui/view/view.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/ui/view/view.h b/src/ui/view/view.h
index 6f0a29543..e1d4e491f 100644
--- a/src/ui/view/view.h
+++ b/src/ui/view/view.h
@@ -30,10 +30,10 @@ struct StopOnTrue {
typedef bool result_type;
template<typename T_iterator>
- result_type operator()(T_iterator first, T_iterator last) const{
- for (; first != last; ++first)
- if (*first) return true;
- return false;
+ result_type operator()(T_iterator first, T_iterator last) const{
+ for (; first != last; ++first)
+ if (*first) return true;
+ return false;
}
};
@@ -45,10 +45,10 @@ struct StopOnNonZero {
typedef int result_type;
template<typename T_iterator>
- result_type operator()(T_iterator first, T_iterator last) const{
- for (; first != last; ++first)
- if (*first) return *first;
- return 0;
+ result_type operator()(T_iterator first, T_iterator last) const{
+ for (; first != last; ++first)
+ if (*first) return *first;
+ return 0;
}
};
@@ -83,22 +83,22 @@ public:
void close() { _close(); }
/// Returns a pointer to the view's document.
- SPDocument *doc() const
+ SPDocument *doc() const
{ return _doc; }
/// Returns a pointer to the view's message stack.
- Inkscape::MessageStack *messageStack() const
+ Inkscape::MessageStack *messageStack() const
{ return _message_stack; }
/// Returns a pointer to the view's tipsMessageContext.
- Inkscape::MessageContext *tipsMessageContext() const
+ Inkscape::MessageContext *tipsMessageContext() const
{ return _tips_message_context; }
void setPosition(gdouble x, gdouble y);
- void setPosition(NR::Point const &p);
+ void setPosition(NR::Point const &p);
void emitResized(gdouble width, gdouble height);
- void requestRedraw();
+ void requestRedraw();
// view subclasses must give implementations of these methods
-
+
virtual bool shutdown() = 0;
virtual void mouseover() = 0;
virtual void mouseout() = 0;