]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlLog.C
Reorganised, cleaned-up and improved documentation of controllers.
[lyx.git] / src / frontends / controllers / ControlLog.C
index 5e0a7a41e886ca569f24ff3de7538d86644a92ff..40fee20f9b724479665d8e6eb3864021f38bb50c 100644 (file)
 #include "Dialogs.h"
 #include "lyxrc.h"
 
-using std::make_pair;
 using SigC::slot;
 
 ControlLog::ControlLog(LyXView & lv, Dialogs & d)
-       : ControlConnectBD(lv, d)
+       : ControlDialog<ControlConnectBD>(lv, d)
 {
        d_.showLogFile.connect(slot(this, &ControlLog::show));
 }
 
 
-void ControlLog::show()
+void ControlLog::setParams()
 {
-       if (!lv_.view()->available())
-               return;
-
-       logfile_ = lv_.view()->buffer()->getLogName();
-
-       bc().readOnly(isReadonly());
-       view().show();
-}
-
-
-void ControlLog::update()
-{
-       if (!lv_.view()->available())
-               return;
-
        logfile_ = lv_.view()->buffer()->getLogName();
-       
-       bc().readOnly(isReadonly());
-       view().update();
 }
 
 
-void ControlLog::hide()
+void ControlLog::clearParams()
 {
        logfile_.second.erase();
-       disconnect();
-       view().hide();
 }