Főoldal | Osztályhierarchia | Osztálylista | Fájllista | Osztálytagok | Fájlelemek | Kapcsolódó lapok

subtimerwnd.hh

Ugrás a fájl dokumentációjához.
00001 /*
00002  * SubTimer header file
00003  *  Copyright (C) 2005 Peter Salvi
00004  *   Last modification: <2005.03.23., 16:19:56>
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00019  */
00020 
00021 #ifndef SUBTIMER_WND_HH
00022 #define SUBTIMER_WND_HH
00023 
00026 #include "subtitle.hh"
00027 #include "srtsub.hh"
00028 #include "ssasub.hh"
00029 #include "txtsub.hh"
00030 
00031 #include "subtimerwndbase.h"
00032 
00067 class SubTimerWnd : public SubTimerWndBase
00068 {
00069   Q_OBJECT
00070 
00071 public:
00072 
00083   SubTimerWnd(QWidget *parent = 0, const char *name = 0, WFlags fl = 0);
00084   ~SubTimerWnd();
00085 
00086 public slots:
00087 
00110   void fileOpen();
00111 
00126   void fileSave();
00127 
00144   void fileSaveAs();
00145 
00166   void editShiftTimes();
00167 
00190   void editFind();
00191 
00208   void editFindAgain();
00209 
00226   void editCutLine();
00227 
00238   void editCopyLine();
00239 
00262   void editPasteLine();
00263 
00281   void editEraseLine();
00282 
00311   void editAddLineBefore();
00312 
00341   void editAddLineAfter();
00342 
00374   void editSplit();
00375 
00398   void editMerge();
00399 
00410   void optionsNextLineAfterGrab(bool on);
00411 
00424   void helpUsingSubTimer();
00425 
00436   void helpAbout();
00437 
00448   void helpAboutQt();
00449 
00464   void onOpenWave();
00465 
00476   void onPlayNext();
00477 
00500   void onGrabSelected();
00501 
00512   void onStartTimeChanged(QTime *start);
00513 
00524   void onDurationChanged();
00525 
00536   void onEndTimeChanged(QTime *end);
00537 
00548   void onTimeChanged();
00549 
00568   void onSelectionChanged();
00569 
00589   void setScrollMax(int length);
00590 
00591 private:
00592   void checkMultipleLines();
00593   void clearClipboard();
00594   void closeEvent(QCloseEvent *ce);
00595   void copyLines(int from, int until);
00596   void eraseLines(int from, int until);
00597   void loadEvent(int i, SubTitle::Event *e);
00598   void loadEventFromTable(bool scrolling = true);
00599   QString convertEnterToN(QString s) const;
00600   QString convertNToEnter(QString s) const;
00601   
00602   SubTitle *sub;
00603   QString fname, find_string;
00604   bool changed, sensitive_find;
00605   std::list<SubTitle::Event *> clipboard;
00606 };
00607 
00608 #endif // SUBTIMER_D_WND_HH

Projekt: SubTimer Készült: Wed Mar 23 22:06:54 2005 Készítette: doxygen 1.3.6