lyx_mirror/src/frontends/qt/LayoutBox.h
Jean-Marc Lasgouttes c293be56bd Rename frontend qt4 to qt
In particular, the directory frontends/qt4 is renamed to frontends/qt.

Many configurations file have to be updated. All mentions of qt4 in
the source have been audited, and changed to qt if necessary.

The only part that has not been updated is the CMake build system.
2019-07-20 23:39:40 +02:00

72 lines
1.3 KiB
C++

// -*- C++ -*-
/**
* \file LayoutBox.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Lars Gullik Bjønnes
* \author John Levon
* \author Jean-Marc Lasgouttes
* \author Angus Leeming
* \author Abdelrazak Younes
*
* Full author contact details are available in file CREDITS.
*/
#ifndef LYX_LAYOUT_BOX_H
#define LYX_LAYOUT_BOX_H
#include "support/strfwd.h"
#include <QComboBox>
namespace lyx {
class DocumentClass;
class Inset;
namespace frontend {
class GuiView;
class LayoutItemDelegate;
class LayoutBox : public QComboBox
{
Q_OBJECT
public:
LayoutBox(GuiView &);
~LayoutBox();
/// select the right layout in the combobox.
void set(docstring const & layout);
/// Populate the layout combobox.
void updateContents(bool reset);
/// Add Item to Layout box according to sorting settings from preferences
void addItemSort(docstring const & item, docstring const & category,
bool sorted, bool sortedByCat, bool unknown);
///
void showPopup();
///
bool eventFilter(QObject * o, QEvent * e);
///
QString const & filter() const;
private Q_SLOTS:
///
void selected(int index);
///
void setIconSize(QSize size);
private:
friend class LayoutItemDelegate;
class Private;
Private * const d;
};
} // namespace frontend
} // namespace lyx
#endif // LYX_LAYOUT_BOX_H