]> git.pld-linux.org Git - packages/kile.git/blob - kile-fix-compile.patch
- removed fix-compile patch (builds OK, patch was never used), release 3
[packages/kile.git] / kile-fix-compile.patch
1 --- kile-1.3/kile/gfe/fileFilter.cpp--  2002-11-16 14:57:06.000000000 +0100
2 +++ kile-1.3/kile/gfe/fileFilter.cpp    2002-11-16 14:57:30.000000000 +0100
3 @@ -39,7 +39,7 @@ void fileFilter::setGnuInterface(gnuInte
4    filterEdit->setText(temp.c_str());
5  
6    string quoteChar = gnuInt->getFileFilterQuoteChar();
7 -  
8 +
9    if (quoteChar == "single")
10    {
11      singleQuoteRB->setChecked(TRUE);
12 @@ -51,7 +51,7 @@ void fileFilter::setGnuInterface(gnuInte
13      doubleQuoteRB->setChecked(TRUE);
14      singleQuoteRB->setChecked(FALSE);
15    }
16 -  
17 +
18  }
19  
20  void fileFilter::insertCurrentFilename()
21 @@ -65,14 +65,14 @@ void fileFilter::insertCurrentFilename()
22  
23    newString += currentText ;
24    newString += filename;
25 -  
26 +
27    filterEdit->setText(newString);
28  }
29  
30  void fileFilter::insertNewFilename()
31  {
32    QString currentText = filterEdit->text();
33 -  
34 +
35    QString filename = KFileDialog::getOpenFileName(QDir::currentDirPath(), "",this, i18n("Open File"));
36  
37    if (!filename.isNull())
38 @@ -80,7 +80,7 @@ void fileFilter::insertNewFilename()
39      QString newString;
40      newString += currentText;
41      newString += filename;
42 -    
43 +
44      filterEdit->setText(newString);
45    }
46  }
47 @@ -88,14 +88,14 @@ void fileFilter::insertNewFilename()
48  void fileFilter::setFilter()
49  {
50    string filterCmd;
51 -  
52 +
53    if (singleQuoteRB->isChecked() == TRUE)
54      gnuInt->setFileFilterQuoteChar("single");
55    else if (doubleQuoteRB->isChecked() == TRUE)
56      gnuInt->setFileFilterQuoteChar("double");
57 -  
58 -  filterCmd += filterEdit->text();
59 -  
60 +
61 +  filterCmd += filterEdit->text().latin1();
62 +
63    gnuInt->setFileFilter(filterCmd);
64  
65    QDialog::accept();
66 --- kile-1.3/kile/gfe/multiFile.cpp--   2002-11-16 14:54:34.000000000 +0100
67 +++ kile-1.3/kile/gfe/multiFile.cpp     2002-11-16 14:54:47.000000000 +0100
68 @@ -1,6 +1,6 @@
69  /* -------------------------- multiFile class --------------------------
70  
71 -   This class handles all operations related to the storage and manipulation of 
72 +   This class handles all operations related to the storage and manipulation of
73     multiple files and their options from the GUI.
74  
75     This file is part of Xgfe: X Windows GUI front end to Gnuplot
76 @@ -50,9 +50,9 @@ void multiFile::setGnuInterface(gnuInter
77    gnuInt = gnu;
78  
79    // get all current filenames
80 -  
81 +
82    string file;
83 -  
84 +
85    // get first filename in list
86    file = gnuInt->getMultiFileFirstFilename();
87  
88 @@ -61,7 +61,7 @@ void multiFile::setGnuInterface(gnuInter
89      multiFileList->insertItem(file.c_str());
90  
91    int continueFlag = 1;
92 -  
93 +
94    // now insert remaining files into list
95    while (continueFlag)
96    {
97 @@ -72,13 +72,13 @@ void multiFile::setGnuInterface(gnuInter
98      else
99        multiFileList->insertItem(file.c_str());
100    }
101 -  
102 +
103    // grab options for current file in combo box
104    if (multiFileList->count() > 0)
105    {
106      getCurrentOptions();
107    }
108 -  
109 +
110  }
111  
112  void multiFile::apply()
113 @@ -150,7 +150,7 @@ QString filename=KFileDialog::getOpenFil
114  
115    if ( !filename.isNull() )
116    {
117 -    temp = filename;
118 +    temp = filename.latin1();
119  
120      multiFileList->insertItem(filename,0);
121      gnuInt->insertMultiFileNew(temp);
122 @@ -310,16 +310,16 @@ void multiFile::getCurrentOptions()
123      fileStyleList->setCurrentItem(16);
124    else if (style == "")
125      fileStyleList->setCurrentItem(0);
126 -  
127 +
128    // set title options
129    string title = gnuInt->getMultiFileLegendTitle(filename);
130 -  
131 +
132    // clear current title
133    legendTitleEdit->setText("");
134 -  
135 +
136    if ((title != "default") && (title != "notitle"))
137      legendTitleEdit->setText(title.c_str());
138 -  
139 +
140    if (title == "default")
141    {
142      legendTitleDefaultButton->setChecked(TRUE);
143 @@ -355,7 +355,7 @@ void multiFile::getCurrentOptions()
144      singleQuoteRB->setChecked(TRUE);
145      doubleQuoteRB->setChecked(FALSE);
146    }
147 -    
148 +
149    if (quoteChar == "double")
150    {
151      doubleQuoteRB->setChecked(TRUE);
152 @@ -385,6 +385,6 @@ void multiFile::clearOptions()
153    rawFormatEdit->setText("");
154    interpList->setCurrentItem(0);
155    filterEdit->setText("");
156 -  doubleQuoteRB->setChecked(TRUE);    
157 +  doubleQuoteRB->setChecked(TRUE);
158    singleQuoteRB->setChecked(FALSE);
159  }
160 --- kile-1.3/kile/gfe/qplotdialog.cpp-- 2002-11-16 14:50:10.000000000 +0100
161 +++ kile-1.3/kile/gfe/qplotdialog.cpp   2002-11-16 14:50:30.000000000 +0100
162 @@ -768,7 +768,7 @@ void Qplotdialog::getOutput()
163    QString f = KFileDialog::getSaveFileName( QDir::currentDirPath(),"", this,"Output File" );
164    if (!f.isEmpty())
165    {
166 -    temp = f;
167 +    temp = f.latin1();
168      gnuInt->setOutput(temp);
169      outputLabel->setText(f);
170    }
171 --- kile-1.3/kile/gfe/qplotmaker.cpp--  2002-11-16 14:48:06.000000000 +0100
172 +++ kile-1.3/kile/gfe/qplotmaker.cpp    2002-11-16 14:49:43.000000000 +0100
173 @@ -224,7 +224,7 @@ QString filename = KFileDialog::getOpenF
174    {
175      filenameEdit->setText(filename); // set label to filename
176      filenameCB->setChecked(TRUE);     // set filename checkbox
177 -    temp = filename;
178 +    temp = filename.latin1();
179      gnuInt->setPlotFilename(temp);
180    }
181  
182 @@ -238,7 +238,7 @@ void Qplotmaker::save()
183  saveFile = KFileDialog::getSaveFileName(QDir::currentDirPath() ,"", this,"Save File" );
184    if (!saveFile.isEmpty())
185    {
186 -    temp = saveFile;
187 +    temp = saveFile.latin1();
188      gnuInt->setGnuFileSave(temp);
189      gnuInt->doSave();
190    }
191 @@ -252,7 +252,7 @@ void Qplotmaker::load()
192  loadFile= KFileDialog::getOpenFileName(QDir::currentDirPath(), "", this,"Open File" );
193    if (!loadFile.isEmpty())
194    {
195 -    temp = loadFile;
196 +    temp = loadFile.latin1();
197      gnuInt->setGnuFileLoad(temp);
198      gnuInt->doLoad();
199    }
200 @@ -266,7 +266,7 @@ void Qplotmaker::saveXgfe()
201  saveFile = KFileDialog::getSaveFileName(QDir::currentDirPath() ,"", this,"Save File" );
202    if (!saveFile.isEmpty())
203    {
204 -    temp = saveFile;
205 +    temp = saveFile.latin1();
206      gnuInt->savePlotData(temp);
207    }
208  }
209 @@ -280,7 +280,7 @@ loadFile = KFileDialog::getOpenFileName(
210  
211    if (!loadFile.isEmpty())
212    {
213 -    temp = loadFile;
214 +    temp = loadFile.latin1();
215      gnuInt->loadPlotData(temp);
216  
217      // get options and set GUI
218 --- kile-1.3/kile/gfe/rawGnu.cpp--      2002-11-16 14:46:33.000000000 +0100
219 +++ kile-1.3/kile/gfe/rawGnu.cpp        2002-11-16 14:46:38.000000000 +0100
220 @@ -19,7 +19,7 @@
221  
222      You should have received a copy of the GNU General Public License
223      along with this program; if not, write to the Free Software
224 -    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.    
225 +    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
226  
227   *********************************************************************/
228  
229 @@ -52,7 +52,7 @@ void rawGnu::doCommand()
230    QString command = rawCommand->text();
231  
232    string temp;
233 -  temp = command;
234 +  temp = command.latin1();
235  
236    // issue command
237    gnuInt->doRawCommand(temp);
This page took 0.045541 seconds and 3 git commands to generate.