From c26e935dc929068b641798bdeb4ab80ec98c674d Mon Sep 17 00:00:00 2001 From: Pritpal Bedi Date: Fri, 3 Jul 2009 01:23:04 +0000 Subject: [PATCH] 2009-07-02 18:19 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) + harbour/contrib/hbxbp/xbpfiledialog.prg + harbour/contrib/hbxbp/xbpfontdialog.prg + Added skeletons for XbpFontDialog() | XbpFont() | XbpFileDialog() classes --- harbour/ChangeLog | 5 + harbour/contrib/hbxbp/xbpfiledialog.prg | 248 ++++++++++++ harbour/contrib/hbxbp/xbpfontdialog.prg | 491 ++++++++++++++++++++++++ 3 files changed, 744 insertions(+) create mode 100644 harbour/contrib/hbxbp/xbpfiledialog.prg create mode 100644 harbour/contrib/hbxbp/xbpfontdialog.prg diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 17b63ff173..275dfe0ead 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,11 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-07-02 18:19 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) + + harbour/contrib/hbxbp/xbpfiledialog.prg + + harbour/contrib/hbxbp/xbpfontdialog.prg + + Added skeletons for XbpFontDialog() | XbpFont() | XbpFileDialog() classes + 2009-07-03 02:24 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/macro/macro.y * harbour/source/macro/macro.yyc diff --git a/harbour/contrib/hbxbp/xbpfiledialog.prg b/harbour/contrib/hbxbp/xbpfiledialog.prg new file mode 100644 index 0000000000..edb6f22bb4 --- /dev/null +++ b/harbour/contrib/hbxbp/xbpfiledialog.prg @@ -0,0 +1,248 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * Source file for the Xbp*Classes + * + * Copyright 2009 Pritpal Bedi + * http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +/*----------------------------------------------------------------------*/ +/*----------------------------------------------------------------------*/ +/* + * EkOnkar + * ( The LORD is ONE ) + * + * Xbase++ Compatible xbpFileDialog Class + * + * Pritpal Bedi + * 02Jul2009 + */ +/*----------------------------------------------------------------------*/ +/*----------------------------------------------------------------------*/ +/*----------------------------------------------------------------------*/ + +#define QFileDialog_AcceptOpen 0 +#define QFileDialog_AcceptSave 1 + +// enum #define QFileDialog_DialogLabel +// +#define QFileDialog_LookIn 0 +#define QFileDialog_FileName 1 +#define QFileDialog_FileType 2 +#define QFileDialog_Accept 3 +#define QFileDialog_Reject 4 + +// enum #define QFileDialog_FileMode +// This enum is used to indicate what the user may select in the file dialog; +// i.e. what the dialog will return if the user clicks OK. +// +#define QFileDialog_AnyFile 0 // The name of a file, whether it exists or not. +#define QFileDialog_ExistingFile 1 // The name of a single existing file. +#define QFileDialog_Directory 2 // The name of a directory. Both files and directories are displayed. +#define QFileDialog_ExistingFiles 3 // The names of zero or more existing files. + +// The Options type is a typedef for QFlags