19 #ifndef __KCARDDIALOG_H_
20 #define __KCARDDIALOG_H_
23 #include <kdialogbase.h>
26 #include <tdemacros.h>
31 class KCardDialogPrivate;
111 KCardDialog (TQWidget* parent = NULL,
const char* name = NULL,
112 CardFlags flags = Both);
157 static int getCardDeck(TQString &deck,TQString &carddir, TQWidget *parent=0,
158 CardFlags flags=Both,
bool* randomDeck=0,
159 bool* randomCardDir=0,
double* scale=0, TDEConfig* conf=0);
176 static void getConfigCardDeck(TDEConfig* conf, TQString& deck, TQString& cardDir,
double& scale);
189 static TQString getDefaultDeck();
202 static TQString getDefaultCardDir();
211 static TQString getCardPath(
const TQString &carddir,
int index);
217 static TQString getRandomDeck();
223 static TQString getRandomCardDir();
229 void showRandomDeckBox(
bool s);
235 void showRandomCardDirBox(
bool s);
242 const TQString& deck()
const;
248 void setDeck(
const TQString& file);
253 const TQString& cardDir()
const;
259 void setCardDir(
const TQString& dir);
264 CardFlags flags()
const;
271 void setupDialog(
bool showResizeBox =
false);
277 bool isRandomDeck()
const;
283 bool isRandomCardDir()
const;
288 bool isGlobalDeck()
const;
293 bool isGlobalCardDir()
const;
298 double cardScale()
const;
304 void loadConfig(TDEConfig* conf);
312 void saveConfig(TDEConfig* conf);
316 void insertCardIcons();
317 void insertDeckIcons();
319 static void getGlobalDeck(TQString& cardDir,
bool& random);
320 static void getGlobalCardDir(TQString& deck,
bool& random);
322 static TQString getDeckName(
const TQString& desktop);
331 void slotDeckClicked(TQIconViewItem *);
332 void slotCardClicked(TQIconViewItem *);
333 void slotRandomCardDirToggled(
bool on);
334 void slotRandomDeckToggled(
bool on);
335 void slotCardResized(
int);
336 void slotDefaultSize();
337 void slotSetGlobalDeck();
338 void slotSetGlobalCardDir();
343 KCardDialogPrivate* d;
A carddeck selection dialog for card games.