Files
Mozilla/mozilla/cmd/dialup/mac/muc/LMUCDialog.h
dmose%mozilla.org 68d3ee8a2a updating license to xPL 1.1
git-svn-id: svn://10.0.0.236/trunk@52535 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 07:16:31 +00:00

121 lines
3.0 KiB
C++

/* -*- 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.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#pragma once
#include <LDialogBox.h>
#include <LListBox.h>
#include <LGADialogBox.h>
#include "MUC.h"
#include "LPPPPopup.h"
#define msg_SingleClick 424
class LSingleClickListBox: public LListBox
{
public:
enum { class_ID = 'Lsng' };
static void* CreateSingleClickListBox( LStream* inStream );
LSingleClickListBox( LStream* inStream );
void ClickSelf( const SMouseDownEvent& inMouseDown );
Boolean HandleKeyPress( const EventRecord& inKeyEvent );
void SetSingleClickMessage( MessageT inMessage );
protected:
MessageT mSingleClickMessage;
};
class LPPPListBox: public LSingleClickListBox
{
public:
enum { class_ID = 'LPPP' };
static void* CreatePPPListBox( LStream* inStream );
LPPPListBox( LStream* inStream );
void SetPPPFunction( TraversePPPListFunc p );
void UpdateList();
void SetToNamedItem( LStr255& name );
virtual Boolean FocusDraw( LPane* );
virtual void DrawSelf();
virtual void EnableSelf();
virtual void DisableSelf();
protected:
TraversePPPListFunc mFunction;
};
class LMUCDialog: public LGADialogBox
{
public:
enum { class_ID = 'Mccd' };
static void* CreateMUCDialogStream( LStream* inStream );
LMUCDialog( LStream* inStream );
void SetPPPFunction( TraversePPPListFunc p );
void GetNewValue( LStr255& name );
void UpdateList();
void UpdateButtonState();
virtual void ListenToMessage( MessageT inMessage, void* ioParam );
protected:
virtual void FinishCreateSelf();
LPPPListBox* mListBox;
};
class LMUCEditDialog: public LGADialogBox
{
public:
enum { class_ID = 'Mcce' };
static void* CreateMUCEditDialogStream( LStream* inStream );
LMUCEditDialog( LStream* inStream );
void GetNewValues( LStr255& outModemName,
LStr255& outAccountName,
LStr255& outLocationName );
void SetInitialValue( const LStr255& modem,
const LStr255& account,
const LStr255& location );
void UpdateLists();
void UpdateButtonState();
virtual void ListenToMessage( MessageT inMessage, void* ioParam );
protected:
virtual void FinishCreateSelf();
LControl* mDisabled;
LPPPPopup* mModemsList;
LPPPPopup* mLocationsList;
LPPPPopup* mAccountsList;
};