X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=c%2B%2B%2Fcursesw.h;h=4472ea9ca13ac8c17f35f7bc3366b58d8bd0e917;hp=a3de6313ac85a9bd8d42cea2b4bfd6eb8f50c8c7;hb=8a82f8535bbbd3aa9db75fb79812b5c5b1c81d28;hpb=f0af2558d30ac4099e1c28c6298ae3724c136723 diff --git a/c++/cursesw.h b/c++/cursesw.h index a3de6313..4472ea9c 100644 --- a/c++/cursesw.h +++ b/c++/cursesw.h @@ -1,6 +1,7 @@ // * This makes emacs happy -*-Mode: C++;-*- +// vile:cppmode /**************************************************************************** - * Copyright (c) 1998-2005,2007 Free Software Foundation, Inc. * + * Copyright (c) 1998-2008,2011 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -30,7 +31,7 @@ #ifndef NCURSES_CURSESW_H_incl #define NCURSES_CURSESW_H_incl 1 -// $Id: cursesw.h,v 1.47 2007/12/16 00:21:05 tom Exp $ +// $Id: cursesw.h,v 1.49 2011/09/17 22:12:10 tom Exp $ #include @@ -1333,7 +1334,7 @@ public: // ------------------------------------------------------------------------- // Extended functions // ------------------------------------------------------------------------- -#ifdef NCURSES_EXT_FUNCS +#if defined(NCURSES_EXT_FUNCS) && (NCURSES_EXT_FUNCS != 0) int wresize(int newLines, int newColumns) { return ::wresize(w, newLines, newColumns); } #endif @@ -1437,16 +1438,19 @@ protected: // The driver translates the keystroke c into an Pad_Request virtual void OnUnknownOperation(int pad_req) { + (void) pad_req; ::beep(); } // This is called if the driver returns an unknown op-code virtual void OnNavigationError(int pad_req) { + (void) pad_req; ::beep(); } // This is called if a navigation request couldn't be satisfied virtual void OnOperation(int pad_req) { + (void) pad_req; }; // OnOperation is called if a Pad_Operation was executed and just before // the refresh() operation is done. @@ -1541,11 +1545,15 @@ public: } void setWindow(NCursesWindow& view, int v_grid = 1, int h_grid = 1) { + (void) view; + (void) v_grid; + (void) h_grid; err_handler("Operation not allowed"); } // Disable this call; the viewport is already defined void setSubWindow(NCursesWindow& sub) { + (void) sub; err_handler("Operation not allowed"); } // Disable this call; the viewport subwindow is already defined