1 // -*- mode: c++ -*-
2 //
3 // This file is part of libyacurs.
4 // Copyright (C) 2013  Rafael Ostertag
5 //
6 // This program is free software: you can redistribute it and/or
7 // modify it under the terms of the GNU General Public License as
8 // published by the Free Software Foundation, either version 3 of the
9 // License, or (at your option) any later version.
10 //
11 // This program is distributed in the hope that it will be useful, but
12 // WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 // General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program.  If not, see
18 // <http://www.gnu.org/licenses/>.
19 //
20 //
21 // $Id: yacurstypes.h 5021 2013-04-12 07:17:47Z rafisol $
22 
23 #ifndef YACURSCONST_H
24 #define YACURSCONST_H 1
25 
26 namespace YACURS {
27 /**
28  * Resizing stops when any of those are underrun.
29  */
30 enum {
31     /**
32      * Minimum columns. When actual screen size underruns MIN_COLS,
33      * no resize is performed.
34      */
35     MIN_COLS = 15,
36 
37     /**
38      * Minimum rows. When actual screen size underruns MIN_ROWS,
39      * no resize is performed.
40      */
41     MIN_ROWS = 15
42 };
43 
44 /**
45  * WindowBase will not realize when any those are underrun.
46  */
47 enum {
48     /**
49      * Minimum columns. When WindowBase size underruns
50      * MIN_WINDOW_COLS, WindowBase will not realize.
51      */
52     MIN_WINDOW_COLS = 4,
53 
54     /**
55      * Minimum rows. When WindowBase size underruns
56      * MIN_WINDOW_ROWS, WindowBase will not realize.
57      */
58     MIN_WINDOW_ROWS = 1
59 };
60 
61 enum {
62     /**
63      * Default buffer size used for getcwd() if call to pathconf()
64      * fails.
65      */
66     DEFCWDBUFSZ = 1024
67 };
68 }  // namespace YACURS
69 
70 #endif  // YACURSCONST_H
71