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)
|
||||
{
|
||||
widget_ = new EmbeddedFilesWidget(*this);
|
||||
setWidget(widget_);
|
||||
setWindowTitle(widget_->windowTitle());
|
||||
}
|
||||
widget_ = new EmbeddedFilesWidget(*this);
|
||||
setWidget(widget_);
|
||||
setWindowTitle(widget_->windowTitle());
|
||||
}
|
||||
|
||||
|
||||
void GuiEmbeddedFiles::updateView()
|
||||
@ -387,13 +387,13 @@ bool GuiEmbeddedFiles::update(EmbeddedFile const & item)
|
||||
|
||||
Dialog * createGuiEmbeddedFiles(LyXView & lv)
|
||||
{
|
||||
GuiViewBase & guiview = static_cast<GuiViewBase &>(lv);
|
||||
#ifdef Q_WS_MACX
|
||||
// On Mac show as a drawer at the right
|
||||
return new GuiEmbeddedFiles(guiview, Qt::RightDockWidgetArea, Qt::Drawer);
|
||||
#else
|
||||
return new GuiEmbeddedFiles(guiview, Qt::RightDockWidgetArea);
|
||||
#endif
|
||||
GuiViewBase & guiview = static_cast<GuiViewBase &>(lv);
|
||||
#ifdef Q_WS_MACX
|
||||
// On Mac show as a drawer at the right
|
||||
return new GuiEmbeddedFiles(guiview, Qt::RightDockWidgetArea, Qt::Drawer);
|
||||
#else
|
||||
return new GuiEmbeddedFiles(guiview, Qt::RightDockWidgetArea);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -24,14 +24,14 @@ class EmbeddedFilesWidget;
|
||||
|
||||
class GuiEmbeddedFiles : public DockView
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
///
|
||||
GuiEmbeddedFiles(
|
||||
GuiViewBase & parent, ///< the main window where to dock.
|
||||
Qt::DockWidgetArea area = Qt::LeftDockWidgetArea, ///< Position of the dock (and also drawer)
|
||||
Qt::WindowFlags flags = 0);
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
///
|
||||
GuiEmbeddedFiles(
|
||||
GuiViewBase & parent, ///< the main window where to dock.
|
||||
Qt::DockWidgetArea area = Qt::LeftDockWidgetArea, ///< Position of the dock (and also drawer)
|
||||
Qt::WindowFlags flags = 0);
|
||||
///
|
||||
void updateView();
|
||||
|
||||
@ -71,8 +71,8 @@ public:
|
||||
bool update(EmbeddedFile const & item);
|
||||
|
||||
protected:
|
||||
///
|
||||
EmbeddedFilesWidget * widget_;
|
||||
///
|
||||
EmbeddedFilesWidget * widget_;
|
||||
///
|
||||
std::string message_;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user