~ubuntu-branches/ubuntu/quantal/bbpager/quantal

« back to all changes in this revision

Viewing changes to src/main.h

  • Committer: Bazaar Package Importer
  • Author(s): Stan Vasilyev
  • Date: 2005-09-14 21:29:20 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050914212920-x29ksl01wqio0buq
Tags: 0.4.1b1-1
* New maintainer. (Closes: #259583: ITA: bbpager -- Pager for the
  Blackbox window manager - Debian Bug report logs)
* New upstream release
* Updated Free Software Foundation address in Debian copyright
* Updated homepage in package description
* Changed Depends: blackbox (>= 0.60.2) | openbox | fluxbox to
  Suggests: blackbox (>= 0.70) | openbox | fluxbox since this version of
  bbpager is compatible with KDE and other window managers
* Closes: #322306: bbpager fails to start under blackbox and fluxbox
  (possibly others)
* Closes: #237837: windows list leak in void
  WMInterface::windowAttributeChange(Window win)
* Closes: #101217: bbpager cannot find blackbox style file
* Closes: #178163: bbpager does not parse ~ in resource file
* Closes: #219345: Always showing sticky windows closed under fluxbox
* Added Depends: libbt and Build-Depends: libbt-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//  main.hh for bbtools.
 
2
//
 
3
//  Copyright (c) 1998-2003 by John Kennis, jkennis@chello.nl
 
4
//
 
5
//  This program is free software; you can redistribute it and/or modify
 
6
//  it under the terms of the GNU General Public License as published by
 
7
//  the Free Software Foundation; either version 2 of the License, or
 
8
//  (at your option) any later version.
 
9
//
 
10
//  This program is distributed in the hope that it will be useful,
 
11
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
//  GNU General Public License for more details.
 
14
//
 
15
//  You should have received a copy of the GNU General Public License
 
16
//  along with this program; if not, write to the Free Software
 
17
//  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
18
//
 
19
#ifndef __MAIN_H
 
20
#define __MAIN_H
 
21
 
 
22
class Configuration
 
23
{
 
24
public:
 
25
        Configuration(int iargc, char **argv);
 
26
        ~Configuration(void);
 
27
        
 
28
        int argc(void) { return _argc; }
 
29
        char **argv(void) { return _argv; }
 
30
        
 
31
        bool isWithdrawn(void) { return withdrawn; }
 
32
        void setWithdrawn(bool _withdrawn) { withdrawn = _withdrawn; }
 
33
 
 
34
        bool isDecorated(void) { return decorated; }
 
35
        void setDecorated(bool _decorated) { decorated = _decorated; }
 
36
 
 
37
        bool isShaped(void) { return shape; }
 
38
        void setShaped(bool _shape) { shape = _shape; }
 
39
 
 
40
        const std::string &rcFilename(void) { return rc_filename; }
 
41
        void setRcFilename(std::string filename) { rc_filename = filename; }
 
42
 
 
43
        const std::string &appName(void) { return app_name; }
 
44
        void setAppName(std::string name) { app_name = name; }
 
45
 
 
46
        const std::string &displayName(void) { return display_name; }
 
47
        void setDisplayName(std::string name) { display_name = name; }
 
48
 
 
49
        const std::string &geometry(void) { return _geometry; }
 
50
        void setGeometry(std::string geo) { _geometry = geo; }
 
51
        
 
52
private:
 
53
        bool withdrawn;
 
54
        bool decorated;
 
55
        bool shape;
 
56
        int _argc;
 
57
        char **_argv;
 
58
        std::string _geometry;
 
59
        
 
60
        std::string rc_filename;
 
61
        std::string app_name;
 
62
        std::string display_name;
 
63
};
 
64
 
 
65
#endif // __MAIN_H