This is the full header of BTextControl

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3583 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marc Flerackers
2003-06-20 10:09:19 +00:00
parent ce189e5c0b
commit 12c3dcc26d
+29 -21
View File
@@ -19,10 +19,11 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
//
// File Name: TextControl.h
// File Name: TextControl.cpp
// Author: Frans van Nispen ([email protected])
// Description: BTextControl displays text that can act like a control.
//------------------------------------------------------------------------------
#ifndef _TEXT_CONTROL_H
#define _TEXT_CONTROL_H
@@ -31,8 +32,7 @@
// System Includes -------------------------------------------------------------
#include <BeBuild.h>
#include <Control.h>
#include <InterfaceDefs.h>
#include <TextView.h> // For convenience
#include <TextView.h> /* For convenience */
// Project Includes ------------------------------------------------------------
@@ -42,18 +42,21 @@
// Globals ---------------------------------------------------------------------
class _BTextInput_;
// BTextControl class -----------------------------------------------------------
// BTextControl class ----------------------------------------------------------
class BTextControl : public BControl {
public:
BTextControl(BRect frame, const char* name,
BTextControl(BRect frame,
const char *name,
const char *label,
const char* initial_text, BMessage* message,
const char *initial_text,
BMessage *message,
uint32 rmask = B_FOLLOW_LEFT | B_FOLLOW_TOP,
uint32 flags = B_WILL_DRAW | B_NAVIGABLE);
virtual ~BTextControl();
BTextControl(BMessage *data);
static BArchivable *Instantiate(BMessage *data);
virtual status_t Archive(BMessage *data, bool deep = true) const;
@@ -87,13 +90,14 @@ public:
virtual void ResizeToPreferred();
virtual void MessageReceived(BMessage *msg);
virtual BHandler *ResolveSpecifier(BMessage* msg, int32 index,
BMessage* specifier, int32 form,
virtual BHandler *ResolveSpecifier(BMessage *msg,
int32 index,
BMessage *specifier,
int32 form,
const char *property);
virtual void MouseUp(BPoint pt);
virtual void MouseMoved(BPoint pt, uint32 code,
const BMessage* msg);
virtual void MouseMoved(BPoint pt, uint32 code, const BMessage *msg);
virtual void DetachedFromWindow();
virtual void AllAttached();
@@ -101,11 +105,13 @@ public:
virtual status_t GetSupportedSuites(BMessage *data);
virtual void SetFlags(uint32 flags);
// Private or reserved ---------------------------------------------------------
/*----- Private or reserved -----------------------------------------*/
virtual status_t Perform(perform_code d, void *arg);
private:
friend class _BTextInput_;
virtual void _ReservedTextControl1();
virtual void _ReservedTextControl2();
virtual void _ReservedTextControl3();
@@ -113,28 +119,31 @@ private:
BTextControl &operator=(const BTextControl &);
// this one is not defined, so I guess I am on my own here
_BTextInput_* fText;
void CommitValue();
void InitData(const char *label,
const char *initial_text,
BMessage *data = NULL);
char* fUnusedCharP; //fLabel; // this is in BControl
_BTextInput_ *fText;
char *fLabel;
BMessage *fModificationMessage;
alignment fLabelAlign;
float fDivider;
// uint16 fPrevWidth;
// uint16 fPrevHeight;
uint32 _reserved[4];
uint16 fPrevWidth;
uint16 fPrevHeight;
uint32 _reserved[3]; /* was 4 */
#if !_PR3_COMPATIBLE_
uint32 _more_reserved[4];
#endif
bool fClean;
bool fSkipSetFlags; // will use this for SHIFT-TAB
bool fSkipSetFlags;
bool fUnusedBool1;
bool fUnusedBool2;
};
//------------------------------------------------------------------------------
#endif // _TEXTCONTROL_H
#endif // _TEXT_CONTROL_H
/*
* $Log $
@@ -142,4 +151,3 @@ private:
* $Id $
*
*/