Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/kpropertiesdialog.h
Show First 20 Lines • Show All 228 Lines • ▼ Show 20 Line(s) | 68 | public: | |||
---|---|---|---|---|---|
229 | * | 229 | * | ||
230 | * @param plugin is a pointer to the KPropertiesDialogPlugin. The Properties | 230 | * @param plugin is a pointer to the KPropertiesDialogPlugin. The Properties | ||
231 | * dialog will do destruction for you. The KPropertiesDialogPlugin \b must | 231 | * dialog will do destruction for you. The KPropertiesDialogPlugin \b must | ||
232 | * have been created with the KPropertiesDialog as its parent. | 232 | * have been created with the KPropertiesDialog as its parent. | ||
233 | * @see KPropertiesDialogPlugin | 233 | * @see KPropertiesDialogPlugin | ||
234 | */ | 234 | */ | ||
235 | void insertPlugin(KPropertiesDialogPlugin *plugin); | 235 | void insertPlugin(KPropertiesDialogPlugin *plugin); | ||
236 | 236 | | |||
237 | #ifndef KIOWIDGETS_NO_DEPRECATED | 237 | #if KIOWIDGETS_ENABLE_DEPRECATED_SINCE(5, 0) | ||
238 | /** | 238 | /** | ||
239 | * @deprecated since 5.0, use url() | 239 | * @deprecated since 5.0, use url() | ||
240 | */ | 240 | */ | ||
241 | KIOWIDGETS_DEPRECATED QUrl kurl() const | 241 | KIOWIDGETS_DEPRECATED_VERSION(5, 0, "Use KPropertiesDialog::url()") | ||
242 | QUrl kurl() const | ||||
242 | { | 243 | { | ||
243 | return url(); | 244 | return url(); | ||
244 | } | 245 | } | ||
245 | #endif | 246 | #endif | ||
246 | 247 | | |||
247 | /** | 248 | /** | ||
248 | * The URL of the file that has its properties being displayed. | 249 | * The URL of the file that has its properties being displayed. | ||
249 | * This is only valid if the KPropertiesDialog was created/shown | 250 | * This is only valid if the KPropertiesDialog was created/shown | ||
▲ Show 20 Lines • Show All 81 Lines • ▼ Show 20 Line(s) | |||||
331 | 332 | | |||
332 | using KPageDialog::buttonBox; | 333 | using KPageDialog::buttonBox; | ||
333 | 334 | | |||
334 | public Q_SLOTS: | 335 | public Q_SLOTS: | ||
335 | /** | 336 | /** | ||
336 | * Called when the user presses 'Ok'. | 337 | * Called when the user presses 'Ok'. | ||
337 | * @deprecated since 5.25, use accept() | 338 | * @deprecated since 5.25, use accept() | ||
338 | */ | 339 | */ | ||
339 | KIOWIDGETS_DEPRECATED virtual void slotOk(); | 340 | KIOWIDGETS_DEPRECATED_VERSION(5, 25, "Use KPropertiesDialog::accept()") | ||
341 | virtual void slotOk(); | ||||
340 | /** | 342 | /** | ||
341 | * Called when the user presses 'Cancel'. | 343 | * Called when the user presses 'Cancel'. | ||
342 | * @deprecated since 5.25, use reject() | 344 | * @deprecated since 5.25, use reject() | ||
343 | */ | 345 | */ | ||
344 | KIOWIDGETS_DEPRECATED virtual void slotCancel(); | 346 | KIOWIDGETS_DEPRECATED_VERSION(5, 25, "Use KPropertiesDialog::reject()") | ||
347 | virtual void slotCancel(); | ||||
345 | 348 | | |||
346 | /** | 349 | /** | ||
347 | * Called when the user presses 'Ok'. | 350 | * Called when the user presses 'Ok'. | ||
348 | * @since 5.25 | 351 | * @since 5.25 | ||
349 | */ | 352 | */ | ||
350 | void accept() override; | 353 | void accept() override; | ||
351 | /** | 354 | /** | ||
352 | * Called when the user presses 'Cancel' or Esc. | 355 | * Called when the user presses 'Cancel' or Esc. | ||
▲ Show 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | 412 | public: | |||
417 | 420 | | |||
418 | /** | 421 | /** | ||
419 | * Applies all changes to the file. | 422 | * Applies all changes to the file. | ||
420 | * This function is called when the user presses 'Ok'. The last plugin inserted | 423 | * This function is called when the user presses 'Ok'. The last plugin inserted | ||
421 | * is called first. | 424 | * is called first. | ||
422 | */ | 425 | */ | ||
423 | virtual void applyChanges(); | 426 | virtual void applyChanges(); | ||
424 | 427 | | |||
428 | #if KIOWIDGETS_ENABLE_DEPRECATED_SINCE(4, 1) | ||||
425 | /** | 429 | /** | ||
426 | * Convenience method for most ::supports methods | 430 | * Convenience method for most ::supports methods | ||
427 | * @return true if the file is a local, regular, readable, desktop file | 431 | * @return true if the file is a local, regular, readable, desktop file | ||
428 | * @deprecated use KFileItem::isDesktopFile | 432 | * @deprecated Since 4.1, use KFileItem::isDesktopFile | ||
429 | */ | 433 | */ | ||
430 | #ifndef KIOWIDGETS_NO_DEPRECATED | 434 | KIOWIDGETS_DEPRECATED_VERSION(4, 1, "Use KFileItem::isDesktopFile()") | ||
431 | static KIOWIDGETS_DEPRECATED bool isDesktopFile(const KFileItem &_item); | 435 | static bool isDesktopFile(const KFileItem &_item); | ||
432 | #endif | 436 | #endif | ||
433 | 437 | | |||
434 | void setDirty(bool b); | 438 | void setDirty(bool b); | ||
435 | bool isDirty() const; | 439 | bool isDirty() const; | ||
436 | 440 | | |||
437 | public Q_SLOTS: | 441 | public Q_SLOTS: | ||
438 | void setDirty(); // same as setDirty( true ). TODO KDE5: void setDirty(bool dirty=true); | 442 | void setDirty(); // same as setDirty( true ). TODO KDE5: void setDirty(bool dirty=true); | ||
439 | 443 | | |||
Show All 26 Lines |