- Use Layout manager

- Styling


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32870 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Ruiz Dorantes
2009-08-31 19:21:50 +00:00
parent 214f370653
commit a53e31dde4
2 changed files with 112 additions and 105 deletions
+21 -23
View File
@@ -1,12 +1,9 @@
/*
* Copyright 2007-2008 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
*
* All rights reserved. Distributed under the terms of the MIT License.
*
* All rights reserved. Distributed under the terms of the MIT License.
*/
#ifndef _PINCODE_REQUEST_WINDOW_H
#define _PINCODE_REQUEST_WINDOW_H
#ifndef _PINCODE_REQUEST_WINDOW_H
#define _PINCODE_REQUEST_WINDOW_H
#include <View.h>
@@ -18,44 +15,45 @@ class BStringView;
class BButton;
class BTextControls;
namespace Bluetooth {
namespace Bluetooth {
class RemoteDevice;
class PincodeView : public BView
class PincodeView : public BView
{
public:
/* Constructors & Destructor*/
PincodeView(BRect rect);
void SetBDaddr(const char* address);
BStringView* fMessage;
BStringView* fRemoteInfo;
BButton* fAcceptButton;
BButton* fCancelButton;
BTextControl* fPincodeText;
BStringView* fMessage;
BStringView* fRemoteInfo;
BButton* fAcceptButton;
BButton* fCancelButton;
BTextControl* fPincodeText;
};
class PincodeWindow : public BWindow
class PincodeWindow : public BWindow
{
public:
PincodeWindow(bdaddr_t address, hci_id hid);
virtual void MessageReceived(BMessage *msg);
virtual bool QuitRequested();
PincodeWindow(bdaddr_t address, hci_id hid);
PincodeWindow(RemoteDevice* rDevice);
virtual void MessageReceived(BMessage *msg);
virtual bool QuitRequested();
private:
PincodeView* fView;
bdaddr_t bdaddr;
bdaddr_t bdaddr;
bdaddr_t fBdaddr;
hci_id fHid;
};
}
#ifndef _BT_USE_EXPLICIT_NAMESPACE
#ifndef _BT_USE_EXPLICIT_NAMESPACE
using Bluetooth::PincodeWindow;
#endif
#endif
#endif