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

📄 screen.h

📁 ears-0.32, linux下有用的语音信号处理工具包
💻 H
字号:
#ifndef Screen_h#define Screen_h#pragma interface#include "others/mystring.h"#include "others/auto_ptr.h"#include "user_interface.h"class screen{public:  static screen* Instance()    { return instance_; }  static screen& InstanceRef() { return *instance_; }  void init ();    // init and draw screen  virtual void close();    void has_query () { has_query_ = true; }  void is_curses () { is_curses_ = true; }  int query (String text, char* keys);  void note (String text);    int getkey ()           { return ui_->get_key(0,0); }  int getkey (char* keys) { return ui_->get_key(0,keys); }protected:  friend bool the_real_main (int, char**);  screen (char* title="")   : is_curses_(false), has_query_(false), title_(title)  { instance_ = this; }  virtual ~screen();            // clear screen, reset state as was before  bool is_curses_, has_query_;    void showfile (char*);  private:  static screen* instance_;  auto_ptr<UserInterface*> ui_;  char* title_;};#endif

⌨️ 快捷键说明

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