2005-01-09 20:39:30 +03:00
|
|
|
/*
|
|
|
|
* 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);
|
|
|
|
|
2010-12-08 23:07:22 +03:00
|
|
|
void SetCollate(bool collate);
|
|
|
|
void SetReverse(bool reverse);
|
2005-01-09 20:39:30 +03:00
|
|
|
|
|
|
|
private:
|
2010-12-08 23:07:22 +03:00
|
|
|
void _DrawPages(BPoint position, int number, int count);
|
|
|
|
void _DrawPage(BPoint position, int number);
|
2005-01-09 20:39:30 +03:00
|
|
|
|
|
|
|
bool fCollate;
|
|
|
|
bool fReverse;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|