Changeset 4608

Show
Ignore:
Timestamp:
09/16/06 08:13:53 (2 years ago)
Author:
erijo
Message:
  • Added (or updated) the GPL header in every file.
  • Removed all pre Qt 3 code and all ifdefs that are no longer needed (since we only support Qt 3).
Location:
branches/qt-gui-no-qt2/src
Files:
94 modified

Legend:

Unmodified
Added
Removed
  • branches/qt-gui-no-qt2/src/adduserdlg.cpp

    r4526 r4608  
    11/* 
    2     This program is free software; you can redistribute it and/or modify 
    3     it under the terms of the GNU General Public License as published by 
    4     the Free Software Foundation; either version 2 of the License, or 
    5     (at your option) any later version. 
    6  
    7     This program is distributed in the hope that it will be useful, 
    8     but WITHOUT ANY WARRANTY; without even the implied warranty of 
    9     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    10     GNU General Public License for more details. 
    11  
    12     You should have received a copy of the GNU General Public License 
    13     along with this program; if not, write to the Free Software 
    14     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 
    15  
    16 */ 
     2 * This file is part of Licq, an instant messaging client for UNIX. 
     3 * Copyright (C) 1999-2006 Licq developers 
     4 * 
     5 * Licq 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 * Licq 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 Licq; if not, write to the Free Software 
     17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
     18 */ 
    1719 
    1820#ifdef HAVE_CONFIG_H 
  • branches/qt-gui-no-qt2/src/adduserdlg.h

    r4526 r4608  
     1/* 
     2 * This file is part of Licq, an instant messaging client for UNIX. 
     3 * Copyright (C) 1999-2006 Licq developers 
     4 * 
     5 * Licq 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 * Licq 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 Licq; if not, write to the Free Software 
     17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
     18 */ 
     19 
    120#ifndef ADDUSERDLG_H 
    221#define ADDUSERDLG_H 
  • branches/qt-gui-no-qt2/src/authuserdlg.cpp

    r4531 r4608  
    11// -*- c-basic-offset: 2 -*- 
    22/* 
    3     This program is free software; you can redistribute it and/or modify 
    4     it under the terms of the GNU General Public License as published by 
    5     the Free Software Foundation; either version 2 of the License, or 
    6     (at your option) any later version. 
    7  
    8     This program is distributed in the hope that it will be useful, 
    9     but WITHOUT ANY WARRANTY; without even the implied warranty of 
    10     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    11     GNU General Public License for more details. 
    12  
    13     You should have received a copy of the GNU General Public License 
    14     along with this program; if not, write to the Free Software 
    15     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 
    16  
    17 */ 
     3 * This file is part of Licq, an instant messaging client for UNIX. 
     4 * Copyright (C) 1999-2006 Licq developers 
     5 * 
     6 * Licq is free software; you can redistribute it and/or modify 
     7 * it under the terms of the GNU General Public License as published by 
     8 * the Free Software Foundation; either version 2 of the License, or 
     9 * (at your option) any later version. 
     10 * 
     11 * Licq is distributed in the hope that it will be useful, 
     12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
     13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     14 * GNU General Public License for more details. 
     15 * 
     16 * You should have received a copy of the GNU General Public License 
     17 * along with Licq; if not, write to the Free Software 
     18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
     19 */ 
    1820 
    1921#ifdef HAVE_CONFIG_H 
  • branches/qt-gui-no-qt2/src/authuserdlg.h

    r4526 r4608  
     1/* 
     2 * This file is part of Licq, an instant messaging client for UNIX. 
     3 * Copyright (C) 1999-2006 Licq developers 
     4 * 
     5 * Licq 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 * Licq 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 Licq; if not, write to the Free Software 
     17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
     18 */ 
     19 
    120#ifndef AUTHUSERDLG_H 
    221#define AUTHUSERDLG_H 
  • branches/qt-gui-no-qt2/src/awaymsgdlg.cpp

    r4526 r4608  
    11// -*- c-basic-offset: 2 -*- 
    22/* 
    3     This program is free software; you can redistribute it and/or modify 
    4     it under the terms of the GNU General Public License as published by 
    5     the Free Software Foundation; either version 2 of the License, or 
    6     (at your option) any later version. 
    7  
    8     This program is distributed in the hope that it will be useful, 
    9     but WITHOUT ANY WARRANTY; without even the implied warranty of 
    10     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    11     GNU General Public License for more details. 
    12  
    13     You should have received a copy of the GNU General Public License 
    14     along with this program; if not, write to the Free Software 
    15     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 
    16  
    17 */ 
     3 * This file is part of Licq, an instant messaging client for UNIX. 
     4 * Copyright (C) 1999-2006 Licq developers 
     5 * 
     6 * Licq is free software; you can redistribute it and/or modify 
     7 * it under the terms of the GNU General Public License as published by 
     8 * the Free Software Foundation; either version 2 of the License, or 
     9 * (at your option) any later version. 
     10 * 
     11 * Licq is distributed in the hope that it will be useful, 
     12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
     13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     14 * GNU General Public License for more details. 
     15 * 
     16 * You should have received a copy of the GNU General Public License 
     17 * along with Licq; if not, write to the Free Software 
     18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
     19 */ 
    1820 
    1921// written by Graham Roff <graham@licq.org> 
  • branches/qt-gui-no-qt2/src/awaymsgdlg.h

    r4526 r4608  
     1/* 
     2 * This file is part of Licq, an instant messaging client for UNIX. 
     3 * Copyright (C) 1999-2006 Licq developers 
     4 * 
     5 * Licq 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 * Licq 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 Licq; if not, write to the Free Software 
     17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
     18 */ 
     19 
    120#ifndef AWAYMSG_H 
    221#define AWAYMSG_H 
  • branches/qt-gui-no-qt2/src/catdlg.cpp

    r4526 r4608  
    11/* 
    2  *  This program is free software; you can redistribute it and/or modify 
    3  *  it under the terms of the GNU General Public License as published by 
    4  *  the Free Software Foundation; either version 2 of the License, or 
    5  *  (at your option) any later version. 
     2 * This file is part of Licq, an instant messaging client for UNIX. 
     3 * Copyright (C) 2004-2006 Licq developers 
    64 * 
    7  *  This program is distributed in the hope that it will be useful, 
    8  *  but WITHOUT ANY WARRANTY; without even the implied warranty of 
    9  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    10  *  GNU General Public License for more details. 
     5 * Licq 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. 
    119 * 
    12  *  You should have received a copy of the GNU General Public License 
    13  *  along with this program; if not, write to the Free Software 
    14  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 
     10 * Licq 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. 
    1514 * 
     15 * You should have received a copy of the GNU General Public License 
     16 * along with Licq; if not, write to the Free Software 
     17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
    1618 */ 
    1719 
  • branches/qt-gui-no-qt2/src/catdlg.h

    r4526 r4608  
     1/* 
     2 * This file is part of Licq, an instant messaging client for UNIX. 
     3 * Copyright (C) 2004-2006 Licq developers 
     4 * 
     5 * Licq 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 * Licq 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 Licq; if not, write to the Free Software 
     17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
     18 */ 
     19 
    120#ifndef CATDLG_H 
    221#define CATDLG_H 
  • branches/qt-gui-no-qt2/src/chatdlg.cpp

    r4526 r4608  
    11// -*- c-basic-offset: 2 -*- 
    22/* 
    3     This program is free software; you can redistribute it and/or modify 
    4     it under the terms of the GNU General Public License as published by 
    5     the Free Software Foundation; either version 2 of the License, or 
    6     (at your option) any later version. 
    7  
    8     This program is distributed in the hope that it will be useful, 
    9     but WITHOUT ANY WARRANTY; without even the implied warranty of 
    10     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    11     GNU General Public License for more details. 
    12  
    13     You should have received a copy of the GNU General Public License 
    14     along with this program; if not, write to the Free Software 
    15     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 
    16  
    17 */ 
     3 * This file is part of Licq, an instant messaging client for UNIX. 
     4 * Copyright (C) 1999-2006 Licq developers 
     5 * 
     6 * Licq is free software; you can redistribute it and/or modify 
     7 * it under the terms of the GNU General Public License as published by 
     8 * the Free Software Foundation; either version 2 of the License, or 
     9 * (at your option) any later version. 
     10 * 
     11 * Licq is distributed in the hope that it will be useful, 
     12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
     13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     14 * GNU General Public License for more details. 
     15 * 
     16 * You should have received a copy of the GNU General Public License 
     17 * along with Licq; if not, write to the Free Software 
     18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
     19 */ 
    1820 
    1921// written by Graham Roff <graham@licq.org> 
     
    130132  setOpaqueMoving(true); 
    131133  setToolBarsMovable(true); 
    132 #if QT_VERSION < 300 
    133   setDockEnabled(Bottom, true); 
    134 #else 
    135134  setDockEnabled(DockBottom, true); 
    136 #endif 
    137135  setUsesBigPixmaps(false); 
    138136 
     
    354352  QFontDatabase fd; //QFontInfo.fixedPitch returns incorrect info??? 
    355353  unsigned char style = STYLE_DONTCARE; 
    356 #if QT_VERSION >= 230 
     354 
    357355  if (fd.isFixedPitch(fi.family(), fd.styleString(mlePaneLocal->font()))) 
    358356    style |= STYLE_FIXEDxPITCH; 
    359357  else 
    360358    style |= STYLE_VARIABLExPITCH; 
    361 #endif 
     359 
    362360  unsigned char encoding = UserCodec::charsetForName(codec->name()); 
    363361  //TODO in daemon 
     
    412410  setOpaqueMoving(true); 
    413411  setToolBarsMovable(true); 
    414 #if QT_VERSION < 300 
    415   setDockEnabled(Bottom, true); 
    416 #else 
    417412  setDockEnabled(DockBottom, true); 
    418 #endif 
    419413  setUsesBigPixmaps(false); 
    420414 
     
    636630  QFontDatabase fd; //QFontInfo.fixedPitch returns incorrect info??? 
    637631  unsigned char style = STYLE_DONTCARE; 
    638 #if QT_VERSION >= 230 
     632 
    639633  if (fd.isFixedPitch(fi.family(), fd.styleString(mlePaneLocal->font()))) 
    640634    style |= STYLE_FIXEDxPITCH; 
    641635  else 
    642636    style |= STYLE_VARIABLExPITCH; 
    643 #endif 
     637 
    644638  unsigned char encoding = UserCodec::charsetForName(codec->name()); 
    645639  chatman = new CChatManager(daemon, _nUin, fi.family().local8Bit(), 
     
    750744  QFontDatabase fd; //QFontInfo.fixedPitch returns incorrect info??? 
    751745  unsigned char style = STYLE_DONTCARE; 
    752 #if QT_VERSION >= 230 
     746 
    753747  if (fd.isFixedPitch(fi.family(), fd.styleString(mlePaneLocal->font()))) 
    754748    style |= STYLE_FIXEDxPITCH; 
    755749  else 
    756750    style |= STYLE_VARIABLExPITCH; 
    757 #endif 
    758751 
    759752  unsigned char encoding = UserCodec::charsetForName(codec->name()); 
     
    862855                         iter->u->ColorBg()[2]); 
    863856      QFont f(iter->w->font()); 
    864 #if QT_VERSION >= 230 
    865857      f.setFixedPitch(iter->u->FontStyle() & 0x0F == STYLE_FIXEDxPITCH); 
    866 #endif 
     858 
    867859      switch (iter->u->FontStyle() & 0xF0) 
    868860      { 
     
    10981090      case CHAT_BACKSPACE:   // backspace 
    10991091      { 
    1100 #if QT_VERSION >= 300 
     1092 
    11011093        GetWindow(u)->setReadOnly(false); 
    11021094        GetWindow(u)->setCursorPosition(-1, -1, false); 
    1103 #endif 
     1095 
    11041096        GetWindow(u)->backspace(); 
    1105 #if QT_VERSION >= 300 
     1097 
    11061098        GetWindow(u)->setReadOnly(true); 
    11071099        GetWindow(u)->update(); 
    1108 #endif 
     1100 
    11091101        break; 
    11101102      } 
     
    11321124        { 
    11331125          QFont f(GetWindow(u)->font()); 
    1134 #if QT_VERSION >= 230 
    11351126          f.setFixedPitch(u->FontStyle() & 0x0F == STYLE_FIXEDxPITCH); 
    1136 #endif 
     1127 
    11371128          switch (u->FontStyle() & 0xF0) 
    11381129          { 
  • branches/qt-gui-no-qt2/src/chatdlg.h

    r4531 r4608  
     1/* 
     2 * This file is part of Licq, an instant messaging client for UNIX. 
     3 * Copyright (C) 1999-2006 Licq developers 
     4 * 
     5 * Licq 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 * Licq 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 Licq; if not, write to the Free Software 
     17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
     18 */ 
     19 
    120#ifndef CHATDLG_H 
    221#define CHATDLG_H 
     
    162181 
    163182#endif 
    164  
    165  
    166  
  • branches/qt-gui-no-qt2/src/chatjoin.cpp

    r4526 r4608  
    11// -*- c-basic-offset: 2 -*- 
    22/* 
    3     This program is free software; you can redistribute it and/or modify 
    4     it under the terms of the GNU General Public License as published by 
    5     the Free Software Foundation; either version 2 of the License, or    
    6     (at your option) any later version.                               
    7                                         
    8     This program is distributed in the hope that it will be useful, 
    9     but WITHOUT ANY WARRANTY; without even the implied warranty of  
    10     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
    11     GNU General Public License for more details.                  
    12                                                  
    13     You should have received a copy of the GNU General Public License 
    14     along with this program; if not, write to the Free Software       
    15     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.   
    16  
    17 */ 
     3 * This file is part of Licq, an instant messaging client for UNIX. 
     4 * Copyright (C) 2000-2006 Licq developers 
     5 * 
     6 * Licq is free software; you can redistribute it and/or modify 
     7 * it under the terms of the GNU General Public License as published by 
     8 * the Free Software Foundation; either version 2 of the License, or 
     9 * (at your option) any later version. 
     10 * 
     11 * Licq is distributed in the hope that it will be useful, 
     12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
     13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     14 * GNU General Public License for more details. 
     15 * 
     16 * You should have received a copy of the GNU General Public License 
     17 * along with Licq; if not, write to the Free Software 
     18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
     19 */ 
    1820 
    1921#ifdef HAVE_CONFIG_H 
  • branches/qt-gui-no-qt2/src/chatjoin.h

    r4526 r4608  
     1/* 
     2 * This file is part of Licq, an instant messaging client for UNIX. 
     3 * Copyright (C) 2000-2006 Licq developers 
     4 * 
     5 * Licq 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 * Licq 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 Licq; if not, write to the Free Software 
     17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
     18 */ 
     19 
    120#ifndef CHATJOINDLG_H 
    221#define CHATJOINDLG_H 
  • branches/qt-gui-no-qt2/src/editfile.cpp

    r4526 r4608  
    11// -*- c-basic-offset: 2 -*- 
    22/* 
    3     This program is free software; you can redistribute it and/or modify 
    4     it under the terms of the GNU General Public License as published by 
    5     the Free Software Foundation; either version 2 of the License, or    
    6     (at your option) any later version.                            &nb