~ubuntu-branches/ubuntu/karmic/icewm/karmic

« back to all changes in this revision

Viewing changes to src/iceview.cc

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Starr-Bochicchio
  • Date: 2009-06-05 23:39:03 UTC
  • mfrom: (1.2.12 upstream) (3.2.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090605233903-an40kzzm9pdp0zue
Tags: 1.2.37+1.3.4pre2-2ubuntu1
* Merge from debian unstable, remaining changes:
 - debian/rules: call dh_icons

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#include "ylistbox.h"
5
5
#include "yscrollview.h"
6
6
#include "ymenu.h"
7
 
#include "yapp.h"
 
7
#include "yxapp.h"
8
8
#include "sysdep.h"
9
9
#include "yaction.h"
10
10
#include "yrect.h"
20
20
#include "intl.h"
21
21
 
22
22
char const *ApplicationName = "iceview";
23
 
YIcon *file = 0;
 
23
ref<YIcon> file;
24
24
 
25
25
extern Atom _XA_WIN_ICONS;
26
26
 
52
52
        maxLineLen = 80; // for buffer
53
53
        fmt = 0;
54
54
        wrapWidth = 0;
 
55
        fWidth = 0;
 
56
        fHeight = 0;
55
57
 
56
58
        bg = new YColor("rgb:C0/C0/C0");
57
59
        fg = YColor::black; //new YColor("rgb:00/00/00");
476
478
 
477
479
    virtual void configure(const YRect &r, const bool resized) {
478
480
        YWindow::configure(r, resized);
479
 
        if (resized) {
480
 
            if(wrapLines) {
 
481
        if (fWidth != r.width() || fHeight != r.height()) {
 
482
            fWidth = r.width();
 
483
            fHeight = r.height();
 
484
            if (wrapLines) {
481
485
                int nw = lineWCount;
482
486
                findWLines(r.width() / fontWidth);
483
487
                if (lineWCount != nw)
494
498
    int lineWCount;
495
499
    int *lineWPos;
496
500
 
 
501
    int fWidth;
 
502
    int fHeight;
 
503
 
497
504
    int chunkCount;
498
505
    int maxLineLen;
499
506
    char *fmt;
614
621
    textdomain(PACKAGE);
615
622
#endif
616
623
 
617
 
    YApplication app(&argc, &argv);
 
624
    YXApplication app(&argc, &argv);
618
625
 
619
626
    if (argc > 1) {
620
627
        FileView *view = new FileView(argv[1]);