~ubuntu-branches/ubuntu/maverick/ksocrat/maverick

« back to all changes in this revision

Viewing changes to ksocrat/dockwidget.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2005-12-17 16:24:49 UTC
  • mfrom: (2.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20051217162449-aqynhynf129nqgmi
Tags: 3.2.1-1build1
Rebuild KDE universe for libstdc++ transition

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
    KSocrat
3
 
    Version 3.1.2, 28 April 2003    
4
 
    (C) 2000-2003 Zavolzhsky Alexandr <zavolzhsky@mail.ru>
 
3
    Version 3.2.1, 17 July 2004
 
4
    (C) 2000-2004 Zavolzhsky Alexandr <zavolzhsky@mail.ru>
5
5
 
6
6
    This program is free software; you can redistribute it and/or modify
7
7
    it under the terms of the GNU General Public License as published by
136
136
{
137
137
  mainWin = parent;
138
138
  
139
 
  pm =this->contextMenu();
 
139
  pm=this->contextMenu();
140
140
  pm->insertItem(i18n("About"),this,SLOT(about()));
141
 
  pm->insertItem(i18n("Show/Hide"),this,SLOT(show_hide()),CTRL+ALT+Key_S);  
142
141
                                                                    
143
142
  this->setPixmap(QPixmap((const char**)dw_xpm));
144
143
  this->show();
151
150
  KAboutApplication *ap = new KAboutApplication(this,"ksocrat-about");
152
151
  ap->exec();
153
152
}
154
 
 
155
 
void DockWidget::show_hide(){
156
 
  if (mainWin->isVisible()) {
157
 
    mainWin->hide();
158
 
  }
159
 
  else {
160
 
    mainWin->show();
161
 
  }  
162
 
}