screen.cpp

来自「ati driver」· C++ 代码 · 共 50 行

CPP
50
字号
/*	Copyright (c) 2002, Thomas Kurschel	based on Screen Preferences Panel written for OpenBeOS by Rafael Romo	Part of Radeon Screen Preferences			Application object*/// Screen V0.9 build 1 by Rafael Romo for the OpenBeOS Preferences team.// web.tiscalinet.it/rockman// rockman@tiscalinet.it#include <Application.h>#include <Alert.h>//#include <cstdio>//#include <cstring>#include "ScreenApplication.h"#include "ScreenWindow.h"#include "ScreenSettings.h"#include "Constants.h"ScreenApplication::ScreenApplication()	: BApplication("application/x-vnd.RR-SCRN"){	fScreenWindow = new ScreenWindow(new ScreenSettings());}void ScreenApplication::AboutRequested(){	BAlert *AboutAlert = new BAlert("About", "Radeon Screen by Rafael Romo, partially rewritten by Thomas Kurschel\nThe OBOS place to configure your monitor",	"Ok", NULL, NULL, 	B_WIDTH_AS_USUAL, B_OFFSET_SPACING, B_INFO_ALERT);	AboutAlert->SetShortcut(0, B_OK);	AboutAlert->Go();}int main(){	ScreenApplication	MyApplication;		MyApplication.Run();		return(0);}

⌨️ 快捷键说明

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