зеркало из https://github.com/mozilla/gecko-dev.git
62 строки
1.6 KiB
C++
62 строки
1.6 KiB
C++
/* $Id: QtBookmarkEditDialog.h,v 1.1 1998/09/25 18:01:27 ramiro%netscape.com Exp $
|
|
*
|
|
* 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 Eirik Eng.
|
|
* Further developed by Warwick Allison, Kalle Dalheimer, Eirik Eng,
|
|
* Matthias Ettrich, Arnt Gulbrandsen, Haavard Nord and Paul Olav
|
|
* Tvete. Copyright (C) 1998 Warwick Allison, Kalle Dalheimer, Eirik
|
|
* Eng, Matthias Ettrich, Arnt Gulbrandsen, Haavard Nord and Paul Olav
|
|
* Tvete. All Rights Reserved.
|
|
*/
|
|
|
|
#ifndef _QTBOOKMARKEDITDIALOG_H
|
|
#define _QTBOOKMARKEDITDIALOG_H
|
|
|
|
#include <qtvbox.h>
|
|
#include "bkmks.h"
|
|
|
|
class QLineEdit;
|
|
class QMultiLineEdit;
|
|
class QtBookmarksContext;
|
|
|
|
class QtBookmarkEditDialog : public QtVBox
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
QtBookmarkEditDialog( QtBookmarksContext* p, const char* wName = 0 );
|
|
|
|
void setEntry( BM_Entry* );
|
|
BM_Entry *bmEntry() { return entry; }
|
|
|
|
void clear();
|
|
void save();
|
|
void invalidate();
|
|
|
|
signals:
|
|
void okClicked();
|
|
void cancelClicked();
|
|
|
|
private slots:
|
|
void okSlot();
|
|
void cancelSlot();
|
|
|
|
private:
|
|
QLineEdit *name;
|
|
QLineEdit *location;
|
|
QMultiLineEdit *description;
|
|
|
|
BM_Entry *entry;
|
|
QtBookmarksContext *parent;
|
|
};
|
|
|
|
#endif
|