# last modified 2022-06-27 by J. Fox

import(splines, tcltk, RcmdrMisc, car, effects)
importFrom(utils, available.packages, install.packages, assignInMyNamespace, 
    browseURL, capture.output, globalVariables, head, help, help.start, installed.packages, 
    methods, read.table, tail)
importFrom(tcltk2, tk2tip, tk2theme, tk2theme.list, tk2table, is.ttk, tk2style)
importFrom(abind, abind)
importFrom(graphics, text)
importFrom(grDevices, col2rgb, colorConverter, colorspaces, convertColor, 
    dev.cur, dev.size, palette, rgb, dev.new)
importFrom(methods, getClass, isVirtualClass, show)
importFrom(stats, coef, confint, family, formula, getCall, model.matrix, na.omit, 
    optim, optimize, qnorm, var, vcov)
importFrom(relimp, showData)
importFrom(lme4, fixef)

export(showData)

export(tkfocus, tkspinbox,
activateMenus, activeDataSet, ActiveDataSet, activeDataSetP, activeModel,
ActiveModel, activeModelP, buttonRcmdr,
checkActiveDataSet,
checkActiveModel, checkBoxes, checkClass, checkFactors, checkMethod, 
checkNumeric, checkReplace,
checkTwoLevelFactors, checkVariables, closeCommander,
closeDialog, Commander,
commanderPosition, CommanderWindow, # Confint, 
dataSetsP, defmacro,
dialogSuffix, DiscreteNumeric, discreteNumericP, doItAndPrint, exists.method, errorCondition, 
Factors, factorsP, formulaFields, flushDialogMemory, 
gassign, getCases, getDialog, getFrame, getRcmdr, getSelection, gettextRcmdr,
glmP, GrabFocus, groupsBox, groupsLabel, hclustSolutionsP, initializeDialog, insertRmdSection,
is.SciViews, is.valid.name, is.valid.number, justDoIt, knitrP, labelRcmdr, Library,
listAllModels, listAOVModels, listDataSets, listDiscreteNumeric, listFactors, listGeneralizedLinearModels, 
listLinearModels, listMultinomialLogitModels, listNumeric, listPlugins, 
listProportionalOddsModels, listTwoLevelFactors, listVariables, 
lmP, logger, LogWindow, MacOSXP, manualTranslationP, MarkdownP, mavericksP,
Message, MessagesWindow, modelFormula, modelsP, multinomP, Numeric,
numericP, OKCancelHelp, OutputWindow, packageAvailable,
polrP, popCommand, popOutput, putDialog, putRcmdr, 
radioButtons, RappP, rglLoaded, RcmdrPager, RcmdrTclSet, 
RcmdrTkmessageBox,
RExcelSupported, RmdWindow, RnwWindow, sortVarNames, subOKCancelHelp,
subsetBox,  
tclvalue, titleLabel, trim.blanks, ttkentry, ttkframe, ttkradiobutton, ttkcheckbutton,
ttkscrollbar, TwoLevelFactors, twoLevelFactorsP, 
UpdateModelNumber, variableComboBox, variableListBox, Variables, varPosn, WindowsP, X11P,
    
beginRmdBlock, endRmdBlock, enterMarkdown, removeNullRmdBlocks, removeStrayRmdBlocks, suppressMarkdown,
beginRnwBlock, endRnwBlock, enterKnitr, removeNullRnwBlocks, removeStrayRnwBlocks, 
removeLastRmdBlock, removeLastRnwBlock,
    
setBusyCursor, setIdleCursor,
    
editDataset,

.Tcl, tcl, tclRequire, tclServiceMode, "tclvalue<-",
tclVar, tkbind, tkcget, tkcheckbutton, tkconfigure,
tkchooseDirectory, tkcurselection, tkdelete, tkdestroy, tkentry,
tkframe, tkgrab.release, tkgrab.set, tkgetOpenFile, tkgetSaveFile,
tkgrid, tkgrid.columnconfigure, tkgrid.configure, tkgrid.rowconfigure,
tkicursor, tkindex, tkinsert,
tkinvoke, tkitemconfigure, tklabel, tklistbox, tkmark.set,
tkmessageBox, tkpack, tkradiobutton, tkraise, tkscale,
tkscrollbar, tk_select.list, tkselection.clear, tkselection.present,
tkselection.set, tkset, tktag.configure, tktext, tktoplevel,
tkwait.window, tkwm.deiconify, tkwm.iconbitmap, tkwm.geometry, tkwm.protocol,
tkwm.resizable, tkwm.title, tkwm.transient,
tkxview.moveto, tkxview, tkyview, tkyview.scroll,
ttklabelframe,

anovaP, EffectP, logLikP,

modelCapability,

Coef,

listCharacter, characterP, Character,

Coefficients, CoefficientsP, Predictors, PredictorsP
)

S3method(Coef, multinom)
S3method(Coef, merMod)
S3method(Coef, default)
#S3method(Confint, glm)
#S3method(Confint, default)
#S3method(Confint, multinom)
#S3method(Confint, polr)
#S3method(Confint, merMod)
S3method(getFrame, combobox)
S3method(getSelection, combobox)
S3method(getFrame, listbox)
S3method(getSelection, listbox)

S3method(anova, lmerMod)
S3method(Anova, lmerMod)
S3method(linearHypothesis, lmerMod)
S3method(coef, lmerMod)
S3method(plot, lmerMod)
S3method(anova, glmerMod)
S3method(Anova, glmerMod)
S3method(linearHypothesis, glmerMod)
S3method(coef, glmerMod)
S3method(plot, glmerMod)

S3method(editDataset, data.frame)
S3method(editDataset, character)
S3method(editDataset, NULL)
