controller_ = controller;
}
+Controller & Dialog::controller() const
+{
+ BOOST_ASSERT(controller_);
+ return *controller_;
+}
+
Controller::Controller(Dialog & parent)
: parent_(parent)
}
-Controller & Dialog::controller() const
-{
- BOOST_ASSERT(controller_);
- return *controller_;
-}
-
-
-void Dialog::setViewTitle(docstring const & newtitle)
-{
- title_ = newtitle;
-}
-
-
-docstring const & Dialog::getViewTitle() const
-{
- return title_;
-}
-
-
} // namespace frontend
} // namespace lyx
*/
virtual void partialUpdateView(int /*id*/) {}
- /// sets the title of the dialog (window caption)
- void setViewTitle(docstring const &);
- /// gets the title of the dialog (window caption)
- docstring const & getViewTitle() const;
///
std::string name() const { return name_; }
*/
std::string name_;
Controller * controller_;
-
- docstring title_;
};
setViewTitle(_("Citation"));
setController(new ControlCitation(*this));
- setWindowTitle(toqstr("LyX: " + getViewTitle()));
-
connect(citationStyleCO, SIGNAL(activated(int)),
this, SLOT(changed()));
connect(fulllistCB, SIGNAL(clicked()),
connect(closePB, SIGNAL(clicked()), this, SLOT(accept()));
- setWindowTitle(qt_("LyX: Delimiters"));
setFocusProxy(leftLW);
leftLW->setViewMode(QListView::IconMode);
{}
+void GuiDialog::setViewTitle(docstring const & title)
+{
+ setWindowTitle("LyX: " + toqstr(title));
+}
+
+
void GuiDialog::setButtonsValid(bool valid)
{
bc().setValid(valid);
if (controller().exitEarly())
return;
- setWindowTitle(toqstr("LyX: " + getViewTitle()));
-
if (QWidget::isVisible()) {
raise();
activateWindow();
void preUpdate();
void postUpdate();
+ void setViewTitle(docstring const & title);
+
///
bool readOnly() const;
namespace frontend {
-GuiEmbeddedFilesDialog::GuiEmbeddedFilesDialog(ControlEmbeddedFiles & controller)
+GuiEmbeddedFilesDialog::GuiEmbeddedFilesDialog
+ (ControlEmbeddedFiles & controller)
: controller_(controller)
{
setupUi(this);
- setWindowTitle(qt_("Embedded Files"));
-
+ setWindowTitle("LyX: " + qt_("Embedded Files"));
updateView();
}
setViewTitle(_("Math Matrix"));
setController(new ControlMath(*this));
- setWindowTitle(qt_("LyX: Insert Matrix"));
-
table->setMinimumSize(100, 100);
rowsSB->setValue(5);
columnsSB->setValue(5);
namespace lyx {
/// return the Qt form of the label
-static docstring const getLabel(docstring const & ucs4str) {
+static docstring const getLabel(docstring const & ucs4str)
+{
// FIXME UNICODE
string str = to_utf8(ucs4str);
string label;
- string sc(split(str, label, '|'));
+ string sc = split(str, label, '|');
if (sc.length() < 2)
return from_utf8(label);
string::size_type pos = label.find(sc[1]);