Changeset View
Changeset View
Standalone View
Standalone View
src/cantor.cpp
Show First 20 Lines • Show All 169 Lines • ▼ Show 20 Line(s) | 166 | { | |||
---|---|---|---|---|---|
170 | dlg.configure( true ); | 170 | dlg.configure( true ); | ||
171 | } | 171 | } | ||
172 | 172 | | |||
173 | void CantorShell::fileOpen() | 173 | void CantorShell::fileOpen() | ||
174 | { | 174 | { | ||
175 | // this slot is called whenever the File->Open menu is selected, | 175 | // this slot is called whenever the File->Open menu is selected, | ||
176 | // the Open shortcut is pressed (usually CTRL+O) or the Open toolbar | 176 | // the Open shortcut is pressed (usually CTRL+O) or the Open toolbar | ||
177 | // button is clicked | 177 | // button is clicked | ||
178 | QUrl url = QFileDialog::getOpenFileUrl(this, i18n("Open file"), QUrl(), i18n("*.cws|Cantor Worksheet")); | 178 | QUrl url = QFileDialog::getOpenFileUrl(this, i18n("Open file"), QUrl(), i18n("Cantor Worksheet (*.cws)")); | ||
179 | 179 | | |||
180 | if (url.isEmpty() == false) | 180 | if (url.isEmpty() == false) | ||
181 | { | 181 | { | ||
182 | // About this function, the style guide ( | 182 | // About this function, the style guide ( | ||
183 | // http://developer.kde.org/documentation/standards/kde/style/basics/index.html ) | 183 | // http://developer.kde.org/documentation/standards/kde/style/basics/index.html ) | ||
184 | // says that it should open a new window if the document is _not_ | 184 | // says that it should open a new window if the document is _not_ | ||
185 | // in its initial state. This is what we do here.. | 185 | // in its initial state. This is what we do here.. | ||
186 | /*if ( m_part->url().isEmpty() && ! m_part->isModified() ) | 186 | /*if ( m_part->url().isEmpty() && ! m_part->isModified() ) | ||
▲ Show 20 Lines • Show All 412 Lines • Show Last 20 Lines |