diff -r 2827ca924b18 -r b1e3a4d88f13 main.cpp --- a/main.cpp Mon Apr 24 11:31:15 2006 +0000 +++ b/main.cpp Tue Sep 05 10:03:29 2006 +0000 @@ -1,16 +1,16 @@ -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "settings.h" #include "options.h" #include "mainwindow.h" - #include "flagrowobj.h" // Global variables @@ -21,6 +21,8 @@ QString tmpVymDir; // All temp files go there, created in mainwindow QString clipboardDir; // Clipboard used in all mapEditors QDir vymBaseDir; // Containing all styles, scripts, images, ... +QDir lastImageDir; +QDir lastFileDir; QString iconPath; // Pointing to icons used for toolbars QString flagsPath; // Pointing to flags bool clipboardEmpty; @@ -29,7 +31,7 @@ // Lists of actions // (QActionGroup could not be "enabled") -QPtrList actionListBranches; +Q3PtrList actionListBranches; // Actions which change sometimes QAction *actionFileSave; @@ -44,11 +46,13 @@ QAction *actionEditToggleScroll; QAction *actionEditOpenURL; QAction *actionEditOpenURLTab; +QAction *actionEditOpenMultipleURLTabs; QAction *actionEditURL; QAction *actionEditHeading2URL; QAction *actionEditBugzilla2URL; QAction *actionEditFATE2URL; QAction *actionEditOpenVymLink; +QAction *actionEditOpenMultipleVymLinks; QAction *actionEditVymLink; QAction *actionEditToggleHideExport; QAction *actionEditDeleteVymLink; @@ -99,33 +103,36 @@ QAction *actionSettingsAutoselectHeading; QAction *actionSettingsAutoselectText; -QAction *actionSettingsPasteNewHeading; QAction *actionSettingsAutoedit; QAction *actionSettingsUseDelKey; QAction *actionSettingsUseFlagGroups; QAction *actionSettingsUseHideExport; -QPopupMenu *branchContextMenu; -QPopupMenu *branchAddContextMenu; -QPopupMenu *branchRemoveContextMenu; -QPopupMenu *branchLinksContextMenu; -QPopupMenu *branchLinksContextMenuDup; -QPopupMenu *floatimageContextMenu; -QPopupMenu *saveImageFormatMenu; -QPopupMenu *canvasContextMenu; -QPopupMenu *lastMapsMenu; -QPopupMenu *importMenu; -QPopupMenu *exportMenu; -QPopupMenu *exportImageFormatMenu; +QMenu* branchContextMenu; +QMenu* branchAddContextMenu; +QMenu* branchRemoveContextMenu; +QMenu* branchLinksContextMenu; +QMenu* branchXLinksContextMenuEdit; +QMenu* branchXLinksContextMenuFollow; +QMenu* floatimageContextMenu; +QMenu* canvasContextMenu; +QMenu* fileLastMapsMenu; +QMenu* fileImportMenu; +QMenu* fileExportMenu; -Settings settings; + +Settings settings ("InSilmaril","vym"); // Organization, Application name + Options options; +ImageIO imageIO; int statusbarTime=3500; int main(int argc, char** argv) { +//FIXME Q_INIT_RESOURCE (application); + QApplication app(argc,argv); @@ -144,14 +151,14 @@ "http://www.InSilmaril.de/vym\n"); if (options.parse()) { - cout << endl << options.getHelpText()<setPixmap("vym-128x128", QPixmap(iconPath+"vym-128x128.png")); - qInitNetworkProtocols(); + q3InitNetworkProtocols(); // Initialize translations