From 78b48b94a6a28c76ee1124d270bcb2ac45475fc9 Mon Sep 17 00:00:00 2001 From: "pinkerton%netscape.com" Date: Fri, 2 Oct 1998 19:18:26 +0000 Subject: [PATCH] First Checked In. git-svn-id: svn://10.0.0.236/trunk@11786 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/cmd/macfe/gui/CRDFToolbarItem.cp | 97 +++++++++++++++++++ mozilla/cmd/macfe/gui/CRDFToolbarItem.h | 114 +++++++++++++++++++++++ 2 files changed, 211 insertions(+) create mode 100644 mozilla/cmd/macfe/gui/CRDFToolbarItem.cp create mode 100644 mozilla/cmd/macfe/gui/CRDFToolbarItem.h diff --git a/mozilla/cmd/macfe/gui/CRDFToolbarItem.cp b/mozilla/cmd/macfe/gui/CRDFToolbarItem.cp new file mode 100644 index 00000000000..c161879c54d --- /dev/null +++ b/mozilla/cmd/macfe/gui/CRDFToolbarItem.cp @@ -0,0 +1,97 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- + * + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. + * + * The Initial Developer of this code under the NPL is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. + */ + +// +// Mike Pinkerton, Netscape Communications +// +// Implementations for all the things that can go on a toolbar. +// +// CRDFToolbarItem - the base class for things that go on toolbars +// CRDFPushButton - a toolbar button +// CRDFSeparator - a separator bar +// CRDFURLBar - the url bar w/ proxy icon +// + +#include "CRDFToolbarItem.h" + +CRDFToolbarItem :: CRDFToolbarItem ( ) +{ + + +} + + +CRDFToolbarItem :: ~CRDFToolbarItem ( ) +{ + + + +} + +#pragma mark - + + +CRDFPushButton :: CRDFPushButton ( ) +{ + DebugStr("\pCreating a CRDFPushButton"); + +} + + +CRDFPushButton :: ~CRDFPushButton ( ) +{ + + + +} + +#pragma mark - + + +CRDFSeparator :: CRDFSeparator ( ) +{ + DebugStr("\pCreating a CRDFSeparator"); + + +} + + +CRDFSeparator :: ~CRDFSeparator ( ) +{ + + + +} + +#pragma mark - + + +CRDFURLBar :: CRDFURLBar ( ) +{ + DebugStr("\pCreating a CRDFURLBar"); + + +} + + +CRDFURLBar :: ~CRDFURLBar ( ) +{ + + + +} diff --git a/mozilla/cmd/macfe/gui/CRDFToolbarItem.h b/mozilla/cmd/macfe/gui/CRDFToolbarItem.h new file mode 100644 index 00000000000..8d579202634 --- /dev/null +++ b/mozilla/cmd/macfe/gui/CRDFToolbarItem.h @@ -0,0 +1,114 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- + * + * The contents of this file are subject to the Netscape Public License + * Version 1.0 (the "NPL"); you may not use this file except in + * compliance with the NPL. You may obtain a copy of the NPL at + * http://www.mozilla.org/NPL/ + * + * Software distributed under the NPL is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL + * for the specific language governing rights and limitations under the + * NPL. + * + * The Initial Developer of this code under the NPL is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All Rights + * Reserved. + */ + +// +// Mike Pinkerton, Netscape Communications +// +// Interfaces for all the things that can go on a toolbar. +// +// CRDFToolbarItem - the base class for things that go on toolbars +// CRDFPushButton - a toolbar button +// CRDFSeparator - a separator bar +// CRDFURLBar - the url bar w/ proxy icon +// + +#pragma once + + +// +// class CRDFToolbarItem +// +// The base class for things that go on toolbars. This is a virtual class +// and should never be instantiated by itself. +// +class CRDFToolbarItem +{ +public: + + +private: + // don't instantiate one of these + CRDFToolbarItem ( ) ; + virtual ~CRDFToolbarItem ( ) ; + + // items cannot be passed by value because they exist in 1-to-1 + // correspondance with UI elements + CRDFToolbarItem( const CRDFToolbarItem& ); // DON'T IMPLEMENT + CRDFToolbarItem& operator=( const CRDFToolbarItem& ); // DON'T IMPLEMENT + +}; // CRDFToolbarItem + + +// +// class CRDFPushButton +// +// It's a button, it's a slicer, it's a mulcher, it's a .... +// +class CRDFPushButton : public CRDFToolbarItem +{ +public: + CRDFPushButton ( ) ; + virtual ~CRDFPushButton ( ) ; + +private: + // items cannot be passed by value because they exist in 1-to-1 correspondance + // with UI elements + CRDFPushButton( const CRDFPushButton& ); // DON'T IMPLEMENT + CRDFPushButton& operator=( const CRDFPushButton& ); // DON'T IMPLEMENT + +}; // CRDFToolbarItem + + +// +// class CRDFSeparator +// +// Draws a 3d-beveled vertical separator between portions of toolbars. +// +class CRDFSeparator : public CRDFToolbarItem +{ +public: + CRDFSeparator ( ) ; + virtual ~CRDFSeparator ( ) ; + +private: + // items cannot be passed by value because they exist in 1-to-1 correspondance + // with UI elements + CRDFSeparator( const CRDFSeparator& ); // DON'T IMPLEMENT + CRDFSeparator& operator=( const CRDFSeparator& ); // DON'T IMPLEMENT + +}; // CRDFToolbarItem + + +// +// class CRDFURLBar +// +// Our fabled url entry bar with page proxy icon. +// +class CRDFURLBar : public CRDFToolbarItem +{ +public: + CRDFURLBar ( ) ; + virtual ~CRDFURLBar ( ) ; + +private: + // items cannot be passed by value because they exist in 1-to-1 correspondance + // with UI elements + CRDFURLBar( const CRDFURLBar& ); // DON'T IMPLEMENT + CRDFURLBar& operator=( const CRDFURLBar& ); // DON'T IMPLEMENT + +}; // CRDFToolbarItem