3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Abdelrazak Younes
8 * Full author contact details are available in file CREDITS.
15 #include "qt_helpers.h"
18 #include "buffer_funcs.h"
19 #include "BufferParams.h"
20 #include "BufferView.h"
22 #include "FuncRequest.h"
24 #include "insets/InsetInfo.h"
26 #include "support/debug.h"
34 /////////////////////////////////////////////////////////////////
38 /////////////////////////////////////////////////////////////////
40 GuiInfo::GuiInfo(GuiView & lv)
41 : DialogView(lv, "info", qt_("Info"))
47 void GuiInfo::on_closePB_clicked()
53 InsetInfo * GuiInfo::inset() const
55 return static_cast<InsetInfo *>(bufferview()->cursor().
56 innerInsetOfType(INFO_CODE));
60 void GuiInfo::applyView()
62 InsetInfo * ii = inset();
66 // FIXME: update the inset contents
68 updateLabels(bufferview()->buffer());
69 bufferview()->updateMetrics();
70 bufferview()->buffer().changed();
74 void GuiInfo::updateView()
76 InsetInfo * ii = inset();
78 // FIXME: A New button to create an InsetInfo at the cursor location
83 //FIXME: update the controls.
87 void GuiInfo::enableView(bool enable)
89 //FIXME: enable controls that need enabling.
93 void GuiInfo::dispatchParams()
98 Dialog * createGuiInfo(GuiView & lv) { return new GuiInfo(lv); }
101 } // namespace frontend
104 #include "GuiInfo_moc.cpp"