This commit is contained in:
pinkerton%netscape.com 1998-10-02 19:18:26 +00:00
Родитель 0f8d93d47c
Коммит 1e386d589b
2 изменённых файлов: 211 добавлений и 0 удалений

Просмотреть файл

@ -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 ( )
{
}

Просмотреть файл

@ -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