/Users/andrea/_magisterarbeit/korpus/clean/trainkorpus/32/file9.html NN ----------------------------------------- : Text NN Ad NN Eight CD zone NN 17 CD Home NP Listing VVG 1 CD . SENT KEnvEdit NP C NP Code NP Listing VVG 1 CD . SENT KEnvEdit NP C NP Code NP Note NN . SENT example NN code NN , , implementation NN only RB . SENT Add VV your PP$ slots NNS with IN right RB clicking VVG on IN the DT class NN item NN KEnvEdit NP in IN KDevelop NP and CC select VV Add VV slot NN . SENT The DT field NN modified VVN needs NNS to TO be VB added VVN as IN a DT bool NN value NN with IN selecting VVG Add VV variable NN in IN the DT same JJ manner NN . SENT kenvedit NN . SENT cpp NP description NN begin VV . SENT Mon NP Mai NP 14 CD 18 CD . SENT 14 CD . SENT 30 CD CEST JJS 2001 JJ copyright NN . SENT C SYM 2001 CD by IN Ralf NP Nolden NP email NP . SENT nolden NP kde NN . SENT org NP This DT program NN is VBZ free JJ software NN . SENT you PP can MD redistribute VV it PP and CC or CC modify VV it PP under IN the DT terms NNS of IN the DT GNU NN General NP Public NP License NN as IN published VVN by IN the DT Free NP Software NP Foundation NP . SENT either DT version NN 2 CD of IN the DT License NN , , or CC at IN your PP$ option NN any DT later JJR version NN . SENT include VV kenvedit NN . SENT h NN include VVP kenvadddlg NN . SENT h NN include VVP include VV include VVP include VV include VVP include VV the DT constructor NN . SENT Brings VVZ up RP the DT user NN interface NN , , opens VVZ the DT . SENT bashrc NN file NN and CC inserts NNS the DT export NN lines NNS as IN QListViewItems NNS with IN variable NN in IN column NN 0 CD and CC value NN in IN column NN 1 CD KEnvEdit NP . SENT . SENT KEnvEdit NP QWidget NP parent NN , , const NN char NN name NN . SENT KEnvEditDlg NN parent NN , , name NN modified VVN false JJ . SENT QFile NN f SYM QDir NP . SENT . SENT homeDirPath NN . SENT bashrc NN . SENT if IN f NN . SENT open JJ IO NP ReadOnly NP file NN opened VVD successfully RB QTextStream NN t NN f SYM . SENT use VV a DT text NN stream NN QString VVG s PP . SENT while NN . SENT t NN . SENT eof JJ until IN end NN of IN file NN . SENT . SENT . SENT s PP t NN . SENT readLine NN . SENT line NN of IN text NN excluding VVG n NN if IN s PP . SENT contains VVZ export NN remove VV the DT export NN keyword NN s PP . SENT replace VV s PP . SENT find VV export NN , , 6 CD , , . SENT get VV the DT left JJ value NN QListViewItem NN item NN new JJ QListViewItem NP lv NP envar NP , , 0 CD . SENT item NN setText NN 0 CD , , s PP . SENT left VVD s PP . SENT find VV . SENT item NN setText NN 1 CD , , s PP . SENT right RB s PP . SENT length NN s PP . SENT find VV 1 CD . SENT f SYM . SENT close NN . SENT KEnvEdit NP . SENT . SENT KEnvEdit NP quits VVZ the DT application NN void NN KEnvEdit NP . SENT . SENT slotQuit NP TODO NP . SENT add VV messagebox NN to TO warn VV the DT user NN if IN the DT value NN list NN is VBZ modified VVN . SENT See VV the DT modified JJ flag NN . SENT if IN modified JJ kapp NP quit VVP . SENT Invokes VVZ the DT KDE NP help NN system NN to TO dislay VV the DT manual JJ void NN KEnvEdit NP . SENT . SENT slotHelp NP kapp NP invokeHelp NN . SENT calls VVZ KEnvAddDlg NP to TO add VV a DT new JJ variable JJ kenvadddlg NN . SENT ui NNS void JJ KEnvEdit NP . SENT . SENT slotNewVar NP KEnvAddDlg NP addDlg NN this NN , , 0 CD , , true JJ . SENT if IN addDlg NN . SENT exec NP . SENT addDlg NN . SENT le DT var NN text NN . SENT isEmpty JJ addDlg NN . SENT le DT value NN text NN . SENT isEmpty JJ QListViewItem NP item NN new JJ QListViewItem NP lv NP envar NP , , 0 CD . SENT item NN setText NN 0 CD , , addDlg NN . SENT le DT var NN text NN . SENT item NN setText NN 1 CD , , addDlg NN . SENT le DT value NN text NN . SENT modified VVN true JJ . SENT pops VVZ up RP the DT KEnvAddDlg NP , , this DT is VBZ the DT second JJ dialog NN designed VVN kenvadddlg NN . SENT ui NNS void JJ KEnvEdit NP . SENT . SENT slotEditVar NP KEnvAddDlg NP addDlg NN this NN , , 0 CD , , true JJ . SENT QListViewItem NP item NN lv NN envar NN currentItem NN . SENT addDlg NN . SENT le DT var NN setText NN item NN text NN 0 CD . SENT addDlg NN . SENT le DT value NN setText NN item NN text NN 1 CD . SENT if IN addDlg NN . SENT exec NP . SENT addDlg NN . SENT le DT var NN text NN . SENT isEmpty JJ addDlg NN . SENT le DT value NN text NN . SENT isEmpty JJ item NN setText NN 0 CD , , addDlg NN . SENT le DT var NN text NN . SENT item NN setText NN 1 CD , , addDlg NN . SENT le DT value NN text NN . SENT modified VVN true JJ . SENT removes VVZ the DT hash NN , , uncomments VVZ the DT variable JJ , , void JJ KEnvEdit NP . SENT . SENT slotEnableVar NP QListViewItem NP item NN lv NN envar NN currentItem NN . SENT remove VV the DT first JJ letter NN , , which WDT is VBZ a DT hash NN to TO comment VV out RP the DT variable NN , , so RB it PP becomes VVZ active JJ again RB . SENT item NN setText NN 0 CD , , item NN text NN 0 CD . SENT remove VV 0 CD , , 1 CD . SENT slotSelected JJ item NN . SENT modified VVN true JJ . SENT puts VVZ a DT hash NN in IN front NN of IN the DT variable NN . SENT This DT marks NNS it PP as RB commented VVD out RP , , therefore RB the DT writing VVG code NN in IN slotSave NN has VHZ to TO put VV a DT hash NN in IN front NN of IN the DT export NN line NN . SENT void JJ KEnvEdit NP . SENT . SENT slotDisableVar NP QListViewItem NP item NN lv NN envar NN currentItem NN . SENT item NN setText NN 0 CD , , item NN text NN 0 CD . SENT prepend NN . SENT slotSelected JJ item NN . SENT modified VVN true JJ . SENT deletes VVZ the DT variable NN from IN the DT list NN void NN KEnvEdit NP . SENT . SENT slotRemoveVar NP lv NP envar NN takeItem NN lv NN envar NN currentItem NN . SENT modified VVN true JJ . SENT saves VVZ the DT changes NNS to TO . SENT bashrc NN void NN KEnvEdit NP . SENT . SENT slotSave NP TODO NP . SENT Add VV saving VVG code NN here RB modified VVN false JJ . SENT on IN a DT select JJ , , enable VV or CC disable VV the DT according VVG buttons NNS for IN enabling VVG disabling VVG the DT variable JJ void NN KEnvEdit NP . SENT . SENT slotSelected JJ QListViewItem NP item NN if IN item NN text NN 0 CD . SENT contains VVZ pb NN enable VV setEnabled JJ true JJ . SENT pb NN disable VV setEnabled JJ false JJ . SENT else RB pb NN enable VV setEnabled JJ false JJ . SENT pb NN disable VV setEnabled JJ true JJ . SENT