⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 flu_toggle_group.h

📁 ncbi源码
💻 H
字号:
/* * =========================================================================== * PRODUCTION $Log: Flu_Toggle_Group.h,v $ * PRODUCTION Revision 1000.0  2004/04/12 18:22:24  gouriano * PRODUCTION PRODUCTION: IMPORTED [CATCHUP_003] Dev-tree R1.1 * PRODUCTION * =========================================================================== *//* * These files were imported into NCBI's CVS directly from FLU version 2.9.1. * Modifications to the source are listed below. * * ========================================================================== * $Log: Flu_Toggle_Group.h,v $ * Revision 1000.0  2004/04/12 18:22:24  gouriano * PRODUCTION: IMPORTED [CATCHUP_003] Dev-tree R1.1 * * Revision 1.1  2004/03/11 13:51:55  dicuccio * Imported FLU version 2.9.1.  Altered export specifiers to match NCBI layout. * Altered include paths to match NCBI toolkit layout. * * ========================================================================== */// $Id: Flu_Toggle_Group.h,v 1000.0 2004/04/12 18:22:24 gouriano Exp $/*************************************************************** *                FLU - FLTK Utility Widgets  *  Copyright (C) 2002 Ohio Supercomputer Center, Ohio State University * * This file and its content is protected by a software license. * You should have received a copy of this license with this file. * If not, please contact the Ohio Supercomputer Center immediately: * Attn: Jason Bryan Re: FLU 1224 Kinnear Rd, Columbus, Ohio 43212 *  ***************************************************************/#ifndef _FLU_TOGGLE_GROUP_H#define _FLU_TOGGLE_GROUP_H#include <stdio.h>#include <string.h>/* fltk includes */#include <FL/Fl.H>#include <FL/Fl_Check_Button.H>#include <FL/fl_draw.H>#include <FL/Fl_Group.H>#include <gui/widgets/FLU/Flu_Enumerations.h>//! This class provides a group that can be toggled active or inactiveclass NCBI_GUIWIDGETS_FLU_EXPORT Flu_Toggle_Group : public Fl_Group{ public:  //! Default FLTK constructor  Flu_Toggle_Group( int x, int y, int w, int h, const char *l = 0 );  //! Activate the group  inline void activate()    { value(1); }  //! Deactivate the group  inline void deactivate()    { value(0); }  //! Get the activation state of this group.  inline int active() const    { return value(); }  //! Set the activation state of this group. 0 deactivates the group, anything else activates it.  inline void value( int v )    { chkBtn->value(v); redraw(); }  //! Get the activation state of this group.  inline int value() const    { return chkBtn->value(); }  //! Override of Fl_Group::draw()  void draw(); protected:  static void _toggleCB( Fl_Widget *w, void *arg )    { ((Flu_Toggle_Group*)arg)->toggleCB(); }  void toggleCB();  Fl_Check_Button *chkBtn;};#endif

⌨️ 快捷键说明

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