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

📄 timetextctrl.h

📁 Audacity是一款用於錄音和編輯聲音的、免費的開放源碼軟體。它可以執行於Mac OS X、Microsoft Windows、GNU/Linux和其它作業系統
💻 H
字号:
/**********************************************************************  Audacity: A Digital Audio Editor  TimeTextCtrl.h  Dominic Mazzoni  See TimeTextCtrl.cpp for documentation on how to use the  format string to specify how a TimeTextCtrl's fields are  laid out.**********************************************************************/#ifndef __AUDACITY_TIME_TEXT_CTRL__#define __AUDACITY_TIME_TEXT_CTRL__#include <wx/defs.h>#include <wx/event.h>#include <wx/panel.h>#include <wx/stattext.h>#include <wx/string.h>#include <wx/textctrl.h>class TimeField;WX_DECLARE_OBJARRAY(TimeField, TimeFieldArray);class TimeTextCtrl: public wxPanel{ public:   TimeTextCtrl(wxWindow *parent,                wxWindowID id,                wxString formatString = wxT(""),                double timeValue = 0.0,                double sampleRate = 44100,                const wxPoint &pos = wxDefaultPosition,                const wxSize &size = wxDefaultSize);   bool HasAnyFocus();   void SetFormatString(wxString formatString);   void SetSampleRate(double sampleRate);   void SetTimeValue(double newTime);   const double GetTimeValue();   wxString GetTimeString();   static int  GetNumBuiltins();   static wxString GetBuiltinName(int index);   static wxString GetBuiltinFormat(int index); private:   void OnText(wxCommandEvent &event);   void ParseFormatString();   void DeleteControls();   void CreateControls();   void ValueToControls();   void ControlsToValue();   void ComputeTextExtents();   void PrintDebugInfo();   double         mTimeValue;   double         mSampleRate;   wxString       mFormatString;   bool           mModifyingText;   wxString       mPrefix;   wxStaticText  *mPrefixStaticText;   TimeFieldArray mWholeFields;   TimeFieldArray mFracFields;   double         mScalingFactor;   static int     sTextWidth[11];   static int     sTextHeight;   DECLARE_EVENT_TABLE()};#endif // __AUDACITY_TIME_TEXT_CTRL__// Indentation settings for Vim and Emacs.// Please do not modify past this point.//// Local Variables:// c-basic-offset: 3// indent-tabs-mode: nil// End://// vim: et sts=3 sw=3// 

⌨️ 快捷键说明

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