Changeset 332 for branches


Ignore:
Timestamp:
Sep 16, 2009, 8:40:21 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

GUI-Tools: EVFSGUI V.next (Final additions for beta1

Location:
branches/guitools-2.0/evfsgui
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • branches/guitools-2.0/evfsgui/changes

    r330 r332  
    2828- Added: Login dialog behaviour matches the one from smbusers now
    2929- Added: Preliminary handling of smbtree error messages
     30- Added: Optionally save passive connections across sessions
     31- Added: French message file (thanks to Guillaume Gay)
    3032- Changed: Several changes in GUI style (as suggested by Alex Taylor)
    3133- Changed: Left align buttons in current connections panel (as suggested by
     
    4446- Changed: Redesigned login dialog
    4547- Changed: Clarified message about multiple connections
     48- Changed: Rebuild required Samba Client utilities 3.0.36 with libc063
     49           (instead of libc064x) (Changeset 331 level)
    4650- Fixed: Loading a profile presented the user a half drawn window
    4751- Fixed: Startup code was broken if no evfsgui.ini is present
     
    5963- Fixed: Confirmation of removal of a single connection was missing
    6064- Fixed: Dropdown combobox in mount dialog was readonly
     65- Fixed: Autostart mode was broken
    6166
    6267ToDo:
    6368- Major code refactoring (partly done)
     69- Debug on/off option is badly implemented (rework required)
    6470- Create Icon. stem in order to ease maintainance of icons
    65 - Create mechanism to save passive connections across sessions
    66 - Debug on/off option is badly implemented (rework required)
    67 - rebuild required utilities with libc063 (instead of libc064x)
    6871
    6972Known problem:
  • branches/guitools-2.0/evfsgui/evfsgui.VRP

    r331 r332  
    44MacroPath: VRM: U:\Develop\Samba\guitools-2.0\smbclgui
    55EXEPath:
    6 RunParameters: -ndfs
     6RunParameters:
    77RunDirectory:
    88VRXWindow: __VREMainWindow,1,530,2457,879,4071
    99VRXWindow: __VRESectionListWindow,1,337,11708,11623,3686
    10 VRXWindow: __VREToolsWindow,1,518,530,6984,1659
     10VRXWindow: __VREToolsWindow,1,518,530,6990,1659
    1111VRXWindow: __VREWindListWindow,1,482,7661,2650,3150
    1212UserFile: 1
    1313UserWindow: Main,1
    14 UserWindow: SW_MOUNTPOINT,1
     14UserWindow: SW_PROGRESS,1
  • branches/guitools-2.0/evfsgui/evfsgui.VRX

    r331 r332  
    137137    ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.logfilefh ,     "Visible", 0)
    138138    ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.loglevelfh ,    "Visible", 0)
    139     ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.hashfh ,        "Visible", 0)
     139    ok = VRMethod("CN_CONDET", "SetFieldAttr", cd.hashfh ,        "Visible", 0) 
    140140
    141141    ok = VRSet("CN_CONDET", "DetailSort", cd.mpointfh )
     
    181181    ok = VRSet("DT_STATUSBAR", "Caption", VRGet("Main", "HintText"))
    182182    call Main_Resize
     183return
     184
     185/*:VRX         _PassiveLoad
     186*/
     187_PassiveLoad:
     188Say "_PassiveLoad started"
     189    do cnt = 1 to 255
     190        resdata = VRGetIni( "PassiveConnections", cnt, settings.!ini )
     191        if resdata = "" then leave
     192
     193        PARSE Var resdata p_mpoint resource rwFlag
     194
     195say "resdata  ="resdata
     196say "p_mpoint ="p_mpoint
     197say "resource ="resource
     198say "rwFlag   ="rwFlag
     199
     200
     201
     202/*      vfs.!drive      = FILESPEC('DRIVE', node )
     203        vfs.!mountpoint = STRIP( node, 'T', '\') */
     204
     205        /* In case we only have a volume we reattach the backslash, otherwise restore will fail */
     206        if vfs.!drive = vfs.!mountpoint then vfs.!mountpoint = vfs.!mountpoint||'\'
     207
     208        p_mpidx = ""
     209
     210        PARSE VAR resource . 'WORKGROUP=' p_workgroup ';' .
     211        PARSE VAR resource . 'SERVER=' p_server ';' .
     212        PARSE VAR resource . 'SHARE=' p_share ';' .
     213        PARSE VAR resource . 'USER=' p_user ';' .
     214        PARSE VAR resource . 'PASSWORD=' p_password ';' .
     215        PARSE VAR resource . 'SPASSWORD=' p_spassword ';' .
     216        PARSE VAR resource . 'MASTER=' p_master ';' .
     217        PARSE VAR resource . 'MASTERTYPE=' p_mtype ';' .
     218        PARSE VAR resource . 'MEMLEN=' p_memlen ';' .
     219        PARSE VAR resource . 'LOGFILE=' p_logfile ';'.
     220        PARSE VAR resource . 'LOGLEVEL=' p_loglevel ';' .
     221        PARSE VAR resource . 'EASUPPORT=' p_easupport .
     222
     223        p_rw = rwFlag
     224
     225        cd.lastrh = VRMethod("CN_CONDET","AddRecord")
     226say "cd.lastrh="cd.lastrh
     227
     228        ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.mpointFH, p_mpoint, cd.mpidxfh, p_mpidx, cd.workgroupfh, p_workgroup, cd.serverfh, p_server, cd.sharefh, p_share, cd.userfh, p_user)
     229        ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.passwordfh, p_password, cd.spasswordfh, p_spassword, cd.masterfh, p_master, cd.mtypefh, p_mtype)
     230        ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.memlenfh, p_memlen, cd.easupportfh, p_easupport, cd.logfilefh, p_logfile, cd.loglevelfh, p_loglevel, cd.rwfh, p_rw)
     231        ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.statusfh, '#68:PMWP.DLL') /* Passive */
     232        ok = VRMethod("CN_CONDET", "SetRecordAttr", cd.lastrh, "Icon", '#68:PMWP.DLL') /* Active */
     233
     234        hashstr = p_mpoint' 'translate(p_domain)' 'translate(p_server)' 'translate(p_share)' 'p_user' 'p_spassword' 'p_easupport' 'p_rw
     235
     236        md5 = rexx_md5(hashstr)
     237
     238        ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.hashfh,md5)
     239
     240    end
     241Say "_PassiveLoad done"
     242return
     243/*:VRX         _PassiveSave
     244*/
     245_PassiveSave:
     246    ok = VRDelIni( "PassiveConnections", "ALL", settings.!ini )
     247
     248    ok = SysIni(settings.!ini, 'PassiveConnections', 'DELETE:')
     249
     250    CALL VRMethod 'CN_CONDET', 'GetRecordList', 'All', 'records.'
     251    cnt = 0
     252    DO i = 1 TO records.0
     253   
     254        if VRMethod( 'CN_CONDET', "GetFieldData", records.i, CD.StatusFH) = '#68:PMWP.DLL' then do
     255            cnt = cnt + 1
     256            resdata = ""
     257            resdata = resdata||VRMethod("CN_CONDET","GetFieldData", records.i, cd.mpointfh)||" "
     258            resdata = resdata||'\\'||VRMethod("CN_CONDET","GetFieldData", records.i, cd.workgroupfh)
     259            resdata = resdata||':'||VRMethod("CN_CONDET","GetFieldData", records.i, cd.serverfh)
     260            resdata = resdata||'\'||VRMethod("CN_CONDET","GetFieldData", records.i, cd.sharefh)
     261            resdata = resdata||'@'||VRMethod("CN_CONDET","GetFieldData", records.i, cd.userfh)
     262            resdata = resdata||';WORKGROUP='||VRMethod("CN_CONDET","GetFieldData", records.i, cd.workgroupfh)
     263            resdata = resdata||';SERVER='||VRMethod("CN_CONDET","GetFieldData", records.i, cd.serverfh)
     264            resdata = resdata||';SHARE='||VRMethod("CN_CONDET","GetFieldData", records.i, cd.sharefh)
     265            resdata = resdata||';USER='||VRMethod("CN_CONDET","GetFieldData", records.i, cd.userfh)
     266            resdata = resdata||';PASSWORD='||VRMethod("CN_CONDET","GetFieldData", records.i, cd.passwordfh)
     267            resdata = resdata||';SPASSWORD='||VRMethod("CN_CONDET","GetFieldData", records.i, cd.spasswordfh)
     268            resdata = resdata||';MASTER='||VRMethod("CN_CONDET","GetFieldData", records.i, cd.masterfh)
     269            resdata = resdata||';MASTERTYPE='||VRMethod("CN_CONDET","GetFieldData", records.i, cd.mtypefh)
     270            resdata = resdata||';MEMLEN='||VRMethod("CN_CONDET","GetFieldData", records.i, cd.memlenfh)
     271            resdata = resdata||';LOGFILE='||VRMethod("CN_CONDET","GetFieldData", records.i, cd.logfilefh)
     272            resdata = resdata||';LOGLEVEL='||VRMethod("CN_CONDET","GetFieldData", records.i, cd.loglevelfh)
     273            resdata = resdata||';EASUPPORT='||VRMethod("CN_CONDET","GetFieldData", records.i, cd.easupportfh)
     274            resdata = resdata||' '||VRMethod("CN_CONDET","GetFieldData", records.i, cd.rwfh)
     275            ok = VRSetIni( "PassiveConnections", cnt, resdata, settings.!ini )
     276        END
     277        else iterate
     278    end
    183279return
    184280
     
    9041000        settings.!smbtreeon = 1
    9051001        advanced.!browseimme = 1
     1002        advanced.!savepassive = 0
     1003        advanced.!bigicons = 1
    9061004
    9071005        ShowHidden = 0
     
    9881086
    9891087        advanced.!bigicons = VRGetIni('Settings', 'BigIcons', settings.!ini)
    990         IF advanced.!bigicons == '' THEN advanced.!bigicons = 0
     1088        IF advanced.!bigicons == '' THEN advanced.!bigicons = 1
     1089
     1090        advanced.!savepassive = VRGetIni('Settings', 'SavePassive', settings.!ini)
     1091        IF advanced.!savepassive == '' THEN advanced.!savepassive = 0
    9911092
    9921093        /* Apply the settings
     
    10051106        ok = VRset("CN_SMBTREE", "MiniIcons", \advanced.!bigicons)
    10061107        ok = VRset("CN_CONDET",  "MiniIcons", \advanced.!bigicons)
     1108        ok = VRset("Menu_View_MiniIcons",  "Checked", \advanced.!bigicons)
    10071109
    10081110
     
    10641166*/
    10651167Main_Create:
    1066     ok = VRREdirectStdIO("ON")
    1067     options.!debug    = 1
     1168    ok = VRREdirectStdIO("OFF")
     1169    options.!debug    = 0
    10681170
    10691171    IF options.!debug == 1 THEN ok = VRREdirectStdIO("ON")
     
    10971199        CALL Refresh
    10981200
     1201    if advanced.!savepassive == 1 then CALL _PassiveLoad
     1202
    10991203    CALL VRSet "CB_MOUNT",  "Selected", 1
    11001204    CALL VRSet "CB_DRIVES", "Selected", 1
    1101     IF options.!autoclose == 1 THEN CALL VRSet "TM_AUTOCLOSE", "ENABLED", 1
     1205    IF options.!autoclose == 1 THEN CALL TM_AutoClose_Trigger
     1206    /* For whatever reason the timer is not triggered anymore....
     1207    CALL VRSet "TM_AUTOCLOSE", "ENABLED", 1 */
    11021208    ELSE do
    11031209        if advanced.!browseauth == 1 then window = VRLoadSecondary( "SW_LOGIN", "W" )
     
    13831489        advanced.!debug     = adv_debug
    13841490        advanced.!special   = adv_special
    1385         advanced.!bigicons  = adv_bigicons
     1491        advanced.!savepassive=adv_savepassive
    13861492    END
    13871493return
     
    15421648
    15431649    ok = VRSet("Menu_Selected_Connect", "Visible",  0)
     1650return
     1651
     1652/*:VRX         Menu_View_MiniIcons_Click
     1653*/
     1654Menu_View_MiniIcons_Click:
     1655    advanced.!bigicons = \advanced.!bigicons
     1656    ok = VRset("CN_CURRENT", "MiniIcons", \advanced.!bigicons)
     1657    ok = VRset("CN_SMBTREE", "MiniIcons", \advanced.!bigicons)
     1658    ok = VRset("CN_CONDET",  "MiniIcons", \advanced.!bigicons)
     1659    ok = VRset("Menu_View_MiniIcons",  "Checked", \advanced.!bigicons)
    15441660return
    15451661
     
    18461962    CALL NLVSetText 'Menu_View_Buttons',  'Caption', 87
    18471963    CALL NLVSetText 'Menu_View_ConDet',   'Caption', 88
     1964    CALL NLVSetText 'Menu_View_MiniIcons','Caption', 70
    18481965
    18491966    CALL NLVSetText 'Menu_File_Autostart','Caption', 35
     
    26122729    adv_debug      = VRGet( "CB_DEBUG",      "Set" )
    26132730    adv_special    = VRGet( "CB_SPECIAL",    "Set" )
    2614     adv_bigicons   = VRGet( "CB_BIGICONS",   "Set" )
     2731    adv_savepassive= VRGet( "CB_SAVEPASSIVE","Set" )
    26152732
    26162733    adv_changed  = 1
    26172734    if adv_debug == 1 then ok = VRRedirectStdio("ON")
    26182735                      else ok = VRRedirectStdio("OFF")
    2619 
    2620     ok = VRset("CN_CURRENT", "MiniIcons", \adv_bigicons)
    2621     ok = VRset("CN_SMBTREE", "MiniIcons", \adv_bigicons)
    2622     ok = VRset("CN_CONDET",  "MiniIcons", \adv_bigicons)
    26232736
    26242737    CALL SW_SETTINGS_Close
     
    27422855/*:VRX         SaveSettings
    27432856*/
    2744 SaveSettings: PROCEDURE EXPOSE settings. options. fs. advanced.
     2857SaveSettings: PROCEDURE EXPOSE settings. options. fs. advanced. cd.
    27452858    IF options.!debug == 1 THEN SAY time()' '||"SaveSettings started"
     2859
     2860    if advanced.!savepassive then call _PassiveSave
    27462861
    27472862/* This does not make sense anymore
     
    27742889    CALL VRSetIni 'Settings', 'ConDetOn', settings.!condeton, settings.!ini, 'NoClose'
    27752890
    2776     CALL VRSetIni 'Settings', 'BrowseAuth',    advanced.!browseauth, settings.!ini, 'NoClose'
    2777     CALL VRSetIni 'Settings', 'BrowseImme',    advanced.!browseimme, settings.!ini, 'NoClose'
    2778     CALL VRSetIni 'Settings', 'Debug',         advanced.!debug     , settings.!ini, 'NoClose'
    2779     CALL VRSetIni 'Settings', 'AlwaysMP',      advanced.!alwaysmp  , settings.!ini, 'NoClose'
    2780     CALL VRSetIni 'Settings', 'SpecialShares', advanced.!special   , settings.!ini, 'NoClose'
    2781     CALL VRSetIni 'Settings', 'BigIcons',      advanced.!bigicons  , settings.!ini, 'NoClose'
     2891    CALL VRSetIni 'Settings', 'BrowseAuth',    advanced.!browseauth , settings.!ini, 'NoClose'
     2892    CALL VRSetIni 'Settings', 'BrowseImme',    advanced.!browseimme , settings.!ini, 'NoClose'
     2893    CALL VRSetIni 'Settings', 'Debug',         advanced.!debug      , settings.!ini, 'NoClose'
     2894    CALL VRSetIni 'Settings', 'AlwaysMP',      advanced.!alwaysmp   , settings.!ini, 'NoClose'
     2895    CALL VRSetIni 'Settings', 'SpecialShares', advanced.!special    , settings.!ini, 'NoClose'
     2896    CALL VRSetIni 'Settings', 'BigIcons',      advanced.!bigicons   , settings.!ini, 'NoClose'
     2897    CALL VRSetIni 'Settings', 'SavePassive',   advanced.!savepassive, settings.!ini, 'NoClose'
    27822898
    27832899    /* Save position and size */
     
    30643180    CALL NLVSetText 'SW_SETTINGS',  'Caption', 47
    30653181
    3066     CALL NLVSetText 'GB_GLOBAL',    'Caption', 47
    3067     CALL NLVSetText 'CB_DEBUG',     'Caption', 42
    3068     CALL NLVSetText 'CB_LOGGING',   'Caption', 46
    3069     CALL NLVSetText 'CB_BROWSEIMME','Caption', 48
    3070     CALL NLVSetText 'CB_BROWSEAUTH','Caption', 49
    3071     CALL NLVSetText 'CB_SPECIAL',   'Caption', 66
    3072     CALL NLVSetText 'CB_BIGICONS',  'Caption', 70
     3182    CALL NLVSetText 'GB_GLOBAL',     'Caption', 47
     3183    CALL NLVSetText 'CB_DEBUG',      'Caption', 42
     3184    CALL NLVSetText 'CB_LOGGING',    'Caption', 46
     3185    CALL NLVSetText 'CB_BROWSEIMME', 'Caption', 48
     3186    CALL NLVSetText 'CB_BROWSEAUTH', 'Caption', 49
     3187    CALL NLVSetText 'CB_SPECIAL',    'Caption', 66
     3188    CALL NLVSetText 'CB_SAVEPASSIVE','Caption', 73
    30733189
    30743190    CALL NLVSetText 'PB_SETTINGS_OK',     'Caption', 2
     
    30913207    IF advanced.!special \= '' THEN
    30923208        CALL VRSet 'CB_SPECIAL',    'Set', advanced.!special
    3093     IF advanced.!bigicons \= '' THEN
    3094         CALL VRSet 'CB_bigicons',   'Set', advanced.!bigicons
    3095 
     3209    IF advanced.!savepassive \= '' THEN
     3210        CALL VRSet 'CB_SAVEPASSIVE',    'Set', advanced.!savepassive
    30963211
    30973212    window = VRInfo( "Object" )
  • branches/guitools-2.0/evfsgui/evfsi_de.mkm

    r331 r332  
    5050EVG0044I: Erweiterte Attribute untersttzen
    5151EVG0045I: Nur-Lesen Verbindung
    52 EVG0046I: Protokollierung
     52EVG0046I: Plugin-Protokollierung aktivieren
    5353EVG0047I: Globale Einstellungen
    5454EVG0048I: Netzwerkumgebung sofort aktualisieren
     
    7575EVG0068I: EA
    7676EVG0069I: R/W
    77 EVG0070I: Groáe Symbole
     77EVG0070I: Kleine Symbole
    7878EVG0071I: Mehrfachverbindung, einzeln trennen nicht m”glich!
    7979EVG0072I: Die Verbindung von %1 zu %2 trennen?
    80 EVG0073?:
     80EVG0073I: Inaktive Verbindungen merken
    8181EVG0074?:
    8282EVG0075?:
  • branches/guitools-2.0/evfsgui/evfsi_en.mkm

    r331 r332  
    7575EVG0068I: EA
    7676EVG0069I: R/W
    77 EVG0070I: Large icons
     77EVG0070I: Mini icons
    7878EVG0071I: Multiple connections, cannot remove only one!
    7979EVG0072I: Really unmount %1 connected to %2?
    80 EVG0073?:
     80EVG0073I: Remember inactive connections
    8181EVG0074?:
    8282EVG0075?:
     
    9292EVG0084I: ~Help
    9393EVG0085I: ~Dialog
    94 EVG0086I: ~LAN-Resource browser
     94EVG0086I: ~Network neighbourhood
    9595EVG0087I: ~Buttons
    9696EVG0088I: ~Connection details
  • branches/guitools-2.0/evfsgui/evfsi_fr.mkm

    r317 r332  
    22; French version
    33; Translator : Guillaume Gay <guillaume.gay@bigfoot.com>
    4 ; Translation : 2009-08-11
     4; Translation : 2009-09-15 - 2
    55EVG
    66; Common strings used throughout program
     
    4343EVG0036I: Montage de %1 sur %2
    4444EVG0037I: D‚tail
    45 EVG0038?:
    46 EVG0039?:
     45EVG0038I: R‚~g‚n‚rer
     46EVG0039I: Voisinage r‚seau
    4747; Advanced properties window UI
    4848EVG0040I: Options de montage avanc‚es
     
    5050 allouer par connexion
    5151EVG0042I: Debug
    52 EVG0043I: Divers
     52EVG0043I: ParamŠtres optionnels
    5353EVG0044I: Support des attributs ‚tendus
    5454EVG0045I: Montage en lecture seule
    5555EVG0046I: Rapport
    56 EVG0047I: Niveau de d‚tail
    57 EVG0048I: Fichier journal
    58 EVG0049?:
     56EVG0047I: ParamŠtres globaux
     57EVG0048I: R‚g‚n‚ration imm‚diate du voisinage r‚seau
     58EVG0049I: Authentification pour l'exploration
    5959; Prompts and other messages
    6060EVG0050I: Sauvegarde du fichier de profil
    6161EVG0051I: Profil sauvegard‚
    62 EVG0052I: Le profil des (‚ventuelles) connexions actives actuelles a ‚t‚ sauvegard‚ dans %1.
     62EVG0052I: Le profil des connexions a ‚t‚ sauvegard‚ dans %1.
    6363EVG0053I: Fichier existant
    6464EVG0054I: Le fichier %1 existe d‚j
     
    7171EVG0060I: L'objet EVFS a ‚t‚ cr‚‚ dans le dossier de lancement.
    7272EVG0061I: Erreur - cr‚ation impossible de l'objet dans le dossier de lancement.
    73 EVG0062?:
    74 EVG0063?:
    75 EVG0064?:
    76 EVG0065?:
    77 EVG0066?:
    78 EVG0067?:
    79 EVG0068?:
    80 EVG0069?:
    81 EVG0070?:
    82 EVG0071?:
    83 EVG0072?:
    84 EVG0073?:
     73EVG0062I: Les imprimantes ne sont pas prises en charge pour le moment !
     74EVG0063I: Informations sur la connexion
     75EVG0064I: Cette connexion existe d‚j
     76. Voulez-vous quand mˆme continuer ?
     77EVG0065I: Cr‚er mˆme en cas d'‚chec de la connexion
     78EVG0066I: Afficher tous les partage (sp‚ciaux)
     79EVG0067I: tat
     80EVG0068I: A
     81EVG0069I: R/W
     82EVG0070I: Ic“nes ~miniatures
     83EVG0071I: Connexions multiples, impossible de n'en retirer qu'une !
     84EVG0072I: Voulez-vous vraiment d‚monter %1 connect‚ sur %2 ?
     85EVG0073I: Conserver les connexion inactives
    8586EVG0074?:
    8687EVG0075?:
     
    8990EVG0078?:
    9091EVG0079?:
    91 EVG0080?:
    92 EVG0081?:
    93 EVG0082?:
    94 EVG0083?:
    95 EVG0084?:
    96 EVG0085?:
    97 EVG0086?:
    98 EVG0087?:
    99 EVG0088?:
    100 EVG0089?:
    101 EVG0090?:
    102 EVG0091?:
     92; Menu entries
     93EVG0080I: ~Fichier
     94EVG0081I: ~dition
     95EVG0082I: ~Affichage
     96EVG0083I: ~S‚lection
     97EVG0084I: A~ide
     98EVG0085I: BoŒtes de ~dialogue
     99EVG0086I: ~Voisinage r‚seau
     100EVG0087I: ~Boutons
     101EVG0088I: I~nformations de connexion
     102EVG0089I: Retirer
     103EVG0090I: R‚essayer
     104EVG0091I: · propos de
    103105EVG0092?:
    104106EVG0093?:
Note: See TracChangeset for help on using the changeset viewer.