Added class PagesView for visualization of the options Reverse and Collate.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10618 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -21,6 +21,7 @@ class JobData;
|
|||||||
class PrinterData;
|
class PrinterData;
|
||||||
class PrinterCap;
|
class PrinterCap;
|
||||||
class HalftoneView;
|
class HalftoneView;
|
||||||
|
class PagesView;
|
||||||
|
|
||||||
class JobSetupView : public BView {
|
class JobSetupView : public BView {
|
||||||
public:
|
public:
|
||||||
@@ -51,6 +52,7 @@ private:
|
|||||||
BRadioButton *fAll;
|
BRadioButton *fAll;
|
||||||
BCheckBox *fCollate;
|
BCheckBox *fCollate;
|
||||||
BCheckBox *fReverse;
|
BCheckBox *fReverse;
|
||||||
|
PagesView *fPages;
|
||||||
BPopUpMenu *fPaperFeed;
|
BPopUpMenu *fPaperFeed;
|
||||||
BCheckBox *fDuplex;
|
BCheckBox *fDuplex;
|
||||||
BPopUpMenu *fNup;
|
BPopUpMenu *fNup;
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* PagesView.h
|
||||||
|
* Copyright 2005 Michael Pfeiffer. All Rights Reserved.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _PAGES_VIEW_H
|
||||||
|
#define _PAGES_VIEW_H
|
||||||
|
|
||||||
|
#include <View.h>
|
||||||
|
|
||||||
|
class PagesView : public BView
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
PagesView(BRect frame, const char* name, uint32 resizeMask, uint32 flags);
|
||||||
|
|
||||||
|
void GetPreferredSize(float *width, float *height);
|
||||||
|
void Draw(BRect rect);
|
||||||
|
|
||||||
|
void setCollate(bool collate);
|
||||||
|
void setReverse(bool reverse);
|
||||||
|
|
||||||
|
private:
|
||||||
|
void DrawPages(BPoint position, int number, int count);
|
||||||
|
void DrawPage(BPoint position, int number);
|
||||||
|
|
||||||
|
bool fCollate;
|
||||||
|
bool fReverse;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
Reference in New Issue
Block a user