1 /* 2 SANE EPSON backend 3 Copyright (C) 2001, 2008 SEIKO EPSON Corporation 4 5 Date Author Reason 6 06/01/2001 N.Sasaki New 7 8 This file is part of the `iscan' program. 9 10 This program is free software; you can redistribute it and/or modify 11 it under the terms of the GNU General Public License as published by 12 the Free Software Foundation; either version 2 of the License, or 13 (at your option) any later version. 14 15 This program is distributed in the hope that it will be useful, 16 but WITHOUT ANY WARRANTY; without even the implied warranty of 17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 GNU General Public License for more details. 19 20 You should have received a copy of the GNU General Public License 21 along with this program; if not, write to the Free Software 22 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 23 24 As a special exception, the copyright holders give permission 25 to link the code of this program with the esmod library and 26 distribute linked combinations including the two. You must obey 27 the GNU General Public License in all respects for all of the 28 code used other then esmod. 29 */ 30 31 #ifndef ___PISA_MAIN_WINDOW_H 32 #define ___PISA_MAIN_WINDOW_H 33 34 #include <gtk/gtk.h> 35 #include "pisa_enums.h" 36 37 class main_window 38 { 39 public: 40 41 // operation 42 int init ( void ); 43 GtkWidget * create_window ( GtkWidget * parent = 0 ); 44 int close_window ( int destroy ); 45 void sensitive ( int is_prev_img ); 46 void enable_start_button (bool yes); 47 get_widget(void)48 GtkWidget * get_widget ( void ) { return m_widget [ WG_MAIN_TOP ]; } 49 50 private: 51 52 // operation 53 GtkWidget * create_left_area ( void ); 54 GtkWidget * create_preview_button ( void ); 55 GtkWidget * create_preview_window ( void ); 56 GtkWidget * create_scan_button ( void ); 57 GtkWidget * create_scan_label ( void ); 58 GtkWidget * create_right_area ( void ); 59 GtkWidget * create_main_tab ( void ); 60 GtkWidget * create_document_tab ( void ); 61 GtkWidget * create_target ( void ); 62 GtkWidget * create_focus ( void ); 63 GtkWidget * create_penguin ( void ); 64 GtkWidget * create_adjust_tab ( void ); 65 GtkWidget * create_close_button ( void ); 66 67 void sensitive_image_type ( void ); 68 void sensitive_target ( void ); 69 void sensitive_resolution ( void ); 70 void sensitive_scale ( void ); 71 void sensitive_focus ( void ); 72 void sensitive_usm ( void ); 73 74 // attribute 75 GtkWidget * m_widget [ WG_MAIN_NUM ]; 76 }; 77 78 #endif // ___PISA_MAIN_WINDOW_H 79