4a0c1e139d
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39771 a95241bf-73f2-0310-859d-f6bbb57e9c96
60 lines
1.1 KiB
C++
60 lines
1.1 KiB
C++
/*
|
|
* AddPrinterDlg.cpp
|
|
* Copyright 1999-2000 Y.Takagi. All Rights Reserved.
|
|
*/
|
|
|
|
#include "DialogWindow.h"
|
|
|
|
#include <ListItem.h>
|
|
#include <View.h>
|
|
|
|
class BListView;
|
|
class BTextView;
|
|
|
|
class PrinterData;
|
|
class PrinterCap;
|
|
class ProtocolClassCap;
|
|
|
|
class ProtocolClassItem : public BStringItem {
|
|
public:
|
|
ProtocolClassItem(const ProtocolClassCap* cap);
|
|
|
|
int GetProtocolClass() const;
|
|
const char* GetDescription() const;
|
|
|
|
private:
|
|
const ProtocolClassCap *fProtocolClassCap;
|
|
};
|
|
|
|
class AddPrinterView : public BView {
|
|
public:
|
|
AddPrinterView(PrinterData* printerData,
|
|
const PrinterCap* printerCap);
|
|
~AddPrinterView();
|
|
virtual void AttachedToWindow();
|
|
void MessageReceived(BMessage* msg);
|
|
|
|
void Save();
|
|
|
|
private:
|
|
ProtocolClassItem* CurrentSelection();
|
|
|
|
PrinterData* fPrinterData;
|
|
const PrinterCap* fPrinterCap;
|
|
|
|
BListView* fProtocolClassList;
|
|
BTextView* fDescription;
|
|
};
|
|
|
|
|
|
class AddPrinterDlg : public DialogWindow {
|
|
public:
|
|
AddPrinterDlg(PrinterData *printerData,
|
|
const PrinterCap *printerCap);
|
|
void MessageReceived(BMessage *msg);
|
|
|
|
private:
|
|
AddPrinterView* fAddPrinterView;
|
|
};
|
|
|