📄 mavisctl.h
字号:
// MavisCtl.h - by Robin Hewitt, 2004-2005
// http://www.robinhewitt.com/mavis
// This is free software. See license at the bottom
// of this file for details.
//
//////////////////////////////////////////////////////////////
// Header for the main application window in MavisCtl
//
#ifndef MAVISCTL_H__
#define MAVISCTL_H__
// VC++ linker instructions
#define MVLIB_LIBDIR "../../lib"
#pragma comment(lib, MVLIB_LIBDIR"/mavis.lib")
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define MAX_LOADSTRING 100
//
// GUI controls
//
#define LIST_OBJS 2001
#define BTN_LOOK_ONCE 2002
#define BTN_LOOK_CONT 2003
#define BTN_CALIBRATE 2004
#define BTN_HLINES 2005
#define EDIT_HLINES 2006
#define TXT_INSTR 2007
#define BTN_NEXT 2008
#define BTN_STOP 2009
#include "resource.h"
#include "StatusBar.h"
#include "Mavis.h"
#include "MavisErr.h"
#include "maviscomm.h"
#include "../mavis/camera/CalibrationHelper.h"
#define MENU_FILE_POS 0
#define MENUITEM_LOAD_DLL_POS 0
#define MENUITEM_UNLOAD_DLL_POS 1
//
// Application states.
//
// The state determines what controls are available in the gui. Actions
// associated with the available controls each have their own handler.
// The handler may change the application state. For example, selecting
// File->Unload dll will change the application state to REMOTE_MODE.
//
// note: There's no separate mode for LookOnce. This happens entirely
// within the handler for that control, and when it finishes, state will
// be what it was before entering the handler
//
const int WAIT_MODE = 0; // dll is loaded, waiting for user input
const int CALIBRATE_MODE = 1; // calibrating the camera
const int REMOTE_MODE = 2; // dll is unloaded (application starts in this mode)
const int LOOK_MODE = 3; // Currently running a "Look Until Sighted" command
const int HLINES_MODE = 4; // A series of HLine analyses is in progress
#endif
///////////////////////////////////////////////////////////////////////////////////////
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this
// license. If you do not agree to this license, do not download, install, copy or
// use the software.
//
//
// Mavis License Agreement
//
// Copyright (c) 2004-2005, Robin Hewitt (http://www.robin-hewitt.com).
// Third party copyrights are property of their respective owners.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// * Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
//
// This software is provided "as is" and any express or implied warranties, including,
// but not limited to, the implied warranties of merchantability and fitness for a
// particular purpose are disclaimed. In no event shall the authors or contributors be
// liable for any direct, indirect, incidental, special, exemplary, or consequential
// damages (including, but not limited to, procurement of substitute goods or services;
// loss of use, data, or profits; or business interruption) however caused and on any
// theory of liability, whether in contract, strict liability, or tort (including
// negligence or otherwise) arising in any way out of the use of this software, even
// if advised of the possibility of such damage.
///////////////////////////////////////////////////////////////////////////////////////
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -