dlg_messagebox.hpp

来自「ncbi源码」· HPP 代码 · 共 123 行

HPP
123
字号
/* * =========================================================================== * PRODUCTION $Log: dlg_messagebox.hpp,v $ * PRODUCTION Revision 1000.0  2003/10/31 21:28:33  gouriano * PRODUCTION PRODUCTION: IMPORTED [ORIGINAL] Dev-tree R1.3 * PRODUCTION * =========================================================================== */#ifndef GUI_CORE_ALGO_ALIGN___DLG_MESSAGEBOX_HPP#define GUI_CORE_ALGO_ALIGN___DLG_MESSAGEBOX_HPP/*  $Id: dlg_messagebox.hpp,v 1000.0 2003/10/31 21:28:33 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:  Yuri Kapustin * * File Description: *    CDlgMessageBox -- FLTK-based message box class */#include <corelib/ncbistd.hpp>#include <FL/Fl.H>#include <FL/Fl_Window.H>#include <FL/Fl_Button.H>#include <FL/Fl_Box.H>BEGIN_NCBI_SCOPEclass CDlgMessageBox{public:    enum EMessageBoxButton {        eID_OK         = 0x01,        eID_CANCEL     = 0x02,        eID_YES        = 0x04,        eID_NO         = 0x08,        eID_ERROR      = 0xFF    };    enum EMessageBoxType {        eMB_OK       = eID_OK,        eMB_CANCEL   = eID_CANCEL,        eMB_OKCANCEL = eID_OK  | eID_CANCEL,        eMB_YESNO    = eID_YES | eID_NO    };    CDlgMessageBox( const char* message, const char* title = "Message",                    EMessageBoxType type = eMB_OK);    virtual ~CDlgMessageBox();    virtual EMessageBoxButton DoModal();    virtual void              Show();    virtual void              Hide();    virtual void              SetText(const char*);    virtual EMessageBoxButton GetLastButtonClicked();private:    Fl_Button          *m_button [2];    Fl_Window          *m_wnd;    Fl_Box             *m_textbox;    std::string        m_title;    std::string        m_msg;    EMessageBoxButton  m_btnclicked;    static void        x_OnButtonClicked(Fl_Button*, void*);};END_NCBI_SCOPE#endif/* * =========================================================================== * $Log: dlg_messagebox.hpp,v $ * Revision 1000.0  2003/10/31 21:28:33  gouriano * PRODUCTION: IMPORTED [ORIGINAL] Dev-tree R1.3 * * Revision 1.3  2003/04/30 14:09:42  dicuccio * Updated Needleman-Wunsch plugin - produce a Seq-annot as a document; launch a * default graphical view (cross alignment viewer) * * Revision 1.2  2003/02/21 17:13:54  dicuccio * Changed enums in CDlgMessageBox - added leading 'e' to avoid * impossible-to-remove conflict with Windows code. * * Revision 1.1  2003/02/04 22:56:46  kapustin * Initial revision * * =========================================================================== */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?