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

📄 vfilesel.h

📁 源码PonyProg2000-2.07a.tar.gz
💻 H
字号:
//===============================================================// vfilesel.h - reply modal dialog//// Copyright (C) 1995,1996  Bruce E. Wampler//// This file is part of the V C++ GUI Framework, and is covered// under the terms of the GNU Library General Public License,// Version 2. This library has NO WARRANTY. See the source file// vapp.cxx for more complete information about license terms.//===============================================================#ifndef VFILESEL_H#define VFILESEL_H#include <v/vmodald.h>#define maxFiles 800#define maxDirs 200#define maxFileLen 200    class vApp;    class vFileSelect : protected vModalDialog      {      public:		//---------------------------------------- public	vFileSelect(vBaseWindow* bw, VCONST char* title = "File Select") : 	    vModalDialog(bw,title) { _cmdsAdded = 0; }	vFileSelect(vApp* aw, VCONST char* title = "File Select") : 	    vModalDialog(aw,title) { _cmdsAdded = 0; }	~vFileSelect() {}	int FileSelect(VCONST char* msg, char* filename, 	    const int maxlen, char** filter, int& filterIndex);	int FileSelectSave(VCONST char* msg, char* filename, 	    const int maxlen, char** filter, int& filterIndex);      protected:	//--------------------------------------- protected      private:		//--------------------------------------- private	int curSel;	int dirSel;	int _cmdsAdded;	int _curFilter;	int _showHidden;	const char* fileFilter;	char **filterPtr;		// ptr to filter list	char curDir[maxFileLen];	// to hold current dir	char origFile[maxFileLen];	// to hold original file	char* fileList[maxFiles];	// the list of files	char* dirList[maxFiles];	// the list of directories	virtual void DialogCommand(ItemVal id, ItemVal val, CmdType ctype);	void GetDirList(const char *dir, const char* wild, 	    char** filelist, const int max, char** dirlist, const int maxdir);      };#endif

⌨️ 快捷键说明

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