types.hpp
来自「ncbi源码」· HPP 代码 · 共 189 行
HPP
189 行
/* * =========================================================================== * PRODUCTION $Log: types.hpp,v $ * PRODUCTION Revision 1000.3 2004/06/01 19:46:07 gouriano * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.12 * PRODUCTION * =========================================================================== */#ifndef GUI___TYPES__HPP#define GUI___TYPES__HPP/* $Id: types.hpp,v 1000.3 2004/06/01 19:46:07 gouriano Exp $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Information * * This software/database is a "United States Government Work" under the * terms of the United States Copyright Act. It was written as part of * the author's official duties as a United States Government employee and * thus cannot be copyrighted. This software/database is freely available * to the public for use. The National Library of Medicine and the U.S. * Government have not placed any restriction on its use or reproduction. * * Although all reasonable efforts have been taken to ensure the accuracy * and reliability of the software and data, the NLM and the U.S. * Government do not and cannot warrant the performance or results that * may be obtained by using this software or data. The NLM and the U.S. * Government disclaim all warranties, express or implied, including * warranties of performance, merchantability or fitness for any particular * purpose. * * Please cite the author in any work or product based on this material. * * =========================================================================== * * Authors: Denis Vakatov * * File Description: * NCBI GUI types * */#include <corelib/ncbistd.hpp>#include <util/range.hpp>BEGIN_NCBI_SCOPE// enumerated type for dialog boxesenum EDialogType{ eDialog_StyleMask = 0x00ff, eDialog_Ok = 0x0001, eDialog_OkCancel = 0x0002, eDialog_YesNo = 0x0003, // flags that can modify the styles eDialog_Modal = 0x0100, eDialog_Centered = 0x0200, eDialog_CenteredAtMouse = 0x0400};typedef unsigned int TDialogType;// enumerated type for dialog iconenum EDialogIcon{ eIcon_Info, eIcon_Question, eIcon_Exclamation, eIcon_Stop};// enumerated return values for dialog boxesenum EDialogReturnValue { eCancel = 0, eNo = 0, eOK = 1, eYes = 1};// enumerated return values for dialog boxesenum EDialogTextMode { eRaw, eWrap, eHtml};//// Enumerated values for update states.// These are used by the framework to communicate between documents and views.//enum EUpdateFlags { // Used to indicate internally in a view or among sibling views that the // components selected by a view have changed. fSelectionChanged = 0x0001, // Used to indicate to a set of views bound to a document that the data // represented by the document has changed. This can be used to segregate // potentially expensive operations our from other events. fDocumentChanged = 0x0002, // Used to indicate to all documents and views that a document has been // destroyed. For this event, documents and views could verify that all // selections refer to active documents. fDocumentReleased = 0x0004, // Used to indicate to all documents and views that a new document has been // created. fDocumentCreated = 0x0008, // Used to indicated among a set of sibling views that a view has changed // its view focus. fViewChanged = 0x0010, // Used to communicate that a view has been deleted fViewReleased = 0x0020, // Used to indicate that a new view exists. fViewCreated = 0x0040, // Used to indicate that a view's visible range has changed fVisibleRangeChanged = 0x0080, // Binary mask for all events fAllEvents = 0xffffffff};typedef unsigned int TUpdateFlags; // bitwise OR of "EUpdateFlags"END_NCBI_SCOPE/* * =========================================================================== * $Log: types.hpp,v $ * Revision 1000.3 2004/06/01 19:46:07 gouriano * PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.12 * * Revision 1.12 2004/05/03 12:38:28 dicuccio * Deleted dead code * * Revision 1.11 2004/03/11 17:14:27 dicuccio * FIxed previous comment - deprecated TPosition, TDimension, TIndex * * Revision 1.10 2004/03/11 17:13:11 dicuccio * Deprecated typedefs: TPosition, TDimension, TIndex * * Revision 1.9 2003/11/07 17:16:43 jcherry * Added optional line-wrapping and html display * * Revision 1.8 2003/10/20 15:14:34 johnson * tweaked EDialogType such that one can specify modality as well as button * style. * * Revision 1.7 2003/09/29 15:09:06 dicuccio * Merged gui/core/types into gui/types * * Revision 1.6 2003/06/20 16:22:05 lebedev * New type added * * Revision 1.5 2003/01/13 13:11:41 dicuccio * Namespace clean-up. Retired namespace gui -> converted to namespace ncbi. * Moved all FLUID-generated code into namespace ncbi. * * Revision 1.4 2002/11/29 16:33:17 dicuccio * Corrected some aberrant tab placements * * Revision 1.3 2002/11/19 17:42:56 lebedev * TIndex type added * * Revision 1.2 2002/09/24 19:34:50 lebedev * include path corrected * * Revision 1.1 2002/09/19 21:49:41 vakatov * Initial revision * * =========================================================================== */#endif /* GUI___TYPES__HPP */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?