Overview
Comment: | Initial work on creating the package uploader user interface using Tk. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
3aee276ab283b6c3ba7e7d036c77d12a |
User & Date: | mistachkin on 2016-12-19 20:56:04 |
Other Links: | manifest | tags |
Context
2016-12-20
| ||
03:39 | More work on the package uploader client user interfaces for both Tk and Eagle. check-in: 331618853a user: mistachkin tags: trunk | |
2016-12-19
| ||
20:56 | Initial work on creating the package uploader user interface using Tk. check-in: 3aee276ab2 user: mistachkin tags: trunk | |
19:31 | Remove superfluous line. check-in: 4465f70e83 user: mistachkin tags: trunk | |
Changes
Modified client/1.0/neutral/pkgr_upload.eagle from [21112f8728] to [cc369af556].
︙ | |||
27 28 29 30 31 32 33 | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | - - + + | # emit the command line usage information. # proc usage { {error ""} } { if {[string length $error] > 0} then {puts stdout $error} puts stdout "usage:\ [file tail [info nameofexecutable]]\ |
︙ | |||
767 768 769 770 771 772 773 774 775 776 777 778 779 780 | 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | ![regexp -line -- $fossilCommitPattern $result dummy checkin]} then { return false } return true } # # NOTE: This procedure initializes the array containing data derived from # the command line arguments, if any. The argv argument should be # the list of command line arguments. # proc setupArgumentData { argv } { variable argumentData if {![info exists argumentData(apiKey)]} then { set argumentData(apiKey) "" } if {![info exists argumentData(package)]} then { set argumentData(package) "" } if {![info exists argumentData(patchLevel)]} then { set argumentData(patchLevel) "" } if {![info exists argumentData(language)]} then { set argumentData(language) "" } if {![info exists argumentData(version)]} then { set argumentData(version) "" } if {![info exists argumentData(platform)]} then { set argumentData(platform) "" } if {![info exists argumentData(fileNames)]} then { set argumentData(fileNames) [list] } if {[llength $argv] >= 1} then { set argumentData(apiKey) [lindex $argv 0] } if {[llength $argv] >= 2} then { set argumentData(package) [lindex $argv 1] } if {[llength $argv] >= 3} then { set argumentData(patchLevel) [lindex $argv 2] } if {[llength $argv] >= 4} then { set argumentData(language) [lindex $argv 3] } if {[llength $argv] >= 5} then { set argumentData(version) [lindex $argv 4] } if {[llength $argv] >= 6} then { set argumentData(platform) [lindex $argv 5] } if {[llength $argv] >= 7} then { set argumentData(fileNames) [lrange $argv 6 end] } } # # NOTE: This procedure is used to determine if all the package submission # data is available. There are no arguments. Non-zero is returned # if all the package submission data is available. This procedure # should not raise script errors. # proc haveArgumentData {} { variable argumentData if {![info exists argumentData(apiKey)]} then { return false } if {[string length $argumentData(apiKey)] == 0} then { return false } if {![info exists argumentData(package)]} then { return false } if {[string length $argumentData(package)] == 0} then { return false } if {![info exists argumentData(patchLevel)]} then { return false } if {[string length $argumentData(patchLevel)] == 0} then { return false } if {![info exists argumentData(language)]} then { return false } if {[string length $argumentData(language)] == 0} then { return false } if {![info exists argumentData(version)]} then { return false } if {[string length $argumentData(version)] == 0} then { return false } if {![info exists argumentData(platform)]} then { return false } if {[string length $argumentData(platform)] == 0} then { return false } if {![info exists argumentData(fileNames)]} then { return false } if {[llength $argumentData(fileNames)] == 0} then { return false } return true } # # NOTE: This procedure is the command handler for the submit button. It is # used to start the package submission process. The args argument is # not used, it is a placeholder to make this procedure a more portable # between Tcl and Eagle. This procedure may raise script errors. # proc submitEventHandler { args } { variable argumentData puts stdout "SUBMIT CLICKED" } # # NOTE: This procedure is the command handler for the clear button. It is # used to clear the package submission data. The args argument is # not used, it is a placeholder to make this procedure a more portable # between Tcl and Eagle. This procedure may raise script errors. # proc clearEventHandler { args } { variable argumentData puts stdout "CLEAR CLICKED" set argumentData(apiKey) "" set argumentData(package) "" set argumentData(patchLevel) "" set argumentData(language) "" set argumentData(version) "" set argumentData(platform) "" set argumentData(fileNames) [list] } # # NOTE: This procedure creates the user interface for this tool using # Eagle and WinForms. Existing argument data, if any, will be # used to populate it. There are no arguments. # proc setupWinFormsUserInterface {} { variable argumentData variable widgets object load System.Windows.Forms # # TODO: Finish this. # } # # NOTE: This procedure creates the user interface for this tool using Tcl # and Tk. Existing argument data, if any, will be used to populate # it. There are no arguments. # proc setupTkUserInterface {} { variable widgets package require Tk catch {wm withdraw .}; set toplevel [toplevel .uploader] set widgets(label,apiKey) [label [appendArgs \ $toplevel .l_apiKey] -text "API Key"] set widgets(entry,apiKey) [entry [appendArgs \ $toplevel .e_apiKey] -textvariable [appendArgs \ [namespace current] ::argumentData(apiKey)]] set widgets(label,package) [label [appendArgs \ $toplevel .l_package] -text "Package Name"] set widgets(entry,package) [entry [appendArgs \ $toplevel .e_package] -textvariable [appendArgs \ [namespace current] ::argumentData(package)]] set widgets(label,patchLevel) [label [appendArgs \ $toplevel .l_patchLevel] -text "Package Patch Level"] set widgets(entry,patchLevel) [entry [appendArgs \ $toplevel .e_patchLevel] -textvariable [appendArgs \ [namespace current] ::argumentData(patchLevel)]] set widgets(label,language) [label [appendArgs \ $toplevel .l_language] -text Language] set widgets(entry,language) [entry [appendArgs \ $toplevel .e_language] -textvariable [appendArgs \ [namespace current] ::argumentData(language)]] set widgets(label,version) [label [appendArgs \ $toplevel .l_version] -text Version] set widgets(entry,version) [entry [appendArgs \ $toplevel .e_version] -textvariable [appendArgs \ [namespace current] ::argumentData(version)]] set widgets(label,platform) [label [appendArgs \ $toplevel .l_platform] -text Platform] set widgets(entry,platform) [entry [appendArgs \ $toplevel .e_platform] -textvariable [appendArgs \ [namespace current] ::argumentData(platform)]] set widgets(label,fileNames) [label [appendArgs \ $toplevel .l_fileNames] -text Files] set widgets(listbox,fileNames) [listbox [appendArgs \ $toplevel .li_fileNames] -listvariable [appendArgs \ [namespace current] ::argumentData(fileNames)]] set widgets(button,submit) [button \ [appendArgs $toplevel .b_submit] -text Submit -command \ [namespace code [list submitEventHandler]]] set widgets(button,clear) [button \ [appendArgs $toplevel .b_clear] -text Clear -command \ [namespace code [list clearEventHandler]]] pack $widgets(label,apiKey) $widgets(entry,apiKey) \ $widgets(label,package) $widgets(entry,package) \ $widgets(label,patchLevel) $widgets(entry,patchLevel) \ $widgets(label,language) $widgets(entry,language) \ $widgets(label,version) $widgets(entry,version) \ $widgets(label,platform) $widgets(entry,platform) \ $widgets(label,fileNames) $widgets(listbox,fileNames) \ $widgets(button,submit) $widgets(button,clear) } # # NOTE: Figure out the fully qualified path to the current script file. # If necessary, add it to the auto-path for the interpreter. The # necessary supporting packages (i.e. the Package Repository and # other support packages) that are assumed to exist in the same # directory as the current script file. # |
︙ | |||
830 831 832 833 834 835 836 837 838 839 840 | 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 | + + + + + + - + - - + + - + + - - + + + | # # NOTE: Provide the package to the interpreter. # package provide Eagle.Package.Uploader \ [expr {[isEagle] ? [info engine PatchLevel] : "1.0"}] # # NOTE: Process the command line arguments into their corresponding data # values, which are contained in an array. # setupArgumentData [expr {[info exists ::argv] ? $::argv : [list]}] # # NOTE: Verify that the number of command line arguments meets the basic # requirements of this tool. # |
Modified client/1.0/neutral/pkgr_upload.eagle.asc from [cfc66e3414] to [5addd55eb8].
1 2 3 4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | - - - - - - - - - - - - - + + + + + + + + + + + + + | -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Eagle Package Repository |
Modified client/1.0/neutral/pkgr_upload.eagle.harpy from [1863528c26] to [539b350fad].
︙ | |||
17 18 19 20 21 22 23 | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | THE ASSOCIATED SOFTWARE MAY NOT WORK PROPERLY IF THIS FILE IS ALTERED. --> <Certificate xmlns="https://eagle.to/2011/harpy" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Protocol>None</Protocol> <Vendor>Mistachkin Systems</Vendor> |
Modified client/1.0/neutral/pkgr_upload.eagle.harpy.asc from [c85b71cf3f] to [252ff7c776].
1 2 3 4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | - - - - - - - - - - - - - + + + + + + + + + + + + + | -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Eagle Package Repository |