- Added side pane for product preview and information - Product selection is done with a separate pushbutton, so that user gets a chance to preview the complete product information before committing to the selection - Supports two view modes: Grid View and List View - View mode is automatically stored in Settings, so it will default to the user's prefered mode - Should address most concerns in #109 and #142
This commit is contained in:
@@ -22,6 +22,8 @@
|
||||
#define TemplatePicker_h
|
||||
|
||||
|
||||
#include "TemplatePickerItem.h"
|
||||
|
||||
#include "model/Template.h"
|
||||
|
||||
#include <QList>
|
||||
@@ -38,19 +40,21 @@ namespace glabels
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
||||
/////////////////////////////////
|
||||
// Life Cycle
|
||||
/////////////////////////////////
|
||||
public:
|
||||
TemplatePicker( QWidget *parent = nullptr );
|
||||
TemplatePicker( QWidget* parent = nullptr );
|
||||
|
||||
|
||||
/////////////////////////////////
|
||||
// Properties
|
||||
/////////////////////////////////
|
||||
public:
|
||||
void setTemplates( const QList <model::Template*> &tmplates );
|
||||
void setTemplates( const QList<model::Template*>& tmplates );
|
||||
|
||||
void setMode( QListView::ViewMode mode );
|
||||
QListView::ViewMode mode() const;
|
||||
|
||||
|
||||
/////////////////////////////////
|
||||
@@ -62,7 +66,9 @@ namespace glabels
|
||||
|
||||
void applyFilter( const QStringList& names );
|
||||
|
||||
const model::Template *selectedTemplate();
|
||||
const model::Template* selectedTemplate() const;
|
||||
TemplatePickerItem* selectedItem() const;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user