/dports/emulators/vice/vice-3.5/src/arch/gtk3/widgets/base/ |
H A D | lastdir.c | 84 void lastdir_set(GtkWidget *widget, gchar **last_dir, gchar **last_file) in lastdir_set() argument 86 if (last_dir != NULL && *last_dir != NULL) { in lastdir_set() 87 gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(widget), *last_dir); in lastdir_set() 103 void lastdir_update(GtkWidget *widget, gchar **last_dir, gchar **last_file) in lastdir_update() argument 112 if (*last_dir != NULL) { in lastdir_update() 113 g_free(*last_dir); in lastdir_update() 115 *last_dir = new_dir; in lastdir_update() 142 void lastdir_shutdown(gchar **last_dir, gchar **last_file) in lastdir_shutdown() argument 144 if (last_dir != NULL) { in lastdir_shutdown() 145 g_free(*last_dir); in lastdir_shutdown() [all …]
|
/dports/databases/py-litecli/litecli-1.6.0/litecli/packages/ |
H A D | filepaths.py | 23 def complete_path(curr_dir, last_dir): argument 34 if not last_dir or curr_dir.startswith(last_dir): 36 elif last_dir == "~": 37 return os.path.join(last_dir, curr_dir) 49 base_dir, last_dir, position = "", "", 0 51 base_dir, last_dir = os.path.split(root_dir) 52 position = -len(last_dir) if last_dir else 0 53 return base_dir, last_dir, position
|
/dports/databases/py-mycli/mycli-1.23.2/mycli/packages/ |
H A D | filepaths.py | 28 def complete_path(curr_dir, last_dir): argument 39 if not last_dir or curr_dir.startswith(last_dir): 41 elif last_dir == '~': 42 return os.path.join(last_dir, curr_dir) 54 base_dir, last_dir, position = '', '', 0 56 base_dir, last_dir = os.path.split(root_dir) 57 position = -len(last_dir) if last_dir else 0 58 return base_dir, last_dir, position
|
/dports/math/cgal/CGAL-5.3/include/CGAL/ |
H A D | Hilbert_sort_middle_d.h | 87 int last_dir = (direction + _dimension) % _dimension; in sort() local 108 }while (current_dir != last_dir); in sort() 111 last_dir = (direction + _dimension -1) % _dimension; in sort() 114 sort( places[0], places[1], start, last_dir,cmin,cmax); in sort() 115 cmin[last_dir] = med[last_dir]; in sort() 116 cmax[last_dir] = maxi[last_dir]; in sort() 131 cmax[ last_dir ] = (cmax[last_dir]==maxi[last_dir]) in sort() 132 ? mini[ last_dir ] : maxi[ last_dir ]; in sort() 134 start[last_dir] = ! start[last_dir]; in sort() 139 sort( places[two_to_dim-1], places[two_to_dim], start, last_dir,cmin,cmax); in sort()
|
H A D | Hilbert_sort_median_d.h | 95 int last_dir = (direction + nb_directions) % _dimension; in sort() local 115 }while (current_dir != last_dir); in sort() 120 last_dir = (direction + _dimension -1) % _dimension; in sort() 122 sort( places[0], places[1], start, last_dir); in sort() 128 start[last_dir] = ! start[last_dir]; in sort() 132 sort( places[two_to_dim-1], places[two_to_dim], start, last_dir); in sort()
|
/dports/net/minidlna/minidlna-4f6a473/ |
H A D | playlist.c | 120 char *plpath, *plname, *fname, *last_dir; in fill_playlists() local 148 last_dir = NULL; in fill_playlists() 181 if( last_dir ) in fill_playlists() 192 sqlite3_free(last_dir); in fill_playlists() 193 last_dir = NULL; in fill_playlists() 231 if( !last_dir ) in fill_playlists() 234 if( last_dir ) in fill_playlists() 236 fname = strrchr(last_dir, '/'); in fill_playlists() 260 if( last_dir ) in fill_playlists() 262 sqlite3_free(last_dir); in fill_playlists() [all …]
|
/dports/sysutils/gsmartcontrol/gsmartcontrol-1.1.3/src/ |
H A D | gsc_executor_log_window.cpp | 195 static std::string last_dir; in on_window_save_current_button_clicked() local 196 if (last_dir.empty()) { in on_window_save_current_button_clicked() 218 if (!last_dir.empty()) in on_window_save_current_button_clicked() 238 if (!last_dir.empty()) in on_window_save_current_button_clicked() 239 dialog.set_current_folder(last_dir); in on_window_save_current_button_clicked() 254 last_dir = hz::path_get_dirname(file); in on_window_save_current_button_clicked() 312 static std::string last_dir; in on_window_save_all_button_clicked() local 313 if (last_dir.empty()) { in on_window_save_all_button_clicked() 335 if (!last_dir.empty()) in on_window_save_all_button_clicked() 355 if (!last_dir.empty()) in on_window_save_all_button_clicked() [all …]
|
H A D | gsc_text_window.h | 144 static std::string last_dir; in on_save_as_button_clicked() local 145 if (last_dir.empty()) { in on_save_as_button_clicked() 146 rconfig::get_data("gui/drive_data_open_save_dir", last_dir); in on_save_as_button_clicked() 167 if (!last_dir.empty()) in on_save_as_button_clicked() 168 gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(dialog.get()), last_dir.c_str()); in on_save_as_button_clicked() 188 if (!last_dir.empty()) in on_save_as_button_clicked() 189 dialog.set_current_folder(last_dir); in on_save_as_button_clicked() 205 last_dir = hz::path_get_dirname(file); in on_save_as_button_clicked() 208 last_dir = dialog.get_current_folder(); // save for the future in on_save_as_button_clicked() 210 rconfig::set_data("gui/drive_data_open_save_dir", last_dir); in on_save_as_button_clicked()
|
/dports/emulators/jzintv/jzintv-20200712-src/src/mouse/ |
H A D | mouse_sdl.c | 25 static event_num_t last_dir = EVENT_BAD; variable 60 if (dir != last_dir) in mouse_decode_motion() 62 if (last_dir != EVENT_BAD) in mouse_decode_motion() 64 ev_updn[0] = EV_UP; ev_num[0] = last_dir; in mouse_decode_motion() 74 last_dir = dir; in mouse_decode_motion() 136 if (last_dir != EVENT_BAD && get_time() > to_release) in mouse_pump() 138 *ev_num = last_dir; in mouse_pump() 140 last_dir = EVENT_BAD; in mouse_pump()
|
/dports/biology/ncbi-blast+/ncbi-blast-2.12.0+-src/c++/scripts/common/impl/ |
H A D | create_flat_tuneups.sh | 38 if [ "$dir" \!= "$last_dir" ]; then 39 if [ -n "$last_dir" ]; then 41 echo "$last_dir.files.real: $spec ;" 42 echo "spec_bearing_dirs += $last_dir" 44 echo "${type}_dirs += $last_dir" 72 last_dir=$dir
|
H A D | create_flat_submakefile.awk | 9 /^all_dirs[ \t]*=/ { in_all_dirs = 1; last_dir = ""; print; next } 22 last_dir = "." 24 if (last_dir != "") { 25 print " " last_dir " \\" 27 last_dir = $1 30 print " " last_dir
|
/dports/biology/ncbi-cxx-toolkit/ncbi_cxx--25_2_0/scripts/common/impl/ |
H A D | create_flat_tuneups.sh | 38 if [ "$dir" \!= "$last_dir" ]; then 39 if [ -n "$last_dir" ]; then 41 echo "$last_dir.files.real: $spec ;" 42 echo "spec_bearing_dirs += $last_dir" 44 echo "${type}_dirs += $last_dir" 72 last_dir=$dir
|
/dports/misc/orange3/orange3-3.29.1/Orange/widgets/utils/save/tests/ |
H A D | test_owsavebase.py | 119 self.assertPathEqual(w.last_dir, home) 128 self.assertPathEqual(w.last_dir, home) 137 self.assertPathEqual(w.last_dir, "/foo/bar") 146 self.assertPathEqual(w.last_dir, home) 184 self.assertPathEqual(w.last_dir, "/home/u/orange/") 193 self.assertPathEqual(w.last_dir, "/home/u/orange/") 202 self.assertPathEqual(w.last_dir, "/home/u/orange/") 243 self.assertPathEqual(w.last_dir, "/tmp/u/work/a/b/") 251 self.assertPathEqual(w.last_dir, "/home/u/orange/") 260 self.assertPathEqual(w.last_dir, "/a/b") [all …]
|
/dports/science/chrono/chrono-7.0.1/src/chrono/physics/ |
H A D | ChLinkBrake.cpp | 23 … : brake_torque(0), stick_ratio(1.1), brake_mode(BRAKE_ROTATION), last_dir(0), must_stick(false) { in CH_FACTORY_REGISTER() 34 last_dir = other.last_dir; in ChLinkBrake() 84 if (mdir != this->last_dir) in UpdateForces() 86 this->last_dir = mdir; in UpdateForces() 104 if (mdir != this->last_dir) in UpdateForces() 106 this->last_dir = mdir; in UpdateForces()
|
/dports/audio/gtkpod/gtkpod-1.0.0/src/ |
H A D | fileselection.c | 63 gchar *last_dir, *new_dir; in fileselection_get_files() local 80 if (last_dir) in fileselection_get_files() 83 last_dir); in fileselection_get_files() 84 g_free (last_dir); in fileselection_get_files() 316 gchar *last_dir, *new_dir; in fileselection_get_cover_filename() local 331 if (last_dir) in fileselection_get_cover_filename() 334 last_dir); in fileselection_get_cover_filename() 335 g_free (last_dir); in fileselection_get_cover_filename() 618 if (last_dir) in dirbrowser_create_callback() 621 last_dir); in dirbrowser_create_callback() [all …]
|
/dports/graphics/photoflow/PhotoFlow-8472024f/src/gui/operations/ |
H A D | imageread_config.cc | 264 Glib::ustring last_dir = PF::PhotoFlow::Instance().get_options().get_last_visited_icc_folder(); in on_in_button_open_clicked() local 265 if( !last_dir.empty() ) dialog.set_current_folder( last_dir ); in on_in_button_open_clicked() 276 last_dir = dialog.get_current_folder(); in on_in_button_open_clicked() 277 PF::PhotoFlow::Instance().get_options().set_last_visited_icc_folder( last_dir ); in on_in_button_open_clicked() 310 Glib::ustring last_dir = PF::PhotoFlow::Instance().get_options().get_last_visited_icc_folder(); in on_out_button_open_clicked() local 311 if( !last_dir.empty() ) dialog.set_current_folder( last_dir ); in on_out_button_open_clicked() 322 last_dir = dialog.get_current_folder(); in on_out_button_open_clicked() 323 PF::PhotoFlow::Instance().get_options().set_last_visited_icc_folder( last_dir ); in on_out_button_open_clicked() 358 if( !last_dir.empty() ) dialog.set_current_folder( last_dir ); in on_button_open_clicked() 369 last_dir = dialog.get_current_folder(); in on_button_open_clicked() [all …]
|
/dports/emulators/libretro-vice/vice-libretro-5725415/vice/src/arch/gtk3/ |
H A D | uismartattach.c | 71 static gchar *last_dir = NULL; variable 87 if (last_dir != NULL) { 88 g_free(last_dir); 90 last_dir = new_dir; 105 lastdir_update(widget, &last_dir); in do_autostart() 214 lastdir_update(widget, &last_dir); in on_response() 237 lastdir_update(widget, &last_dir); in on_response() 352 lastdir_set(dialog, &last_dir); in create_smart_attach_dialog() 406 lastdir_shutdown(&last_dir); in ui_smart_attach_shutdown()
|
H A D | uidiskattach.c | 69 static gchar *last_dir = NULL; variable 90 if (last_dir != NULL) { 91 g_free(last_dir); 93 last_dir = new_dir; 161 lastdir_update(widget, &last_dir); in do_autostart() 214 lastdir_update(widget, &last_dir); in on_response() 317 lastdir_set(dialog, &last_dir); in create_disk_attach_dialog() 404 lastdir_shutdown(&last_dir); in ui_disk_attach_shutdown()
|
/dports/misc/vxl/vxl-3.3.2/core/vgl/ |
H A D | vgl_convex.hxx | 20 static T get_nc_angle(const vgl_vector_2d<T> &last_dir, in get_nc_angle() argument 31 return T(-cos_angle(last_dir, v)); in get_nc_angle() 52 vgl_vector_2d<T> last_dir(0,1); // Direction of last segment added to hull. in vgl_convex_hull() local 63 double nc_angle_to_first = get_nc_angle(last_dir, current, first); in vgl_convex_hull() 75 double nc_angle = get_nc_angle(last_dir, current, *i); in vgl_convex_hull() 89 last_dir=*best - current; in vgl_convex_hull()
|
/dports/emulators/vice/vice-3.5/src/arch/gtk3/ |
H A D | uisidattach.c | 55 static gchar *last_dir = NULL; variable 129 lastdir_update(widget, &last_dir, &last_file); in on_response() 212 if (last_dir == NULL) { in create_sid_attach_dialog() 222 last_dir = g_strdup(hvsc_root); in create_sid_attach_dialog() 228 lastdir_set(dialog, &last_dir, &last_file); in create_sid_attach_dialog() 270 lastdir_shutdown(&last_dir, &last_file); in uisidattach_shutdown()
|
/dports/multimedia/gnome-mplayer/gnome-mplayer-1.0.9/src/ |
H A D | playlist.c | 327 gchar *last_dir; in save_playlist() local 341 if (last_dir != NULL && is_uri_dir(last_dir)) in save_playlist() 360 g_free(last_dir); in save_playlist() 386 gchar *last_dir; in load_playlist() local 396 if (last_dir != NULL && is_uri_dir(last_dir)) in load_playlist() 426 g_free(last_dir); in load_playlist() 553 gchar *last_dir; in add_to_playlist() local 575 if (last_dir != NULL && is_uri_dir(last_dir)) { in add_to_playlist() 577 g_free(last_dir); in add_to_playlist() 616 gchar *last_dir; in add_folder_to_playlist() local [all …]
|
/dports/irc/scrollz/ScrollZ-ScrollZ-2.3/source/ |
H A D | history.c | 76 static int last_dir = -1; variable 116 if (last_dir == -1) 128 last_dir = PREV; 144 last_dir = PREV; 148 last_dir = -1; 357 last_dir = PREV; 373 if (last_dir == -1) 374 last_dir = which; 375 else if (last_dir != which) 377 last_dir = which; [all …]
|
/dports/irc/ircII/ircii-20210314/source/ |
H A D | history.c | 77 static int last_dir = -1; variable 111 if (last_dir == -1) in history_match() 123 last_dir = PREV; in history_match() 139 last_dir = PREV; in history_match() 143 last_dir = -1; in history_match() 322 last_dir = PREV; in add_to_history() 334 if (last_dir == -1) in get_from_history_file() 335 last_dir = which; in get_from_history_file() 336 else if (last_dir != which) in get_from_history_file() 338 last_dir = which; in get_from_history_file() [all …]
|
/dports/multimedia/smtube/smtube-21.10.0/src/ |
H A D | filechooser.cpp | 33 QString FileChooser::last_dir; member in FileChooser 70 if (dir.isEmpty()) dir = last_dir; in openFileDialog() 81 if (!result.isEmpty()) last_dir = QFileInfo(result).absolutePath(); in openFileDialog() 89 if (dir.isEmpty()) dir = last_dir; in openFileDialog() 99 if (!result.isEmpty()) last_dir = result; in openFileDialog()
|
/dports/multimedia/smplayer/smplayer-21.10.0/src/ |
H A D | filechooser.cpp | 33 QString FileChooser::last_dir; member in FileChooser 69 if (dir.isEmpty()) dir = last_dir; in openFileDialog() 80 if (!result.isEmpty()) last_dir = QFileInfo(result).absolutePath(); in openFileDialog() 88 if (dir.isEmpty()) dir = last_dir; in openFileDialog() 98 if (!result.isEmpty()) last_dir = result; in openFileDialog()
|