author | cniehaus <cniehaus> | 2002-12-29 17:27:46 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2002-12-29 17:27:46 (UTC) |
commit | 8f6559d4be4e0b1857c4ae5cdbf1ad8b485b638b (patch) (unidiff) | |
tree | a403e69a0778a02f326976a41de86e1ca176ecee | |
parent | f9308849c8257f3d2e4bec0d476f56f87935cdab (diff) | |
download | opie-8f6559d4be4e0b1857c4ae5cdbf1ad8b485b638b.zip opie-8f6559d4be4e0b1857c4ae5cdbf1ad8b485b638b.tar.gz opie-8f6559d4be4e0b1857c4ae5cdbf1ad8b485b638b.tar.bz2 |
probably the last commit for today
some more things working, still a lot missing
-rw-r--r-- | noncore/apps/odict/configdlg.cpp | 9 | ||||
-rw-r--r-- | noncore/apps/odict/configdlg.h | 2 | ||||
-rw-r--r-- | noncore/apps/odict/searchmethoddlg.cpp | 4 |
3 files changed, 13 insertions, 2 deletions
diff --git a/noncore/apps/odict/configdlg.cpp b/noncore/apps/odict/configdlg.cpp index 2056457..0f33ee8 100644 --- a/noncore/apps/odict/configdlg.cpp +++ b/noncore/apps/odict/configdlg.cpp | |||
@@ -43,4 +43,5 @@ ConfigDlg::ConfigDlg(QWidget *parent, const char *name, bool modal) : QDialog(pa | |||
43 | /*searchmethods*/ | 43 | /*searchmethods*/ |
44 | search_tab = new QWidget( tab , "search_tab" ); | 44 | search_tab = new QWidget( tab , "search_tab" ); |
45 | loadSearchMethodNames(); | ||
45 | QVBoxLayout *vbox_layout_searchtab = new QVBoxLayout( search_tab, 4 , 4 ,"blah" ); | 46 | QVBoxLayout *vbox_layout_searchtab = new QVBoxLayout( search_tab, 4 , 4 ,"blah" ); |
46 | 47 | ||
@@ -104,2 +105,10 @@ void ConfigDlg::slotDeleteMethod() | |||
104 | else qDebug("no item selected"); | 105 | else qDebug("no item selected"); |
105 | } | 106 | } |
107 | |||
108 | void ConfigDlg::loadSearchMethodNames() | ||
109 | { | ||
110 | QListViewItem *item = new QListViewItem( list); | ||
111 | Config cfg( "odict" ); | ||
112 | //X cfg.setGroup( itemName ); | ||
113 | //X QString temp = cfg.readEntry( "Seperator" ); | ||
114 | } | ||
diff --git a/noncore/apps/odict/configdlg.h b/noncore/apps/odict/configdlg.h index e59b875..2b7d0a1 100644 --- a/noncore/apps/odict/configdlg.h +++ b/noncore/apps/odict/configdlg.h | |||
@@ -31,4 +31,6 @@ class ConfigDlg : public QDialog | |||
31 | QPushButton *new_button, *change_button, *delete_button; | 31 | QPushButton *new_button, *change_button, *delete_button; |
32 | 32 | ||
33 | void loadSearchMethodNames(); | ||
34 | |||
33 | private slots: | 35 | private slots: |
34 | void slotNewMethod(); | 36 | void slotNewMethod(); |
diff --git a/noncore/apps/odict/searchmethoddlg.cpp b/noncore/apps/odict/searchmethoddlg.cpp index fcbdb8a..203c663 100644 --- a/noncore/apps/odict/searchmethoddlg.cpp +++ b/noncore/apps/odict/searchmethoddlg.cpp | |||
@@ -81,5 +81,5 @@ void SearchMethodDlg::setupEntries( QString item ) | |||
81 | { | 81 | { |
82 | Config cfg( "odict" ); | 82 | Config cfg( "odict" ); |
83 | cfg.setGroup( itemName ); | 83 | cfg.setGroup( "Method_"+itemName ); |
84 | trenner->setText( cfg.readEntry( "Seperator" ) ); | 84 | trenner->setText( cfg.readEntry( "Seperator" ) ); |
85 | lang1->setText( cfg.readEntry( "Lang1" ) ); | 85 | lang1->setText( cfg.readEntry( "Lang1" ) ); |
@@ -99,5 +99,5 @@ void SearchMethodDlg::saveItem() | |||
99 | QString name = nameLE->text(); | 99 | QString name = nameLE->text(); |
100 | Config cfg( "odict" ); | 100 | Config cfg( "odict" ); |
101 | cfg.setGroup( name ); | 101 | cfg.setGroup( "Method_"+name ); |
102 | cfg.writeEntry( "Name", name ); | 102 | cfg.writeEntry( "Name", name ); |
103 | cfg.writeEntry( "Seperator", trenner->text() ); | 103 | cfg.writeEntry( "Seperator", trenner->text() ); |