Changeset View
Changeset View
Standalone View
Standalone View
src/kcmodule.h
Show First 20 Lines • Show All 354 Lines • ▼ Show 20 Line(s) | 351 | Q_SIGNALS: | |||
---|---|---|---|---|---|
355 | * | 355 | * | ||
356 | * This signal is emitted whenever the state of the configuration | 356 | * This signal is emitted whenever the state of the configuration | ||
357 | * shown in the module changes. It allows the module container to | 357 | * shown in the module changes. It allows the module container to | ||
358 | * keep track of unsaved changes. | 358 | * keep track of unsaved changes. | ||
359 | */ | 359 | */ | ||
360 | void changed(bool state); | 360 | void changed(bool state); | ||
361 | 361 | | |||
362 | /** | 362 | /** | ||
363 | * Indicate that the state of the modules contents matches the default | ||||
364 | * settings. | ||||
365 | * | ||||
366 | * This signal is emitted whenever the state of the configuration | ||||
367 | * shown in the module changes. It allows the module container to | ||||
368 | * keep track of defaults. | ||||
369 | * | ||||
370 | * @since 5.65 | ||||
371 | */ | ||||
372 | void defaulted(bool state); | ||||
373 | | ||||
374 | /** | ||||
363 | * Indicate that the module's quickhelp has changed. | 375 | * Indicate that the module's quickhelp has changed. | ||
364 | * | 376 | * | ||
365 | * Emit this signal whenever the module's quickhelp changes. | 377 | * Emit this signal whenever the module's quickhelp changes. | ||
366 | * Modules implemented as tabbed dialogs might want to implement | 378 | * Modules implemented as tabbed dialogs might want to implement | ||
367 | * per-tab quickhelp for example. | 379 | * per-tab quickhelp for example. | ||
368 | * | 380 | * | ||
369 | */ | 381 | */ | ||
370 | void quickHelpChanged(); | 382 | void quickHelpChanged(); | ||
▲ Show 20 Lines • Show All 78 Lines • ▼ Show 20 Line(s) | 425 | protected: | |||
449 | void setUseRootOnlyMessage(bool on); | 461 | void setUseRootOnlyMessage(bool on); | ||
450 | 462 | | |||
451 | /** | 463 | /** | ||
452 | * Returns the changed state of automatically managed widgets in this dialog | 464 | * Returns the changed state of automatically managed widgets in this dialog | ||
453 | */ | 465 | */ | ||
454 | bool managedWidgetChangeState() const; | 466 | bool managedWidgetChangeState() const; | ||
455 | 467 | | |||
456 | /** | 468 | /** | ||
469 | * Returns the defaulted state of automatically managed widgets in this dialog | ||||
470 | * | ||||
471 | * @since 5.65 | ||||
472 | */ | ||||
473 | bool managedWidgetDefaultState() const; | ||||
474 | | ||||
475 | /** | ||||
457 | * Call this method when your manually managed widgets change state between | 476 | * Call this method when your manually managed widgets change state between | ||
458 | * changed and not changed | 477 | * changed and not changed | ||
459 | */ | 478 | */ | ||
460 | void unmanagedWidgetChangeState(bool); | 479 | void unmanagedWidgetChangeState(bool); | ||
461 | 480 | | |||
481 | /** | ||||
482 | * Call this method when your manually managed widgets change state between | ||||
483 | * defaulted and not defaulted | ||||
484 | * | ||||
485 | * @since 5.65 | ||||
486 | */ | ||||
487 | void unmanagedWidgetDefaultState(bool); | ||||
488 | | ||||
462 | private: | 489 | private: | ||
463 | KCModulePrivate *const d; | 490 | KCModulePrivate *const d; | ||
464 | }; | 491 | }; | ||
465 | 492 | | |||
466 | Q_DECLARE_OPERATORS_FOR_FLAGS(KCModule::Buttons) | 493 | Q_DECLARE_OPERATORS_FOR_FLAGS(KCModule::Buttons) | ||
467 | 494 | | |||
468 | #endif //KCMODULE_H | 495 | #endif //KCMODULE_H | ||
469 | 496 | |