5 #ifndef BALL_VIEW_WIDGETS_MODULARWIDGET_H
6 #define BALL_VIEW_WIDGETS_MODULARWIDGET_H
8 #ifndef BALL_CONCEPT_EMBEDDABLE_H
12 #ifndef BALL_VIEW_KERNEL_CONNECTIONOBJECT_H
16 #ifndef BALL_VIEW_KERNEL_UIOPERATIONMODE_H
20 #include <QtGui/QKeySequence>
21 #include <QtGui/QToolBar>
101 virtual void clear();
124 virtual void initializeWidget(
MainControl& main_control);
134 virtual void finalizeWidget(
MainControl& main_control);
162 QAction* insertMenuEntry(
Position parent_id,
const QString& name,
const QObject* receiver = 0,
163 const char* slot = 0,
const String& description =
"", QKeySequence accel = QKeySequence(),
164 const QString& menu_hint = QString(
""),
173 void setMenuHelp(QAction* action,
const String& url);
178 virtual void registerForHelpSystem(
const QObject*
object,
const String& url);
184 virtual void addToolBarEntries(QToolBar* main_tb);
192 void setIcon(QAction* action,
const String& filename,
bool add_to_main_toolbar =
true);
206 virtual void initializePreferencesTab(
Preferences& preferences);
214 virtual void finalizePreferencesTab(
Preferences& preferences);
234 virtual void fetchPreferences(
INIFile& inifile);
241 virtual void writePreferences(
INIFile& inifile);
251 bool lockComposites();
254 bool unlockComposites();
270 virtual void setStatusbarText(
const String& text,
bool important =
false);
273 virtual void setStatusbarText(
const QString& text,
bool important =
false);
279 void setWorkingDir(
const String& dir);
299 virtual void dump(std::ostream& s = std::cout,
Size depth = 0)
const;
303 void setWorkingDirFromFilename_(
String filename);
305 virtual void showHelp(
const String& url);
324 #endif // BALL_VIEW_WIDGETS_MODULARWIDGET_H
#define BALL_CREATE(name)
BALL_VIEW_EXPORT MainControl * getMainControl()
#define BALL_EMBEDDABLE(TYPE, BASE)