Changeset View
Changeset View
Standalone View
Standalone View
src/formeditor/form.h
Show First 20 Lines • Show All 583 Lines • ▼ Show 20 Line(s) | 556 | protected Q_SLOTS: | |||
---|---|---|---|---|---|
584 | 584 | | |||
585 | void slotInlineTextChanged(); | 585 | void slotInlineTextChanged(); | ||
586 | 586 | | |||
587 | /*! This slot is called when the editor is destroyed.*/ | 587 | /*! This slot is called when the editor is destroyed.*/ | ||
588 | void inlineEditorDeleted(); | 588 | void inlineEditorDeleted(); | ||
589 | 589 | | |||
590 | void widgetDestroyed(); | 590 | void widgetDestroyed(); | ||
591 | 591 | | |||
592 | //! Called as delayed slot when invalid name is entered. | ||||
593 | //! @see checkNameValidity() | ||||
594 | void checkNameValidityForSelection(); | ||||
595 | | ||||
592 | Q_SIGNALS: | 596 | Q_SIGNALS: | ||
593 | /*! This signal is emitted by selectWidget() when user selects a new widget, | 597 | /*! This signal is emitted by selectWidget() when user selects a new widget, | ||
594 | to update both the Property Editor and the Object Tree View. | 598 | to update both the Property Editor and the Object Tree View. | ||
595 | \a w is the newly selected widget. | 599 | \a w is the newly selected widget. | ||
596 | */ | 600 | */ | ||
597 | void selectionChanged(QWidget *w, KFormDesigner::Form::WidgetSelectionFlags flags); | 601 | void selectionChanged(QWidget *w, KFormDesigner::Form::WidgetSelectionFlags flags); | ||
598 | 602 | | |||
599 | /*! This signal is emitted when a new widget is created, to update ObjectTreeView. | 603 | /*! This signal is emitted when a new widget is created, to update ObjectTreeView. | ||
▲ Show 20 Lines • Show All 62 Lines • ▼ Show 20 Line(s) | 659 | #endif | |||
662 | 666 | | |||
663 | //! @internal | 667 | //! @internal | ||
664 | void emitNoFormSelected(); | 668 | void emitNoFormSelected(); | ||
665 | 669 | | |||
666 | void enableFormActions(); | 670 | void enableFormActions(); | ||
667 | 671 | | |||
668 | void disableWidgetActions(); | 672 | void disableWidgetActions(); | ||
669 | 673 | | |||
674 | enum CheckValidityMode { | ||||
675 | CheckValidityOnly, | ||||
676 | CheckValidityShowMessages | ||||
677 | }; | ||||
678 | | ||||
670 | /*! Checks if the name entered by user is valid, ie that it is | 679 | /*! Checks if the name entered by user is valid, ie that it is | ||
671 | a valid identifier, and that there is no name conflict. */ | 680 | a valid identifier, and that there is no name conflict. */ | ||
672 | bool isNameValid(const QString &name) const; | 681 | bool checkNameValidity(const QString &name, CheckValidityMode mode) const; | ||
673 | 682 | | |||
674 | void addWidget(QWidget *w); | 683 | void addWidget(QWidget *w); | ||
675 | 684 | | |||
676 | /*! Clears the current property set and fills it with properties related to the widget @a w. | 685 | /*! Clears the current property set and fills it with properties related to the widget @a w. | ||
677 | Also updates the newly created properties with previously set values. */ | 686 | Also updates the newly created properties with previously set values. */ | ||
678 | void createPropertiesForWidget(QWidget *w); | 687 | void createPropertiesForWidget(QWidget *w); | ||
679 | 688 | | |||
680 | /*! Changes \a property old value and changed state, using the value | 689 | /*! Changes \a property old value and changed state, using the value | ||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |