gtk_text_win.h
上传用户:psq1974
上传日期:2007-01-06
资源大小:1195k
文件大小:1k
- /* Copyright (C) 1998, 1999 State University of New York at Stony Brook
- Author: Andrew V. Shuvalov ( andrew@ecsl.cs.sunysb.edu )
- Software license is located in file "COPYING"
- */
- #ifndef _gtk_text_win_h_
- #define _gtk_text_win_h_
- #include "session.h"
- /**
- */
- class TextWindow : public Gtk_Window {
- /** reference to Session */
- Session &session;
- /** id of movie */
- int movieId;
- /** top menu */
- Gtk_MenuBar *menuBar;
- /** bottom status bar */
- Gtk_Statusbar *statusBar;
- /** text */
- Gtk_CList *movieText;
- /** hold the currently selected play position as time */
- time_t currentSelectTime;
- protected:
- // overload virtual
- gint delete_event_impl( GdkEventAny * );
- static const int topWindowInitSizeX;
- static const int topWindowInitSizeY;
- static const int movieTextColumns;
- public:
- TextWindow( int id, Session &s );
- ~TextWindow();
- /** synchronize video fragment with text */
- void select_text_line_by_time( time_t t );
- void select_text_line( unsigned int linenum );
- /** callback */
- int close_text_window( GdkEventAny *ev );
- /** callback */
- void callback_text_select_row( gint row, gint col, GdkEvent *button );
- /** play */
- void callback_play();
- /** stop */
- void callback_stop();
- };
- class Gtk_ImageTextButton : public Gtk_Button {
- public:
- Gtk_ImageTextButton( const gchar *xpmpath, const char *label );
- };
- #endif // _gtk_text_win_h_