rem
stringlengths
1
322k
add
stringlengths
0
2.05M
context
stringlengths
4
228k
meta
stringlengths
156
215
lib a : a.cpp l ;
static-lib a : a.cpp l ;
#ifdef _WIN32
834d66a4563ebe3eb5c03069b0a2f08e5942bcf7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/834d66a4563ebe3eb5c03069b0a2f08e5942bcf7/searched_lib.py
def optimal_graphs(target_type, source_groups, generators): """A 'simple generator' that produces the sequence of least-cost solutions for producing the target type from a subset of the source_groups, using the given generators. """ # An index from target type to lists of groups with that type. all_groups = {} # Prime...
b05b99679afec0177949fe271b27964a3d3b72b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/b05b99679afec0177949fe271b27964a3d3b72b8/generators_prototype.py
first_image = ""
def expand_filelist_and_load_image(self, inputlist):
0d4ca028618f286642b146fd81497ddd8ca71b29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/0d4ca028618f286642b146fd81497ddd8ca71b29/mirage.py
self.do_image_list_stuff(first_image)
self.do_image_list_stuff(first_image, second_image)
def expand_filelist_and_load_image(self, inputlist):
0d4ca028618f286642b146fd81497ddd8ca71b29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/0d4ca028618f286642b146fd81497ddd8ca71b29/mirage.py
self.do_image_list_stuff(first_image)
self.do_image_list_stuff(first_image, second_image)
def expand_filelist_and_load_image(self, inputlist):
0d4ca028618f286642b146fd81497ddd8ca71b29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/0d4ca028618f286642b146fd81497ddd8ca71b29/mirage.py
def do_image_list_stuff(self, first_image):
def do_image_list_stuff(self, first_image, second_image):
def do_image_list_stuff(self, first_image): if len(self.image_list) > 0: self.set_go_navigation_sensitivities() self.image_list = list(set(self.image_list)) self.image_list.sort(locale.strcoll) for itemnum in range(len(self.image_list)): if first_image == self.image_list[itemnum]: temp = self.image_list[0] self.image_l...
0d4ca028618f286642b146fd81497ddd8ca71b29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/0d4ca028618f286642b146fd81497ddd8ca71b29/mirage.py
zoomratio = float(self.currimg.get_width())/self.previmg_width newvalue = xadjust.get_value() * zoomratio + (self.available_image_width()) * (zoomratio - 1) / 2
zoomratio = float(self.currimg_width)/self.previmg_width newvalue = abs(xadjust.get_value() * zoomratio + (self.available_image_width()) * (zoomratio - 1) / 2)
def x_adjustment_changed(self, xadjust): try: zoomratio = float(self.currimg.get_width())/self.previmg_width newvalue = xadjust.get_value() * zoomratio + (self.available_image_width()) * (zoomratio - 1) / 2 if newvalue >= xadjust.lower and newvalue <= (xadjust.upper - xadjust.page_size): xadjust.set_value(newvalue) exc...
3122c97c913bf9d9b59d5cf2f2942d8fd0c13731 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/3122c97c913bf9d9b59d5cf2f2942d8fd0c13731/mirage.py
zoomratio = float(self.currimg.get_width())/self.previmg_width newvalue = yadjust.get_value() * zoomratio + (self.available_image_height()) * (zoomratio - 1) / 2
zoomratio = float(self.currimg_width)/self.previmg_width newvalue = abs(yadjust.get_value() * zoomratio + (self.available_image_height()) * (zoomratio - 1) / 2)
def y_adjustment_changed(self, yadjust): try: zoomratio = float(self.currimg.get_width())/self.previmg_width newvalue = yadjust.get_value() * zoomratio + (self.available_image_height()) * (zoomratio - 1) / 2 if newvalue >= yadjust.lower and newvalue <= (yadjust.upper - yadjust.page_size): yadjust.set_value(newvalue) # ...
3122c97c913bf9d9b59d5cf2f2942d8fd0c13731 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/3122c97c913bf9d9b59d5cf2f2942d8fd0c13731/mirage.py
self.previmg_width = self.currimg.get_width()
self.previmg_width = self.currimg_width
def y_adjustment_changed(self, yadjust): try: zoomratio = float(self.currimg.get_width())/self.previmg_width newvalue = yadjust.get_value() * zoomratio + (self.available_image_height()) * (zoomratio - 1) / 2 if newvalue >= yadjust.lower and newvalue <= (yadjust.upper - yadjust.page_size): yadjust.set_value(newvalue) # ...
3122c97c913bf9d9b59d5cf2f2942d8fd0c13731 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/3122c97c913bf9d9b59d5cf2f2942d8fd0c13731/mirage.py
if self.last_image_action_was_fit == True: if self.zoomratio != 1: self.zoom_to_fit_window(None)
if self.last_image_action_was_fit == True and self.zoomratio != 1: self.zoom_to_fit_window(None)
def window_resized(self, widget, allocation): # Update the image size on window resize if the current image was last fit: if self.image_loaded == True: if allocation.width != self.prevwinwidth or allocation.height != self.prevwinheight: if self.last_image_action_was_fit == True: if self.zoomratio != 1: self.zoom_to_fit...
3122c97c913bf9d9b59d5cf2f2942d8fd0c13731 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/3122c97c913bf9d9b59d5cf2f2942d8fd0c13731/mirage.py
self.statusbar2.set_size_request(100, -1)
self.statusbar2.set_size_request(200, -1)
def __init__(self):
27d2355de4fb441298280d91b3753c51d39b2607 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/27d2355de4fb441298280d91b3753c51d39b2607/mirage.py
for i in range(len(self.image_list)):
self.num_custom_actions = len(self.image_list) for i in range(self.num_custom_actions): self.curr_custom_action += 1 self.update_statusbar() while gtk.events_pending(): gtk.main_iteration()
def parse_action_command(self, command, batchmode): self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) while gtk.events_pending(): gtk.main_iteration() if batchmode == True: for i in range(len(self.image_list)): imagename = self.image_list[i] self.parse_action_command2(command, imagename) else: self.parse_action_command...
27d2355de4fb441298280d91b3753c51d39b2607 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/27d2355de4fb441298280d91b3753c51d39b2607/mirage.py
if (animtest.is_static_image() == True and self.currimg_pixbuf_original != animtest.get_static_image()) or (animtest.is_static_image() == False and self.currimg_pixbuf_original != animtest): self.load_new_image(False, False, False, True, False)
if animtest.is_static_image() == True: if self.images_are_different(animtest.get_static_image(), self.currimg_pixbuf_original): self.load_new_image(False, False, False, True, False) else: if self.images_are_different(animtest, self.currimg_pixbuf_original): self.load_new_image(False, False, False, True, False) self.run...
def parse_action_command(self, command, batchmode): self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) while gtk.events_pending(): gtk.main_iteration() if batchmode == True: for i in range(len(self.image_list)): imagename = self.image_list[i] self.parse_action_command2(command, imagename) else: self.parse_action_command...
27d2355de4fb441298280d91b3753c51d39b2607 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/27d2355de4fb441298280d91b3753c51d39b2607/mirage.py
if (animtest.is_static_image() == True and self.preloadimg_prev_pixbuf_original != animtest.get_static_image()) or (animtest.is_static_image() == False and self.preloadimg_prev_pixbuf_original != animtest): self.preloadimg_prev_pixbuf_original = None self.preload_when_idle = gobject.idle_add(self.preload_prev_image, Fa...
if animtest.is_static_image() == True: if self.images_are_different(animtest.get_static_image(), self.preloadimg_prev_pixbuf_original): self.preloadimg_prev_pixbuf_original = None self.preload_when_idle = gobject.idle_add(self.preload_prev_image, False) else: if self.images_are_different(animtest, self.preloadimg_prev_...
def parse_action_command(self, command, batchmode): self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) while gtk.events_pending(): gtk.main_iteration() if batchmode == True: for i in range(len(self.image_list)): imagename = self.image_list[i] self.parse_action_command2(command, imagename) else: self.parse_action_command...
27d2355de4fb441298280d91b3753c51d39b2607 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/27d2355de4fb441298280d91b3753c51d39b2607/mirage.py
if (animtest.is_static_image() == True and self.preloadimg_next_pixbuf_original != animtest.get_static_image()) or (animtest.is_static_image() == False and self.preloadimg_next_pixbuf_original != animtest): self.preloadimg_next_pixbuf_original = None self.preload_when_idle = gobject.idle_add(self.preload_next_image, Fa...
if animtest.is_static_image() == True: if self.images_are_different(animtest.get_static_image(), self.preloadimg_next_pixbuf_original): self.preloadimg_next_pixbuf_original = None self.preload_when_idle = gobject.idle_add(self.preload_next_image, False) else: if self.images_are_different(animtest, self.preloadimg_next_...
def parse_action_command(self, command, batchmode): self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) while gtk.events_pending(): gtk.main_iteration() if batchmode == True: for i in range(len(self.image_list)): imagename = self.image_list[i] self.parse_action_command2(command, imagename) else: self.parse_action_command...
27d2355de4fb441298280d91b3753c51d39b2607 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/27d2355de4fb441298280d91b3753c51d39b2607/mirage.py
if self.searching_for_images == True:
if self.running_custom_actions: status_text = _('Custom actions') + ': ' + str(self.curr_custom_action) + ' ' + _('of') + ' ' + str(self.num_custom_actions) elif self.searching_for_images == True:
def update_statusbar(self): # Update status bar: try: st = os.stat(self.currimg_name) filesize = st[stat.ST_SIZE]/1000 ratio = int(100 * self.currimg_zoomratio) status_text = str(self.currimg_pixbuf_original.get_width()) + "x" + str(self.currimg_pixbuf_original.get_height()) + " " + str(filesize) + "KB " + str(rati...
27d2355de4fb441298280d91b3753c51d39b2607 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/27d2355de4fb441298280d91b3753c51d39b2607/mirage.py
gtk.main_iteration()
gtk.main_iteration()
def goto_prev_image(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass cancel = self.autosave_image() if cancel == True: retu...
27d2355de4fb441298280d91b3753c51d39b2607 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/27d2355de4fb441298280d91b3753c51d39b2607/mirage.py
gtk.main_iteration()
gtk.main_iteration()
def goto_next_image(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass cancel = self.autosave_image() if cancel == True: retu...
27d2355de4fb441298280d91b3753c51d39b2607 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/27d2355de4fb441298280d91b3753c51d39b2607/mirage.py
gtk.main_iteration()
gtk.main_iteration()
def goto_random_image(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass cancel = self.autosave_image() if cancel == True: re...
27d2355de4fb441298280d91b3753c51d39b2607 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/27d2355de4fb441298280d91b3753c51d39b2607/mirage.py
self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) gtk.main_iteration()
if self.fullscreen_mode == False and (self.slideshow_mode == False or (self.slideshow_mode == True and action != "ss")): self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) gtk.main_iteration()
def goto_first_image(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1 and self.curr_img_in_list != 0: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass cancel = self.autosave...
27d2355de4fb441298280d91b3753c51d39b2607 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/27d2355de4fb441298280d91b3753c51d39b2607/mirage.py
self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) gtk.main_iteration()
if self.fullscreen_mode == False and (self.slideshow_mode == False or (self.slideshow_mode == True and action != "ss")): self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) gtk.main_iteration()
def goto_last_image(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1 and self.curr_img_in_list != len(self.image_list)-1: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass ca...
27d2355de4fb441298280d91b3753c51d39b2607 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/27d2355de4fb441298280d91b3753c51d39b2607/mirage.py
if set_prev_to_none == True: self.preloadimg_prev_pixbuf_original = None elif set_next_to_none == True: self.preloadimg_next_pixbuf_original = None
def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, use_current_pixbuf_original, reset_cursor, perform_onload_action): # If use_current_pixbuf_original == True, do not reload the # self.currimg_pixbuf_original from the file; instead, use the existing # one. This is only currently useful for resizing imag...
27d2355de4fb441298280d91b3753c51d39b2607 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/27d2355de4fb441298280d91b3753c51d39b2607/mirage.py
self.set_window_title()
self.update_title()
def __init__(self):
681ff2956bbe575389c88847543556c56536fcbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/681ff2956bbe575389c88847543556c56536fcbf/mirage.py
shortcut = gtk.accelerator_name(event.keyval, event.state)
def topwindow_keypress(self, widget, event): # For whatever reason, 'Left' and 'Right' cannot be used as menu # accelerators so we will manually check for them here: if event.state != gtk.gdk.SHIFT_MASK and event.state != gtk.gdk.CONTROL_MASK and event.state != gtk.gdk.MOD1_MASK and event.state != gtk.gdk.CONTROL_MASK ...
681ff2956bbe575389c88847543556c56536fcbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/681ff2956bbe575389c88847543556c56536fcbf/mirage.py
def update_preview(self, file_chooser, preview): filename = file_chooser.get_preview_filename() try: pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(filename, 128, 128) preview.set_from_pixbuf(pixbuf) have_preview = True except: pixbuf = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, 1, 8, 128, 128) pixbuf.fill(0x00000000) prev...
def open_folder(self, action): self.open_file_or_folder(action, False)
681ff2956bbe575389c88847543556c56536fcbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/681ff2956bbe575389c88847543556c56536fcbf/mirage.py
self.expand_filelist_and_load_image(filenames) self.recursive = False
getfiles = gobject.idle_add(self.expand_filelist_and_load_image, filenames)
def open_file_or_folder(self, action, isfile): # If isfile = True, file; If isfile = False, folder dialog = gtk.FileChooserDialog(title=_("Open"),action=gtk.FILE_CHOOSER_ACTION_OPEN,buttons=(gtk.STOCK_CANCEL,gtk.RESPONSE_CANCEL,gtk.STOCK_OPEN,gtk.RESPONSE_OK)) if isfile == True: filter = gtk.FileFilter() filter.set_nam...
681ff2956bbe575389c88847543556c56536fcbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/681ff2956bbe575389c88847543556c56536fcbf/mirage.py
self.set_window_title()
self.update_title()
def delete_image(self, action): if len(self.image_list) > 0: temp_slideshow_mode = self.slideshow_mode if self.slideshow_mode == True: self.toggle_slideshow(None) delete_dialog = gtk.Dialog(_('Delete Image'), self.window, gtk.DIALOG_MODAL) if self.delete_without_prompt == False: permlabel = gtk.Label(_('Are you sure yo...
681ff2956bbe575389c88847543556c56536fcbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/681ff2956bbe575389c88847543556c56536fcbf/mirage.py
self.set_window_title()
self.update_title()
def image_load_failed(self, reset_cursor): self.currimg_name = str(self.image_list[self.curr_img_in_list]) if self.verbose == True and self.currimg_name != "": print _("Loading:"), self.currimg_name self.set_window_title() self.put_error_image_to_window() self.image_loaded = False self.currimg_pixbuf_original = None if...
681ff2956bbe575389c88847543556c56536fcbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/681ff2956bbe575389c88847543556c56536fcbf/mirage.py
self.set_window_title()
self.update_title()
def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, reset_cursor): # If there is a preloaded image available, use that instead of generating # a new one: if use_preloadimg_next == True and self.preloading_images == True: # Set current image as preload_prev_image self.preloadimg_prev_name = self.currimg_n...
681ff2956bbe575389c88847543556c56536fcbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/681ff2956bbe575389c88847543556c56536fcbf/mirage.py
self.set_window_title()
self.update_title()
def expand_filelist_and_load_image(self, inputlist): self.images_found = 0 self.stop_now = True # Make sure that any previous search process is stopped # Takes the current list (i.e. ["pic.jpg", "pic2.gif", "../images"]) and # expands it into a list of all pictures found; returns new list self.change_cursor(gtk.gdk.Cur...
681ff2956bbe575389c88847543556c56536fcbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/681ff2956bbe575389c88847543556c56536fcbf/mirage.py
def expand_directory(self, item, stop_when_image_found, go_buttons_enabled, update_title, print_found_msg):
def expand_directory(self, item, stop_when_image_found, go_buttons_enabled, update_window_title, print_found_msg):
def expand_directory(self, item, stop_when_image_found, go_buttons_enabled, update_title, print_found_msg): if self.stop_now == False and self.closing_app == False: folderlist = [] filelist = [] if os.access(item, os.R_OK) == False: return False for item2 in os.listdir(item): if item2[0] != '.' and self.closing_app == ...
681ff2956bbe575389c88847543556c56536fcbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/681ff2956bbe575389c88847543556c56536fcbf/mirage.py
if item2[0] != '.' and self.closing_app == False:
if item2[0] != '.' and self.closing_app == False and self.stop_now == False:
def expand_directory(self, item, stop_when_image_found, go_buttons_enabled, update_title, print_found_msg): if self.stop_now == False and self.closing_app == False: folderlist = [] filelist = [] if os.access(item, os.R_OK) == False: return False for item2 in os.listdir(item): if item2[0] != '.' and self.closing_app == ...
681ff2956bbe575389c88847543556c56536fcbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/681ff2956bbe575389c88847543556c56536fcbf/mirage.py
self.expand_directory(item2, stop_when_image_found, go_buttons_enabled, update_title, print_found_msg) if update_title == True: self.set_window_title() if not self.closing_app: while gtk.events_pending(): gtk.main_iteration(True)
if self.stop_now == False: self.expand_directory(item2, stop_when_image_found, go_buttons_enabled, update_window_title, print_found_msg)
def expand_directory(self, item, stop_when_image_found, go_buttons_enabled, update_title, print_found_msg): if self.stop_now == False and self.closing_app == False: folderlist = [] filelist = [] if os.access(item, os.R_OK) == False: return False for item2 in os.listdir(item): if item2[0] != '.' and self.closing_app == ...
681ff2956bbe575389c88847543556c56536fcbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/681ff2956bbe575389c88847543556c56536fcbf/mirage.py
self.set_window_title()
self.update_title()
def toggle_slideshow(self, action): if len(self.image_list) > 1: if self.slideshow_mode == False: if self.slideshow_in_fullscreen == True and self.fullscreen_mode == False: self.enter_fullscreen(None) self.slideshow_mode = True self.set_window_title() self.set_slideshow_sensitivities() if self.curr_slideshow_random == ...
681ff2956bbe575389c88847543556c56536fcbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/681ff2956bbe575389c88847543556c56536fcbf/mirage.py
self.set_window_title()
self.update_title()
def toggle_slideshow(self, action): if len(self.image_list) > 1: if self.slideshow_mode == False: if self.slideshow_in_fullscreen == True and self.fullscreen_mode == False: self.enter_fullscreen(None) self.slideshow_mode = True self.set_window_title() self.set_slideshow_sensitivities() if self.curr_slideshow_random == ...
681ff2956bbe575389c88847543556c56536fcbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/681ff2956bbe575389c88847543556c56536fcbf/mirage.py
def set_window_title(self):
def update_title(self):
def set_window_title(self): if len(self.image_list) == 0: self.window.set_title("Mirage") else: if self.slideshow_mode == True: self.window.set_title("Mirage - [" + str(self.curr_img_in_list+1) + ' ' + _('of') + ' ' + str(len(self.image_list)) + "] " + os.path.basename(self.currimg_name) + ' - ' + _('Slideshow Mode')) ...
681ff2956bbe575389c88847543556c56536fcbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/681ff2956bbe575389c88847543556c56536fcbf/mirage.py
self.window.set_title("Mirage") else:
title = "Mirage" else: title = "Mirage - [" + str(self.curr_img_in_list+1) + ' ' + _('of') + ' ' + str(len(self.image_list)) + "] " + os.path.basename(self.currimg_name)
def set_window_title(self): if len(self.image_list) == 0: self.window.set_title("Mirage") else: if self.slideshow_mode == True: self.window.set_title("Mirage - [" + str(self.curr_img_in_list+1) + ' ' + _('of') + ' ' + str(len(self.image_list)) + "] " + os.path.basename(self.currimg_name) + ' - ' + _('Slideshow Mode')) ...
681ff2956bbe575389c88847543556c56536fcbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/681ff2956bbe575389c88847543556c56536fcbf/mirage.py
self.window.set_title("Mirage - [" + str(self.curr_img_in_list+1) + ' ' + _('of') + ' ' + str(len(self.image_list)) + "] " + os.path.basename(self.currimg_name) + ' - ' + _('Slideshow Mode')) else: self.window.set_title("Mirage - [" + str(self.curr_img_in_list+1) + ' ' + _('of') + ' ' + str(len(self.image_list)) + "] "...
title = title + ' - ' + _('Slideshow Mode') self.window.set_title(title)
def set_window_title(self): if len(self.image_list) == 0: self.window.set_title("Mirage") else: if self.slideshow_mode == True: self.window.set_title("Mirage - [" + str(self.curr_img_in_list+1) + ' ' + _('of') + ' ' + str(len(self.image_list)) + "] " + os.path.basename(self.currimg_name) + ' - ' + _('Slideshow Mode')) ...
681ff2956bbe575389c88847543556c56536fcbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/681ff2956bbe575389c88847543556c56536fcbf/mirage.py
if int(round(self.zoomvalue, 0)) == 1:
if int(round(self.zoomvalue, 0)) == 0:
def __init__(self):
d31eeff485216e462e9fae9fa766f140262d6e80 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d31eeff485216e462e9fae9fa766f140262d6e80/mirage.py
self.zoom_quality = gtk.gdk.INTERP_TILES
self.zoom_quality = gtk.gdk.INTERP_BILINEAR
def __init__(self):
d31eeff485216e462e9fae9fa766f140262d6e80 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d31eeff485216e462e9fae9fa766f140262d6e80/mirage.py
self.zoom_quality = gtk.gdk.INTERP_BILINEAR elif int(round(self.zoomvalue, 0)) == 4:
def __init__(self):
d31eeff485216e462e9fae9fa766f140262d6e80 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d31eeff485216e462e9fae9fa766f140262d6e80/mirage.py
fileext = os.path.splitext(os.path.basename(filename))[1]
fileext = os.path.splitext(os.path.basename(filename))[1].lower
def save_image_as(self, action): dialog = gtk.FileChooserDialog(title=_("Save As"),action=gtk.FILE_CHOOSER_ACTION_SAVE,buttons=(gtk.STOCK_CANCEL,gtk.RESPONSE_CANCEL,gtk.STOCK_SAVE,gtk.RESPONSE_OK)) dialog.set_default_response(gtk.RESPONSE_OK) filename = os.path.basename(self.currimg_name) filetype = None dialog.set_cur...
d31eeff485216e462e9fae9fa766f140262d6e80 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d31eeff485216e462e9fae9fa766f140262d6e80/mirage.py
if int(round(self.zoomvalue, 0)) == 1:
if int(round(self.zoomvalue, 0)) == 0:
def show_prefs(self, action): self.prefs_dialog = gtk.Dialog(_("Mirage Preferences"), self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # "Interface" prefs: table_settings = gtk.Table(13, 3, False) bglabel = gtk.Label() bglabel.set_markup('<b>' + _('Interface') + '</b>') bgl...
d31eeff485216e462e9fae9fa766f140262d6e80 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d31eeff485216e462e9fae9fa766f140262d6e80/mirage.py
self.zoom_quality = gtk.gdk.INTERP_TILES
self.zoom_quality = gtk.gdk.INTERP_BILINEAR
def show_prefs(self, action): self.prefs_dialog = gtk.Dialog(_("Mirage Preferences"), self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # "Interface" prefs: table_settings = gtk.Table(13, 3, False) bglabel = gtk.Label() bglabel.set_markup('<b>' + _('Interface') + '</b>') bgl...
d31eeff485216e462e9fae9fa766f140262d6e80 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d31eeff485216e462e9fae9fa766f140262d6e80/mirage.py
self.zoom_quality = gtk.gdk.INTERP_BILINEAR elif int(round(self.zoomvalue, 0)) == 4:
def show_prefs(self, action): self.prefs_dialog = gtk.Dialog(_("Mirage Preferences"), self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # "Interface" prefs: table_settings = gtk.Table(13, 3, False) bglabel = gtk.Label() bglabel.set_markup('<b>' + _('Interface') + '</b>') bgl...
d31eeff485216e462e9fae9fa766f140262d6e80 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d31eeff485216e462e9fae9fa766f140262d6e80/mirage.py
if len(self.image_list) > 0: self.set_go_navigation_sensitivities() self.image_list = list(set(self.image_list)) self.image_list.sort(locale.strcoll) for itemnum in range(len(self.image_list)): if first_image == self.image_list[itemnum]: self.curr_img_in_list = itemnum self.set_window_title() if not self.closing_app: w...
if first_image_came_from_dir == True: self.add_folderlist_images(folderlist, go_buttons_enabled) self.do_image_list_stuff(first_image) else: self.do_image_list_stuff(first_image) self.add_folderlist_images(folderlist, go_buttons_enabled)
def expand_filelist_and_load_image(self, inputlist):
9e99795625d35ede9a598b6531066bb9d9caaef9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/9e99795625d35ede9a598b6531066bb9d9caaef9/mirage.py
self.max_zoomratio = 5 self.min_zoomratio = 0.1
self.min_zoomratio = 0.02
def __init__(self):
662bee3d316f5b6b637b01ea71d5f3dfbd7059d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/662bee3d316f5b6b637b01ea71d5f3dfbd7059d1/mirage.py
self.zoomratio_for_zoom_to_fit = 1
def __init__(self):
662bee3d316f5b6b637b01ea71d5f3dfbd7059d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/662bee3d316f5b6b637b01ea71d5f3dfbd7059d1/mirage.py
if self.currimg_zoomratio < self.min_zoomratio * self.zoomratio_for_zoom_to_fit: self.set_zoom_out_sensitivities(False) else: self.set_zoom_out_sensitivities(True) if self.currimg_zoomratio > self.max_zoomratio * self.zoomratio_for_zoom_to_fit: self.set_zoom_in_sensitivities(False) else: self.set_zoom_in_sensitivities(...
self.set_zoom_out_sensitivities(True) self.set_zoom_in_sensitivities(True)
def set_zoom_sensitivities(self): if self.currimg_is_animation == False: if self.currimg_zoomratio < self.min_zoomratio * self.zoomratio_for_zoom_to_fit: self.set_zoom_out_sensitivities(False) else: self.set_zoom_out_sensitivities(True) if self.currimg_zoomratio > self.max_zoomratio * self.zoomratio_for_zoom_to_fit: se...
662bee3d316f5b6b637b01ea71d5f3dfbd7059d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/662bee3d316f5b6b637b01ea71d5f3dfbd7059d1/mirage.py
if self.preloading_images == True: self.preloadimg_next_pixbuf_original = None self.preloadimg_prev_pixbuf_original = None self.preload_when_idle = gobject.idle_add(self.preload_next_image, False) self.preload_when_idle2 = gobject.idle_add(self.preload_prev_image, False)
def show_prefs(self, action): self.prefs_dialog = gtk.Dialog(title=_("Mirage Preferences"), parent=self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # "Interface" prefs: table_settings = gtk.Table(13, 3, False) bglabel = gtk.Label() bglabel.set_markup('<b>' + _('Interface') ...
662bee3d316f5b6b637b01ea71d5f3dfbd7059d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/662bee3d316f5b6b637b01ea71d5f3dfbd7059d1/mirage.py
self.set_go_navigation_sensitivities(False)
def show_prefs(self, action): self.prefs_dialog = gtk.Dialog(title=_("Mirage Preferences"), parent=self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # "Interface" prefs: table_settings = gtk.Table(13, 3, False) bglabel = gtk.Label() bglabel.set_markup('<b>' + _('Interface') ...
662bee3d316f5b6b637b01ea71d5f3dfbd7059d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/662bee3d316f5b6b637b01ea71d5f3dfbd7059d1/mirage.py
self.zoomratio_for_zoom_to_fit = self.currimg_zoomratio
def zoom_to_fit_or_1_to_1(self, action, is_preloadimg_next, is_preloadimg_prev): if is_preloadimg_next == True: if self.preloading_images == True and self.preloadimg_next_pixbuf_original != None: win_width = self.available_image_width() win_height = self.available_image_height() preimg_width = self.preloadimg_next_pixb...
662bee3d316f5b6b637b01ea71d5f3dfbd7059d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/662bee3d316f5b6b637b01ea71d5f3dfbd7059d1/mirage.py
if self.image_modified == False:
if self.image_modified == False and self.image_zoomed == False:
def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, use_current_pixbuf_original, reset_cursor, perform_onload_action): # If use_current_pixbuf_original == True, do not reload the # self.currimg_pixbuf_original from the file; instead, use the existing # one. This is only currently useful for resizing imag...
662bee3d316f5b6b637b01ea71d5f3dfbd7059d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/662bee3d316f5b6b637b01ea71d5f3dfbd7059d1/mirage.py
if self.image_modified == False:
if self.image_modified == False and self.image_zoomed == False:
def load_new_image(self, use_preloadimg_next, use_preloadimg_prev, use_current_pixbuf_original, reset_cursor, perform_onload_action): # If use_current_pixbuf_original == True, do not reload the # self.currimg_pixbuf_original from the file; instead, use the existing # one. This is only currently useful for resizing imag...
662bee3d316f5b6b637b01ea71d5f3dfbd7059d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/662bee3d316f5b6b637b01ea71d5f3dfbd7059d1/mirage.py
self.load_new_image(False, False, False, False, True)
self.load_new_image(False, False, False, True, True)
def expand_filelist_and_load_image(self, inputlist): # Takes the current list (i.e. ["pic.jpg", "pic2.gif", "../images"]) and # expands it into a list of all pictures found self.images_found = 0 self.stop_now = True # Make sure that any previous search process is stopped self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)...
662bee3d316f5b6b637b01ea71d5f3dfbd7059d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/662bee3d316f5b6b637b01ea71d5f3dfbd7059d1/mirage.py
def __init__(self):
256b0d450ece2fc62a329cf543aee8046cf71dba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/256b0d450ece2fc62a329cf543aee8046cf71dba/mirage.py
if self.image_loaded == True and self.last_image_action_was_fit == True:
if self.image_loaded == True:
def window_resized(self, widget, allocation): # Update the image size on window resize if the current image was last fit: if self.image_loaded == True and self.last_image_action_was_fit == True: if allocation.width != self.prevwinwidth or allocation.height != self.prevwinheight: if self.zoomratio != 1: print "window re...
256b0d450ece2fc62a329cf543aee8046cf71dba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/256b0d450ece2fc62a329cf543aee8046cf71dba/mirage.py
if self.zoomratio != 1: print "window resized" self.zoom_to_fit_window(None)
if self.last_image_action_was_fit == True: if self.zoomratio != 1: self.zoom_to_fit_window(None) else: self.center_image()
def window_resized(self, widget, allocation): # Update the image size on window resize if the current image was last fit: if self.image_loaded == True and self.last_image_action_was_fit == True: if allocation.width != self.prevwinwidth or allocation.height != self.prevwinheight: if self.zoomratio != 1: print "window re...
256b0d450ece2fc62a329cf543aee8046cf71dba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/256b0d450ece2fc62a329cf543aee8046cf71dba/mirage.py
self.center_image()
def toggle_fullscreen(self, action): if self.fullscreen_mode == True: self.fullscreen_mode = False self.UIManager.get_widget('/Popup/FM4').hide() self.UIManager.get_widget('/Popup/Exit Full Screen').hide() self.window.unfullscreen() if self.toolbar_show == True: self.toolbar.show() self.menubar.show() if self.statusbar...
256b0d450ece2fc62a329cf543aee8046cf71dba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/256b0d450ece2fc62a329cf543aee8046cf71dba/mirage.py
hbox = gtk.HBox(False, 0) vbox.pack_start(hbox, True, True, 0) hbox.pack_start(self.layout, True, True, 0) hbox.pack_start(self.vscroll, False, False, 0) vbox.pack_start(self.hscroll, False, False, 0)
self.table = gtk.Table(2, 2, False) self.table.attach(self.layout, 0, 1, 0, 1, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 0, 0) self.table.attach(self.hscroll, 0, 1, 1, 2, gtk.FILL|gtk.SHRINK, gtk.FILL|gtk.SHRINK, 0, 0) self.table.attach(self.vscroll, 1, 2, 0, 1, gtk.FILL|gtk.SHRINK, gtk.FILL|gtk.SHRINK, 0, 0) vbox.pack...
def __init__(self):
76a2283830945fb2f62193dae50ef08730d10a74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/76a2283830945fb2f62193dae50ef08730d10a74/mirage.py
elif event.keyval == 65363:
elif event.keyval == 65363 or event.keyval == 32:
def topwindow_keypress(self, widget, event): if event.state != gtk.gdk.SHIFT_MASK and event.state != gtk.gdk.CONTROL_MASK and event.state != gtk.gdk.MOD1_MASK and event.state != gtk.gdk.CONTROL_MASK | gtk.gdk.MOD2_MASK: if event.keyval == 65361: # Left arrow self.prev_img_in_list(None) elif event.keyval == 65363: #...
76a2283830945fb2f62193dae50ef08730d10a74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/76a2283830945fb2f62193dae50ef08730d10a74/mirage.py
newvalue = xadjust.get_value() * zoomratio + (self.available_image_width() - 20) * (zoomratio - 1) / 2
newvalue = xadjust.get_value() * zoomratio + (self.available_image_width()) * (zoomratio - 1) / 2
def x_adjustment_changed(self, xadjust): try: zoomratio = float(self.currimg.get_width())/self.previmg_width newvalue = xadjust.get_value() * zoomratio + (self.available_image_width() - 20) * (zoomratio - 1) / 2 if newvalue >= xadjust.lower and newvalue <= (xadjust.upper - xadjust.page_size): xadjust.set_value(newvalue...
76a2283830945fb2f62193dae50ef08730d10a74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/76a2283830945fb2f62193dae50ef08730d10a74/mirage.py
newvalue = yadjust.get_value() * zoomratio + (self.available_image_height() - 20) * (zoomratio - 1) / 2
newvalue = yadjust.get_value() * zoomratio + (self.available_image_height()) * (zoomratio - 1) / 2
def y_adjustment_changed(self, yadjust): try: zoomratio = float(self.currimg.get_width())/self.previmg_width newvalue = yadjust.get_value() * zoomratio + (self.available_image_height() - 20) * (zoomratio - 1) / 2 if newvalue >= yadjust.lower and newvalue <= (yadjust.upper - yadjust.page_size): yadjust.set_value(newvalu...
76a2283830945fb2f62193dae50ef08730d10a74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/76a2283830945fb2f62193dae50ef08730d10a74/mirage.py
if finalimg_width > self.available_image_width(): self.hscroll.show() else: self.hscroll.hide() if finalimg_height > self.available_image_height(): self.vscroll.show() else: self.vscroll.hide() self.layout.set_size(finalimg_width, finalimg_height) self.center_image(finalimg_width, finalimg_height)
if self.orientation == 0: self.currimg_width, self.currimg_height = finalimg_width, finalimg_height else: self.currimg_width, self.currimg_height = finalimg_height, finalimg_width self.show_scrollbars_if_needed() self.layout.set_size(self.currimg_width, self.currimg_height) self.center_image()
def put_zoom_image_to_window(self): previmg = self.currimg # Always start with the original image to preserve quality! # Calculate image size: finalimg_width = int(self.originalimg.get_width() * self.zoomratio) finalimg_height = int(self.originalimg.get_height() * self.zoomratio) # If self.zoomratio < 1, scale first so...
76a2283830945fb2f62193dae50ef08730d10a74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/76a2283830945fb2f62193dae50ef08730d10a74/mirage.py
def center_image(self, width, height): if width == 0: width = self.imageview.size_request()[0] if height == 0: height = self.imageview.size_request()[1] while gtk.events_pending(): gtk.main_iteration() x_shift = int((self.available_image_width() - width)/2)
def show_scrollbars_if_needed(self): if self.currimg_width > self.available_image_width(): self.hscroll.show() else: self.hscroll.hide() if self.currimg_height > self.available_image_height(): self.vscroll.show() else: self.vscroll.hide() def center_image(self): x_shift = int((self.available_image_width() - self.curr...
def put_zoom_image_to_window(self): previmg = self.currimg # Always start with the original image to preserve quality! # Calculate image size: finalimg_width = int(self.originalimg.get_width() * self.zoomratio) finalimg_height = int(self.originalimg.get_height() * self.zoomratio) # If self.zoomratio < 1, scale first so...
76a2283830945fb2f62193dae50ef08730d10a74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/76a2283830945fb2f62193dae50ef08730d10a74/mirage.py
y_shift = int((self.available_image_height() - height)/2)
y_shift = int((self.available_image_height() - self.currimg_height)/2)
def center_image(self, width, height): if width == 0: width = self.imageview.size_request()[0] if height == 0: height = self.imageview.size_request()[1] while gtk.events_pending(): gtk.main_iteration() x_shift = int((self.available_image_width() - width)/2) if x_shift < 0: x_shift = 0 y_shift = int((self.available_imag...
76a2283830945fb2f62193dae50ef08730d10a74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/76a2283830945fb2f62193dae50ef08730d10a74/mirage.py
print x_shift, y_shift
def center_image(self, width, height): if width == 0: width = self.imageview.size_request()[0] if height == 0: height = self.imageview.size_request()[1] while gtk.events_pending(): gtk.main_iteration() x_shift = int((self.available_image_width() - width)/2) if x_shift < 0: x_shift = 0 y_shift = int((self.available_imag...
76a2283830945fb2f62193dae50ef08730d10a74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/76a2283830945fb2f62193dae50ef08730d10a74/mirage.py
self.center_image(0, 0)
self.center_image()
def toggle_fullscreen(self, action): if self.fullscreen_mode == True: self.fullscreen_mode = False self.UIManager.get_widget('/Popup/FM4').hide() self.UIManager.get_widget('/Popup/Exit Full Screen').hide() self.window.unfullscreen() if self.toolbar_show == True: self.toolbar.show() self.menubar.show() if self.statusbar...
76a2283830945fb2f62193dae50ef08730d10a74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/76a2283830945fb2f62193dae50ef08730d10a74/mirage.py
def mouse_moved(self, widget, event):
76a2283830945fb2f62193dae50ef08730d10a74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/76a2283830945fb2f62193dae50ef08730d10a74/mirage.py
x = event.x y = event.y
def mouse_moved(self, widget, event):
76a2283830945fb2f62193dae50ef08730d10a74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/76a2283830945fb2f62193dae50ef08730d10a74/mirage.py
def mouse_moved(self, widget, event):
76a2283830945fb2f62193dae50ef08730d10a74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/76a2283830945fb2f62193dae50ef08730d10a74/mirage.py
if newy >= yadjust.lower and newy <=yadjust.upper - yadjust.page_size:
if newy >= yadjust.lower and newy <= yadjust.upper - yadjust.page_size:
def mouse_moved(self, widget, event):
76a2283830945fb2f62193dae50ef08730d10a74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/76a2283830945fb2f62193dae50ef08730d10a74/mirage.py
self.prevmousex = event.x self.prevmousey = event.y
self.prevmousex = event.x_root self.prevmousey = event.y_root
def button_pressed(self, widget, event): # Changes the cursor to the 'resize' cursor, like GIMP, on a middle click: if event.button == 2 or event.button == 1: self.layout.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.FLEUR)) self.prevmousex = event.x self.prevmousey = event.y # Right-click popup: elif self.image_loaded == T...
76a2283830945fb2f62193dae50ef08730d10a74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/76a2283830945fb2f62193dae50ef08730d10a74/mirage.py
self.center_image(0, 0)
self.show_scrollbars_if_needed() self.center_image()
def rotate_left(self, action): if self.userimage != "": self.last_image_action_was_fit = False if self.orientation == 0: self.orientation = 1 else: self.orientation = 0 self.location -= 1 if self.location == -1: self.location = 3 self.currimg = self.image_rotate(self.currimg, 90) self.imageview.set_from_pixbuf(self.cur...
76a2283830945fb2f62193dae50ef08730d10a74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/76a2283830945fb2f62193dae50ef08730d10a74/mirage.py
self.center_image(0, 0)
self.show_scrollbars_if_needed() self.center_image()
def rotate_right(self, action): if self.userimage != "": self.last_image_action_was_fit = False if self.orientation == 0: self.orientation = 1 else: self.orientation = 0 self.location += 1 if self.location == 4: self.location = 0 self.currimg = self.image_rotate(self.currimg, 270) self.imageview.set_from_pixbuf(self.cu...
76a2283830945fb2f62193dae50ef08730d10a74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/76a2283830945fb2f62193dae50ef08730d10a74/mirage.py
def __init__(self):
def __init__(self):
def __init__(self):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
def __init__(self):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
self.open_mode_fit = 1 self.open_mode_1to1 = 2 self.open_mode_last = 3 self.max_zoomratio = 5
self.open_mode_fit = 1 self.open_mode_1to1 = 2 self.open_mode_last = 3 self.max_zoomratio = 5
def __init__(self):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
width=600 height=400 bgcolor_found = False
width=600 height=400 bgcolor_found = False
def __init__(self):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
self.curr_img_in_list = 0
self.curr_img_in_list = 0
def __init__(self):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
self.currimg_height = 0
self.currimg_height = 0
def __init__(self):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
self.toolbar_show = True self.statusbar_show = True self.fullscreen_mode = False self.opendialogpath = "" self.zoom_quality = gtk.gdk.INTERP_BILINEAR self.recursive = False self.verbose = False self.image_loaded = False self.open_all_images = False
self.toolbar_show = True self.statusbar_show = True self.fullscreen_mode = False self.opendialogpath = "" self.zoom_quality = gtk.gdk.INTERP_BILINEAR self.recursive = False self.verbose = False self.image_loaded = False self.open_all_images = False
def __init__(self):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
self.last_dir = os.path.expanduser("~") self.fixed_dir = os.path.expanduser("~") self.image_list = [] self.open_mode = self.open_mode_smart self.last_mode = self.open_mode_smart self.zoomratio_for_zoom_to_fit = 1 self.mousewheel_nav = True self.listwrap_mode = 0 self.user_prompt_visible = False self.slideshow_delay = 1...
self.last_dir = os.path.expanduser("~") self.fixed_dir = os.path.expanduser("~") self.image_list = [] self.open_mode = self.open_mode_smart self.last_mode = self.open_mode_smart self.zoomratio_for_zoom_to_fit = 1 self.mousewheel_nav = True self.listwrap_mode = 0 self.user_prompt_visible = False self.slideshow_delay = 1...
def __init__(self):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
self.delayoptions = [2,3,5,10,15,30]
self.delayoptions = [2,3,5,10,15,30]
def __init__(self):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
self.slideshow_controls_visible = False
self.slideshow_controls_visible = False
def __init__(self):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
self.zoomvalue = 3.0 self.editor = "gimp-remote"
self.zoomvalue = 3.0 self.editor = "gimp-remote"
def __init__(self):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
def __init__(self):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
opts, args = getopt.getopt(sys.argv[1:], "hRvVsf", ["help", "version", "recursive", "verbose", "slideshow", "fullscreen"]) except getopt.GetoptError:
opts, args = getopt.getopt(sys.argv[1:], "hRvVsf", ["help", "version", "recursive", "verbose", "slideshow", "fullscreen"]) except getopt.GetoptError:
def __init__(self):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
sys.exit(2)
sys.exit(2)
def __init__(self):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
for o, a in opts: if o in ("-v", "--version"): self.print_version() sys.exit(2) elif o in ("-h", "--help"): self.print_usage() sys.exit(2) elif o in ("-R", "--recursive"): self.recursive = True elif o in ("-V", "--verbose"): self.verbose = True
for o, a in opts: if o in ("-v", "--version"): self.print_version() sys.exit(2) elif o in ("-h", "--help"): self.print_usage() sys.exit(2) elif o in ("-R", "--recursive"): self.recursive = True elif o in ("-V", "--verbose"): self.verbose = True
def __init__(self):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
else: self.print_usage() sys.exit(2)
else: self.print_usage() sys.exit(2)
def __init__(self):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
if os.path.isfile(os.path.expanduser('~/.config/mirage/miragerc')): conf.read(os.path.expanduser('~/.config/mirage/miragerc')) elif os.path.isfile(os.path.expanduser('~/.miragerc')): conf.read(os.path.expanduser('~/.miragerc')) os.remove(os.path.expanduser('~/.miragerc')) try: width = conf.getint('window', 'w') height ...
if os.path.isfile(os.path.expanduser('~/.config/mirage/miragerc')): conf.read(os.path.expanduser('~/.config/mirage/miragerc')) elif os.path.isfile(os.path.expanduser('~/.miragerc')): conf.read(os.path.expanduser('~/.miragerc')) os.remove(os.path.expanduser('~/.miragerc')) try: width = conf.getint('window', 'w') height ...
def __init__(self):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
except (ConfigParser.NoOptionError, ConfigParser.NoSectionError): pass
except (ConfigParser.NoOptionError, ConfigParser.NoSectionError): pass
def __init__(self):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
def __init__(self):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
def __init__(self):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
('FileMenu', None, _('_File')), ('EditMenu', None, _('_Edit')), ('ViewMenu', None, _('_View')), ('GoMenu', None, _('_Go')), ('HelpMenu', None, _('_Help')), ('Open Image', gtk.STOCK_OPEN, _('_Open Image...'), '<control>O', _('Open Image'), self.open_file), ('Open Folder', gtk.STOCK_OPEN, _('Open _Folder...'), '<control>...
('FileMenu', None, _('_File')), ('EditMenu', None, _('_Edit')), ('ViewMenu', None, _('_View')), ('GoMenu', None, _('_Go')), ('HelpMenu', None, _('_Help')), ('Open Image', gtk.STOCK_OPEN, _('_Open Image...'), '<control>O', _('Open Image'), self.open_file), ('Open Folder', gtk.STOCK_OPEN, _('Open _Folder...'), '<control>...
def __init__(self):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
) toggle_actions = ( ('Status Bar', None, _('_Status Bar'), None, _('Status Bar'), self.toggle_status_bar, self.statusbar_show), ('Toolbar', None, _('_Toolbar'), None, _('Toolbar'), self.toggle_toolbar, self.toolbar_show), ) uiDescription = """ <ui> <popup name="Popup"> <menuitem action="Next Image"/> <menuitem action=...
) toggle_actions = ( ('Status Bar', None, _('_Status Bar'), None, _('Status Bar'), self.toggle_status_bar, self.statusbar_show), ('Toolbar', None, _('_Toolbar'), None, _('Toolbar'), self.toggle_toolbar, self.toolbar_show), ) uiDescription = """ <ui> <popup name="Popup"> <menuitem action="Next Image"/> <menuitem action=...
def __init__(self):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
self.set_window_title() iconname = 'mirage.png' if os.path.exists(iconname): icon_path = iconname elif os.path.exists('../share/pixmaps/' + iconname): icon_path = '../share/pixmaps/' + iconname elif os.path.exists('/usr/local/share/pixmaps/' + iconname): icon_path = '/usr/local/share/pixmaps/' + iconname elif os.path.e...
self.set_window_title() iconname = 'mirage.png' if os.path.exists(iconname): icon_path = iconname elif os.path.exists('../share/pixmaps/' + iconname): icon_path = '../share/pixmaps/' + iconname elif os.path.exists('/usr/local/share/pixmaps/' + iconname): icon_path = '/usr/local/share/pixmaps/' + iconname elif os.path.e...
def __init__(self):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
self.imageview = gtk.Image() self.layout.add(self.imageview) self.statusbar = gtk.Statusbar() self.statusbar.set_has_resize_grip(True) vbox.pack_start(self.statusbar, False, False, 0) self.statusbar.set_property('visible', self.statusbar_show) self.window.add(vbox) self.window.set_property('allow-shrink', False) self.w...
self.imageview = gtk.Image() self.layout.add(self.imageview) self.statusbar = gtk.Statusbar() self.statusbar.set_has_resize_grip(True) vbox.pack_start(self.statusbar, False, False, 0) self.statusbar.set_property('visible', self.statusbar_show) self.window.add(vbox) self.window.set_property('allow-shrink', False) self.w...
def __init__(self):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
self.slideshow_controls = gtk.HBox() ss_back = gtk.Button("", gtk.STOCK_GO_BACK) alignment = ss_back.get_children()[0] hbox2 = alignment.get_children()[0] image, label = hbox2.get_children() label.set_text('') ss_back.set_property('can-focus', False) ss_back.connect('clicked', self.prev_img_in_list) self.ss_start = gtk...
self.slideshow_controls = gtk.HBox() ss_back = gtk.Button("", gtk.STOCK_GO_BACK) alignment = ss_back.get_children()[0] hbox2 = alignment.get_children()[0] image, label = hbox2.get_children() label.set_text('') ss_back.set_property('can-focus', False) ss_back.connect('clicked', self.prev_img_in_list) self.ss_start = gtk...
def __init__(self):
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py