Ipelib
|
#include <ipeselector_qt.h>
Inherits QListWidget.
Signals | |
void | selectionMade () |
Public Member Functions | |
PageSelector (QWidget *parent=nullptr) | |
void | fill (std::vector< QPixmap > &icons, std::vector< String > &labels) |
int | selectedIndex () const |
A Qt widget that displays a list of Ipe pages.
PageSelector::PageSelector | ( | QWidget * | parent = nullptr | ) |
Construct the widget.
If page is negative, the last view of each page is shown. Otherwise, all views of this page are shown. itemWidth is the width of the page thumbnails (the height is computed automatically).
References selectionMade().
Referenced by fill().
void PageSelector::fill | ( | std::vector< QPixmap > & | icons, |
std::vector< String > & | labels | ||
) |
References ipe::Document::countPages(), ipe::Page::countViews(), ipe::Buffer::data(), ipe::String::empty(), fill(), ipe::Thumbnail::height(), ipe::Document::page(), PageSelector(), ipe::Thumbnail::render(), selectedIndex(), selectionMade(), ipe::CanvasBase::selectPageOrView(), ipe::Page::title(), and ipe::Page::viewName().
Referenced by fill().
|
inline |
References selectionMade().
Referenced by fill().
|
signal |
Referenced by fill(), PageSelector(), and selectedIndex().