📄 flu_output.h
字号:
/* * =========================================================================== * PRODUCTION $Log: Flu_Output.h,v $ * PRODUCTION Revision 1000.0 2004/04/12 18:21:59 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_Output.h,v $ * Revision 1000.0 2004/04/12 18:21:59 gouriano * PRODUCTION: IMPORTED [CATCHUP_003] Dev-tree R1.1 * * Revision 1.1 2004/03/11 13:51:54 dicuccio * Imported FLU version 2.9.1. Altered export specifiers to match NCBI layout. * Altered include paths to match NCBI toolkit layout. * * ========================================================================== */// $Id: Flu_Output.h,v 1000.0 2004/04/12 18:21:59 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_OUTPUT_H#define _FLU_OUTPUT_H#include <FL/Fl_Output.H>#include <stdlib.h>#include <string.h>#include <stdio.h>#include <gui/widgets/FLU/Flu_Enumerations.h>//! This class simply extends Fl_Output to allow getting/setting the widget value as integers and floats in addition to stringsclass NCBI_GUIWIDGETS_FLU_EXPORT Flu_Output : public Fl_Output{ public: //! Normal FLTK widget constructor Flu_Output( int X,int Y,int W,int H,const char *l = 0 ); //! Default destructor ~Flu_Output(); //! \return the value of the widget as an integer inline int ivalue() const { return atoi( value() ); } //! Set the value of the widget as an integer using the given \c printf style format string inline void ivalue( int v, const char *format = "%d" ) { char buf[32]; sprintf(buf,format,v); value(buf); } //! \return the value of the widget as a float inline float fvalue() const { return atof( value() ); } //! Set the value of the widget as a float using the given \c printf style format string inline void fvalue( float v, const char *format = "%.2f" ) { char buf[32]; sprintf(buf,format,v); value(buf); }};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -