2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2001 The LyX Team.
9 * ======================================================
11 * \file ControlVCLog.h
12 * \author John Levon, moz@compsoc.man.ac.uk
13 * \author Angus Leeming <a.leeming@ic.ac.uk>
16 #ifndef CONTROLVCLOG_H
17 #define CONTROLVCLOG_H
25 #include "ControlConnections.h"
28 * A controller for the Version Control log viewer.
30 class ControlVCLog : public ControlConnectBD {
33 ControlVCLog(LyXView &, Dialogs &);
35 string const & logfile() { return logfile_; }
39 virtual void apply() {}
42 /// Update the dialog.
43 virtual void update();
52 /** A class to instantiate and make available the GUI-specific
53 ButtonController and View.
55 template <class GUIview, class GUIbc>
56 class GUIVCLog : public ControlVCLog {
59 GUIVCLog(LyXView &, Dialogs &);
61 virtual ButtonControllerBase & bc() { return bc_; }
63 virtual ViewBase & view() { return view_; }
67 ButtonController<OkCancelPolicy, GUIbc> bc_;
72 template <class GUIview, class GUIbc>
73 GUIVCLog<GUIview, GUIbc>::GUIVCLog(LyXView & lv, Dialogs & d)
74 : ControlVCLog(lv, d),
78 #endif // CONTROLVCLOG_H