mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 18:24:48 +00:00
set eol-style.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20862 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
71ea6e7a8b
commit
bdc2a753d7
@ -248,13 +248,13 @@ void EmbeddedFilesWidget::on_enableCB_toggled(bool enable)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
GuiEmbeddedFiles::GuiEmbeddedFiles(GuiViewBase & parent, Qt::DockWidgetArea area, Qt::WindowFlags flags)
|
GuiEmbeddedFiles::GuiEmbeddedFiles(GuiViewBase & parent, Qt::DockWidgetArea area, Qt::WindowFlags flags)
|
||||||
: DockView(parent, "embedded", area, flags)
|
: DockView(parent, "embedded", area, flags)
|
||||||
{
|
{
|
||||||
widget_ = new EmbeddedFilesWidget(*this);
|
widget_ = new EmbeddedFilesWidget(*this);
|
||||||
setWidget(widget_);
|
setWidget(widget_);
|
||||||
setWindowTitle(widget_->windowTitle());
|
setWindowTitle(widget_->windowTitle());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void GuiEmbeddedFiles::updateView()
|
void GuiEmbeddedFiles::updateView()
|
||||||
@ -387,13 +387,13 @@ bool GuiEmbeddedFiles::update(EmbeddedFile const & item)
|
|||||||
|
|
||||||
Dialog * createGuiEmbeddedFiles(LyXView & lv)
|
Dialog * createGuiEmbeddedFiles(LyXView & lv)
|
||||||
{
|
{
|
||||||
GuiViewBase & guiview = static_cast<GuiViewBase &>(lv);
|
GuiViewBase & guiview = static_cast<GuiViewBase &>(lv);
|
||||||
#ifdef Q_WS_MACX
|
#ifdef Q_WS_MACX
|
||||||
// On Mac show as a drawer at the right
|
// On Mac show as a drawer at the right
|
||||||
return new GuiEmbeddedFiles(guiview, Qt::RightDockWidgetArea, Qt::Drawer);
|
return new GuiEmbeddedFiles(guiview, Qt::RightDockWidgetArea, Qt::Drawer);
|
||||||
#else
|
#else
|
||||||
return new GuiEmbeddedFiles(guiview, Qt::RightDockWidgetArea);
|
return new GuiEmbeddedFiles(guiview, Qt::RightDockWidgetArea);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -24,14 +24,14 @@ class EmbeddedFilesWidget;
|
|||||||
|
|
||||||
class GuiEmbeddedFiles : public DockView
|
class GuiEmbeddedFiles : public DockView
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
///
|
///
|
||||||
GuiEmbeddedFiles(
|
GuiEmbeddedFiles(
|
||||||
GuiViewBase & parent, ///< the main window where to dock.
|
GuiViewBase & parent, ///< the main window where to dock.
|
||||||
Qt::DockWidgetArea area = Qt::LeftDockWidgetArea, ///< Position of the dock (and also drawer)
|
Qt::DockWidgetArea area = Qt::LeftDockWidgetArea, ///< Position of the dock (and also drawer)
|
||||||
Qt::WindowFlags flags = 0);
|
Qt::WindowFlags flags = 0);
|
||||||
///
|
///
|
||||||
void updateView();
|
void updateView();
|
||||||
|
|
||||||
@ -71,8 +71,8 @@ public:
|
|||||||
bool update(EmbeddedFile const & item);
|
bool update(EmbeddedFile const & item);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
///
|
///
|
||||||
EmbeddedFilesWidget * widget_;
|
EmbeddedFilesWidget * widget_;
|
||||||
///
|
///
|
||||||
std::string message_;
|
std::string message_;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user