📄 wxcaspix.cpp
字号:
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Name: wxCasPix Class////// Purpose: wxCas main frame////// Author: ThePolish <thepolish@vipmail.ru>////// Copyright (C) 2004 by ThePolish////// Derived from CAS by Pedro de Oliveira <falso@rdk.homeip.net>////// Pixmats from aMule http://www.amule.org////// This program is free software; you can redistribute it and/or modify/// it under the terms of the GNU General Public License as published by/// the Free Software Foundation; either version 2 of the License, or/// (at your option) any later version.////// This program is distributed in the hope that it will be useful,/// but WITHOUT ANY WARRANTY; without even the implied warranty of/// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the/// GNU General Public License for more details.////// You should have received a copy of the GNU General Public License/// along with this program; if not, write to the/// Free Software Foundation, Inc.,/// 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////#ifdef __BORLANDC__ #pragma hdrstop#endif// For all others, include the necessary headers#ifndef WX_PRECOMP #include "wx/wx.h"#endif#include "wxcaspix.h"wxBitmap WxCasPix::getPixmap( const wxString& name ){ if ( name == wxT( "about" ) ) { wxBitmap bitmap( m_about_xpm ); return bitmap; } else if ( name == wxT( "prefs" ) ) { wxBitmap bitmap( m_prefs_xpm ); return bitmap; } else if ( name == wxT( "print" ) ) { wxBitmap bitmap( m_print_xpm ); return bitmap; } else if ( name == wxT( "refresh" ) ) { wxBitmap bitmap( m_refresh_xpm ); return bitmap; } else if ( name == wxT( "save" ) ) { wxBitmap bitmap( m_save_xpm ); return bitmap; } else if ( name == wxT( "stat" ) ) { wxBitmap bitmap( m_stat_xpm ); return bitmap; } else if ( name == wxT( "stop" ) ) { wxBitmap bitmap( m_stop_xpm ); return bitmap;#ifndef __WXMSW__ } else if ( name == wxT( "wxcas" ) ) { wxBitmap bitmap( m_wxcas_xpm ); return bitmap;#endif } else { return wxNullBitmap; }}const char *WxCasPix::m_about_xpm[] = { /* XPM */ /* columns rows colors chars-per-pixel */ "32 32 179 2", " c None", ". c #0c0b0a", "X c #32373e", "o c #3f3330", "O c #002e66", "+ c #00306a", "@ c #003573", "# c #003778", "$ c #00397c", "% c #5a2d12", "& c #45312a", "* c #642909", "= c #682b09", "- c #6f310d", "; c #74360f", ": c #7a3b12", "> c #7c4d2d", ", c #48494c", "< c #7e5e50", "1 c #675b63", "2 c #696c6f", "3 c #003c84", "4 c #003f89", "5 c #00408b", "6 c #0a4083", "7 c #014499", "8 c #114d9c", "9 c #18529c", "0 c #054eb0", "q c #0d51a5", "w c #1558a7", "e c #1857b1", "r c #1b65ae", "t c #23558d", "y c #245f9f", "u c #34659b", "i c #276bb8", "p c #3f6ea2", "a c #0657c6", "s c #1462d2", "d c #256cd0", "f c #2774c4", "g c #2d70cd", "h c #2f76d7", "j c #2171e8", "k c #357fe6", "l c #3b95db", "z c #2f82f0", "x c #3a80e6", "c c #3a85e8", "v c #3e89ed", "b c #3684f1", "n c #5185bf", "m c #4182c7", "M c #4997d8", "N c #4289ec", "B c #4389f2", "V c #4490f2", "C c #4e94f2", "Z c #5a9df3", "A c #54afed", "S c #5ba4e1", "D c #71a6da", "F c #63a3f6", "G c #67a9f8", "H c #6ca9f7", "J c #6daaf8", "K c #79aee9", "L c #75b8ee", "P c #76b1f7", "I c #77b2f9", "U c #75bcf3", "Y c #7bb4f9", "T c #7fbdf9", "R c #74c2fa", "E c #7dc6fa", "W c #833f14", "Q c #bf2b4a", "! c #8f4b1b", "~ c #954f1d", "^ c #97511e", "/ c #9c5622", "( c #a45b24", ") c #a25d29", "_ c #a7602a", "` c #ad6227", "' c #ad6228", "] c #b6692b", "[ c #b86b2c", "{ c #b67038", "} c #bd7031", "| c #867069", " . c #ac4c6f", ".. c #b14062", "X. c #b14a6c", "o. c #c73351", "O. c #ca3f5c", "+. c #c0712f", "@. c #c67530", "#. c #c37a31", "$. c #c07a3c", "%. c #ca7b38", "&. c #cc5773", "*. c #c7627f", "=. c #a35d82", "-. c #b67698", ";. c #ce6d87", ":. c #b68b67", ">. c #cd8838", ",. c #e49c3f", "<. c #ce8240", "1. c #cf874a", "2. c #d38c4d", "3. c #d89c47", "4. c #d69658", "5. c #d99b62", "6. c #dca25c", "7. c #daa16c", "8. c #e0ae7d", "9. c #838186", "0. c #9a9794", "q. c #8192af", "w. c #ac98bb", "e. c #b58fb1", "r. c #a0a09f", "t. c #b4b4b0", "y. c #92b2d8", "u. c #83baf9", "i. c #8abffb", "p. c #abb3db", "a. c #b5afd1", "s. c #b4b7da", "d. c #83c9fb", "f. c #8bc3fc", "g. c #9bc4e8", "h. c #93c4fb", "j. c #95ccfb", "k. c #9dccfc", "l. c #9cd1fb", "z. c #a0cefd", "x. c #a4d1fe", "c. c #afd5f3", "v. c #abd5fd", "b. c #b7cdee", "n. c #b7d4f5", "m. c #b4d9f7", "M. c #b4dbfe", "N. c #b9defe", "B. c #bde1fe", "V. c #d487a0", "C. c #d49db4", "Z. c #d1b28b", "A. c #d1a7be", "S. c #e4b785", "D. c #d0b4cb", "F. c #d1bad0", "G. c #e2bdcd", "H. c #edcfa7", "J. c #cac8c2", "K. c #d4cdc2", "L. c #dfdbd6", "P. c #cad3ea", "I. c #c4e4ff", "U. c #c9e7ff", "Y. c #cae8ff", "T. c #d3ecfe", "R. c #dbf0ff", "E. c #e2c9d9",
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -