2003-10-29 10:47:21 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
/**
|
|
|
|
|
* \file dispatchresult.h
|
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
|
*
|
|
|
|
|
* \author none
|
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef DISPATCH_RESULT_H
|
|
|
|
|
#define DISPATCH_RESULT_H
|
|
|
|
|
|
2004-03-18 12:53:43 +00:00
|
|
|
|
/// Maybe this can go entirely
|
2003-10-29 10:47:21 +00:00
|
|
|
|
class DispatchResult {
|
|
|
|
|
public:
|
2004-03-18 12:53:43 +00:00
|
|
|
|
///
|
|
|
|
|
DispatchResult() : dispatched_(false), update_(false) {}
|
|
|
|
|
///
|
|
|
|
|
DispatchResult(bool disp, bool upd) : dispatched_(disp), update_(upd) {}
|
|
|
|
|
//
|
|
|
|
|
bool dispatched() const { return dispatched_; }
|
|
|
|
|
///
|
|
|
|
|
void dispatched(bool disp) { dispatched_ = disp; }
|
|
|
|
|
///
|
|
|
|
|
bool update() const { return update_; }
|
|
|
|
|
///
|
|
|
|
|
void update(bool up) { update_ = up; }
|
2003-10-29 13:24:57 +00:00
|
|
|
|
private:
|
2004-03-18 12:53:43 +00:00
|
|
|
|
/// was the event fully dispatched?
|
2003-11-01 15:45:19 +00:00
|
|
|
|
bool dispatched_;
|
2004-03-18 12:53:43 +00:00
|
|
|
|
/// do we need to redraw the screen afterwards?
|
2003-11-03 19:52:47 +00:00
|
|
|
|
bool update_;
|
2003-10-29 10:47:21 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // DISPATCH_RESULT_H
|